body, div, input, li, p, span, td, textarea, select {
    font-family: arial, helvetica, sans-serif;
    font-size: 16px;
}

.calculator-container {
    background-color: white;
    width: 90%;
    max-width: 500px;
    margin: 20px auto;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.calculator-container h1 {
    color: #053b7d;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.calculator-container h1 i {
    margin-right: 10px;
    color: #6c757d;
}

.calculator-container h3 {
    color: #053b7d;
    font-size: 1rem;
    margin: 20px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #e0e0e0;
}

.input-row {
    display: flex;
    gap: 15px;
}

.input-row .input-container {
    flex: 1;
}

.input-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.input-container label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    font-size: 0.9rem;
}

.input-container input,
.input-container select {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #cfd1d8;
    border-radius: 5px;
    outline: none;
    box-sizing: border-box;
}

.input-container input:focus,
.input-container select:focus {
    border-color: #053b7d;
    box-shadow: 0 0 5px rgba(5, 59, 125, 0.3);
}

.checkbox-container {
    margin: 15px 0;
}

.checkbox-container label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

#button-container button {
    padding: 12px 25px;
    border: 0;
    color: #fff;
    font-size: 16px;
    background: #084288;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#button-container button:hover {
    background-color: #0a5a9c;
}

#result {
    margin-top: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

#result h3 {
    color: #053b7d;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: none;
}

.sheets-needed {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.sheets-needed .value {
    font-size: 3rem;
    font-weight: bold;
    font-family: 'Orbitron', monospace;
}

.sheets-needed .label {
    font-size: 1rem;
    opacity: 0.9;
}

.result-details {
    background: white;
    padding: 15px;
    border-radius: 10px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item .label {
    color: #666;
}

.result-item .value {
    font-weight: bold;
    color: #053b7d;
}

.result-item.total {
    background: #e8f4f8;
    margin: 10px -15px -15px;
    padding: 12px 15px;
    border-radius: 0 0 10px 10px;
}

.supplies-list {
    background: #fff3cd;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.supplies-list h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #856404;
}

.supplies-list ul {
    margin: 0;
    padding-left: 20px;
}

.supplies-list li {
    margin: 5px 0;
    color: #856404;
}

.drywall-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.drywall-table th, .drywall-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.drywall-table th {
    background-color: #053b7d;
    color: white;
}

.drywall-table tr:hover {
    background-color: #f5f5f5;
}

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

    .input-row {
        flex-direction: column;
        gap: 0;
    }

    #button-container {
        flex-direction: column;
    }

    #button-container button {
        width: 100%;
        justify-content: center;
    }

    .sheets-needed .value {
        font-size: 2.5rem;
    }
}
