/* Scoped to avoid conflicts with Bootstrap */
.peptide-calculator {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f4f8; /* Custom background */
}
@media (min-width: 768px) {
    .peptide-calculator {
        padding: 2rem;
    }
}

.peptide-calculator__container {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-width: 48rem;
    width: 100%;
}
@media (min-width: 768px) {
    .peptide-calculator__container {
        padding: 2rem;
    }
}

.peptide-calculator__title {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    text-align: center;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.disclaimer-text {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #374151;
    margin-bottom: 1rem;
    padding: 0.75rem;
}

.peptide-calculator__layout {
    display: flex;
    gap: 2rem;
}
@media (max-width: 767px) {
    .peptide-calculator__layout {
        flex-direction: column;
    }
}

.peptide-calculator__form-section,
.peptide-calculator__graphic-section {
    width: 100%;
}
@media (min-width: 768px) {
    .peptide-calculator__form-section,
    .peptide-calculator__graphic-section {
        width: 50%;
    }
}

.peptide-calculator__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.peptide-calculator__label {
    display: block;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

/* Use Bootstrap classes for inputs and selects */
.peptide-calculator__input,
.peptide-calculator__select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
}
.peptide-calculator__input:focus,
.peptide-calculator__select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Remove number input spinners */
.peptide-calculator__input[type="number"]::-webkit-inner-spin-button,
.peptide-calculator__input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.peptide-calculator__input[type="number"] {
    -moz-appearance: textfield;
}

.peptide-calculator__results {
    background-color: #f9fafb;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.peptide-calculator__results-title {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    text-align: center;
}

.peptide-calculator__result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.peptide-calculator__result-label {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #4b5563;
}

.peptide-calculator__result-value {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: #4338ca;
}

.peptide-calculator__graphic-container {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background-color: #f9fafb;
}
@media (min-width: 768px) {
    .peptide-calculator__graphic-container {
        margin-top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

.peptide-calculator__svg {
    width: 100px;
    height: 250px;
    margin: 0 auto;
    display: block;
}
@media (min-width: 768px) {
    .peptide-calculator__svg {
        margin-left: 0;
        margin-right: 0;
    }
}

.peptide-calculator__svg-text {
    font-size: 9px;
    font-family: sans-serif;
    fill: #4b5563;
    text-anchor: end;
}

.peptide-calculator__disclaimer {
    font-size: 0.75rem;
    line-height: 1rem;
    color: #6b7280;
    margin-top: 1rem;
    text-align: center;
}