.calculator-container {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0f4c81;
    font-size: 28px;
}

.lens-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.lens-table th {
    background-color: #0f4c81;
    color: white;
    font-weight: bold;
    padding: 12px 8px;
    text-align: center;
}

.lens-table td {
    border: 1px solid #ddd;
    padding: 10px 8px;
    text-align: center;
    vertical-align: middle;
}

.lens-shape {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-align: center;
    border: none;
    background: transparent;
    width: 60px;
    margin: 0 auto;
    display: block;
}

input[type="text"] {
    width: 80px;
    padding: 6px;
    margin: 3px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

select {
    padding: 6px;
    margin: 3px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 70px;
}

button {
    background-color: #0f4c81;
    color: white;
    border: none;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0a3a63;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.results {
    margin-top: 25px;
    padding: 20px;
    background-color: rgba(15, 76, 129, 0.08);
    border-radius: 8px;
    border-left: 5px solid #0f4c81;
}

.result-item {
    font-size: 20px;
    margin: 12px 0;
    font-weight: bold;
    color: #333;
}

.single-lens-results {
    margin-top: 10px;
    padding: 8px;
    background-color: rgba(15, 76, 129, 0.06);
    border-radius: 4px;
    border: 1px solid rgba(15, 76, 129, 0.15);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-result {
    font-size: 15px;
    margin: 0;
    font-weight: bold;
    color: #333;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 25px;
    border: none;
    width: 90%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #000;
}

.material-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.material-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    transition: background-color 0.2s;
}

.material-item:hover {
    background-color: #f1f1f1;
}

.material-search {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.n-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.n-input-container input {
    width: 70px;
}

.n-input-container button {
    padding: 6px 12px;
    font-size: 13px;
    margin: 0;
}

.material-details {
    display: flex;
    gap: 20px;
}

.material-details span {
    font-size: 14px;
    color: #666;
}

@media (max-width: 992px) {
    .calculator-container {
        padding: 15px;
    }

    h1 {
        font-size: 24px;
    }

    .lens-table {
        font-size: 14px;
    }

    input[type="text"] {
        width: 70px;
    }

    select {
        min-width: 60px;
    }
}

@media (max-width: 768px) {
    .calculator-container {
        padding: 15px;
    }

    h1 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .lens-table {
        display: block;
        overflow-x: auto;
    }

    .results {
        padding: 15px;
    }

    .result-item {
        font-size: 18px;
    }
}

.calculate-btn-container {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

#calculateBtn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    background-color: #0f4c81;
    min-width: 200px;
}

#calculateBtn:hover {
    background-color: #0a3a63;
}

.lens-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.lens-table tbody tr:hover {
    background-color: #f1f1f1;
}
