/* Mode Matching Calculator - Page-Specific Styles */
/* Common styles moved to tools-common.css */

/* Lens inputs section */
.lens-inputs {
    background: #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid #667eea;
}

.lens-inputs p {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.5rem;
}

/* User inputs - additional styling */
.user-inputs .row:first-child p {
    font-weight: 600;
    font-size: 1.1rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.user-inputs .row p {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Ensure input boxes stay vertically aligned even if text wraps */
.user-inputs .row {
    display: flex;
    align-items: flex-end;
}

.user-inputs .row > div {
    display: flex;
    flex-direction: column;
}

/* Mode matching results table styling */
.mode-matching-results .row p {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

#mode-matching-results th,
#mode-matching-results td {
    width: 20%; /* Equal width for all 5 columns */
}

/* No solution feedback */
.no-solution-feedback {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.no-solution-feedback h4 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.no-solution-feedback ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

.no-solution-feedback li {
    color: #856404;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .calculator {
        margin-top: 12vh;
    }

    .lens-inputs {
        padding: 0.8rem;
    }

    .user-inputs .row > div,
    .lens-inputs .row > div {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .calculator {
        margin-top: 15vh;
    }

    .lens-inputs {
        padding: 0.6rem;
    }

    /* Make table responsive */
    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px 4px;
    }

    /* Smaller input fields on mobile */
    input {
        padding: 6px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .calculator {
        margin-top: 18vh;
    }

    .lens-inputs {
        padding: 0.5rem;
    }

    table {
        font-size: 11px;
    }

    th, td {
        padding: 6px 3px;
    }

    input {
        padding: 5px;
        font-size: 12px;
    }

    .user-inputs .row p,
    .mode-matching-results .row p {
        font-size: 0.75rem;
    }

    /* Stack columns for better mobile experience */
    .user-inputs .row > div,
    .lens-inputs .row > div,
    .mode-matching-results .row > div {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 0.8rem;
    }
}
