
/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Fira Code', monospace;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Navigation Bar with Gradient */
.navbar {
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar h1 {
    font-size: 1.8rem;
}

/* Main Container */
.container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Calculator Card */
.calculator-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.calculator-card h2 {
    color: #4b6cb7;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Input Form Styles */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #4b6cb7;
    box-shadow: 0 0 5px rgba(75, 108, 183, 0.3);
}

/* Button Styles */
.btn {
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 1rem;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Results Section */
.results {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: 2rem;
    display: none;
}

.results h2 {
    color: #4b6cb7;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

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

.result-label {
    font-weight: bold;
    color: #555;
}

.result-value {
    color: #182848;
    font-weight: bold;
}

/* Print Button */
.print-btn {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    margin-top: 1.5rem;
}

/* Modal/Popup Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.close-btn {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    color: #555;
}

/* Responsive Design */
@media (min-width: 768px) {
    .form-row {
        display: flex;
        gap: 1.5rem;
    }

    .form-row .input-group {
        flex: 1;
    }

    .btn {
        width: auto;
        margin: 1rem auto 0;
        padding: 0.8rem 3rem;
    }
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 767px) {
    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn {
        width: 100%;
        margin-top: 0;
    }
}

@media (min-width: 768px) {
    .form-actions {
        flex-direction: row;
        justify-content: flex-start;
    }

    .btn {
        width: auto;
    }
}
