/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --text-color: #2c3e50;
    --border-radius: 8px;
    --box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-section .btn-light {
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-section .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Calculator Section */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    padding: 2rem;
}

.form-control {
    padding: 0.8rem;
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    border: none;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Tables */
.table {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table th {
    background-color: var(--light-bg);
    font-weight: 600;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

.table-success, .table-primary, .table-warning {
    --bs-table-bg-opacity: 0.15;
}

/* Policy Info Section */
.policy-info {
    background-color: var(--light-bg);
    padding: 4rem 0;
}

.policy-info .card {
    height: 100%;
    margin-bottom: 2rem;
}

.policy-info h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.policy-info h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

.list-group-item {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

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

.alert {
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

/* Progress Bar */
.progress {
    height: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.progress-bar {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .table-responsive {
        margin-bottom: 1rem;
    }
}

/* Print Styles */
@media print {
    .hero-section, .navbar, .footer {
        display: none;
    }
    
    .card {
        box-shadow: none;
    }
    
    .table {
        border: 1px solid #dee2e6;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#result {
    animation: fadeIn 0.5s ease-out;
}

/* Exchange Rate Display */
.exchange-rate {
    background: var(--light-bg);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Summary Section */
.summary-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 2rem 0;
}

.summary-text span {
    color: var(--secondary-color);
    font-weight: 700;
}

/* FAQ Section */
.accordion-button {
    padding: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-bg);
    color: var(--secondary-color);
}

/* Footer */
footer {
    background: var(--dark-bg);
    padding: 4rem 0;
}

footer h5 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

/* Enhanced Table Styles */
.result-table {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.result-table h3 {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.result-table h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-border-color: #edf2f7;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table th {
    background-color: #f8fafc !important;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem;
    border-bottom: 2px solid var(--bs-table-border-color);
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--bs-table-border-color);
    color: var(--text-color);
    font-size: 0.95rem;
}

.table tr:hover {
    background-color: #f8fafc;
    transition: background-color 0.2s ease;
}

.table-success {
    --bs-table-bg: rgba(46, 204, 113, 0.1) !important;
    --bs-table-color: #2ecc71;
}

.table-primary {
    --bs-table-bg: rgba(52, 152, 219, 0.1) !important;
    --bs-table-color: #3498db;
}

.table-warning {
    --bs-table-bg: rgba(241, 196, 15, 0.1) !important;
    --bs-table-color: #f1c40f;
}

.table-success strong,
.table-primary strong,
.table-warning strong {
    color: inherit;
}

.text-end {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
}

.text-muted.small {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border-radius: var(--border-radius);
    margin: 0.5rem 0;
}

.text-muted.small i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* Summary Section Enhancement */
.summary-text {
    background: linear-gradient(to right, #f8fafc, #ffffff);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.summary-text p {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.summary-text span {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.progress {
    height: 1.5rem;
    background-color: #f8fafc;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-bar {
    background: linear-gradient(45deg, var(--accent-color), #e74c3c);
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    transition: width 0.6s ease;
}

/* Print Optimization */
@media print {
    .result-table {
        box-shadow: none;
        padding: 0;
    }

    .table {
        border: 1px solid #dee2e6;
    }

    .table th {
        background-color: #f8f9fa !important;
        color: #000;
    }

    .progress {
        border: 1px solid #dee2e6;
    }

    .summary-text {
        background: none;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* Enhanced Navbar Styles */
.navbar {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color)) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.navbar-brand img {
    height: 35px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav {
    margin-left: 1rem;
}

.nav-item {
    margin: 0 0.25rem;
    position: relative;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.15);
}

.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 220px;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    transform: translateX(5px);
    color: var(--secondary-color);
}

.dropdown-item i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
    opacity: 0.8;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
        margin: 1rem -1rem -1rem;
        padding: 1rem;
        border-radius: var(--border-radius);
    }

    .nav-item {
        margin: 0.25rem 0;
    }

    .dropdown-menu {
        background: rgba(255,255,255,0.1);
        border: none;
        box-shadow: none;
    }

    .dropdown-item {
        color: rgba(255,255,255,0.9);
    }

    .dropdown-item:hover {
        background: rgba(255,255,255,0.15);
        color: #fff;
    }
} 