* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f7fa;
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: #0a1128;
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    padding: 20px 30px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
}

.mobile-nav-toggle {
    display: none;
}

.menu-section {
    margin-bottom: 30px;
}

.section-title {
    padding: 10px 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #8b92a7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-item {
    padding: 12px 30px;
    cursor: pointer;
    transition: all 0.3s;
    color: #b8bfcc;
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.menu-item.active {
    background: #ff6b35;
    color: white;
}

.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 40px 60px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 36px;
    color: #0a1128;
    margin-bottom: 15px;
}

.header h2 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 10px;
}

.header p {
    color: #718096;
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.calculator-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    display: none;
}

.calculator-card.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-title {
    font-size: 28px;
    font-weight: 600;
    color: #0a1128;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 15px;
}

input[type="number"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    color: #2d3748;
}

input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #ff6b35;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 10px;
}

.btn-primary {
    background: #ff6b35;
    color: white;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.results {
    margin-top: 35px;
    padding: 30px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #ff6b35;
    animation: fadeInUp 0.4s ease-out;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.result-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 18px;
    color: #0a1128;
}

.result-label {
    color: #4a5568;
    font-weight: 500;
}

.result-value {
    color: #2d3748;
    font-weight: 600;
}

.error {
    color: #e53e3e;
    font-size: 14px;
    margin-top: 5px;
}

.breakdown-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.breakdown-table th,
.breakdown-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.breakdown-table th {
    background: #edf2f7;
    font-weight: 600;
    color: #2d3748;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.comparison-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.comparison-card h3 {
    color: #2d3748;
    margin-bottom: 10px;
}

.comparison-card .amount {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b35;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        display: flex;
        flex-direction: column;
        padding-bottom: 0;
        box-shadow: none;
    }

    .logo {
        padding: 16px 20px;
        font-size: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 20px;
        cursor: pointer;
        padding: 5px;
    }

    .menu-section {
        padding: 0 12px;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease-in-out;
        opacity: 0;
    }

    .menu-section.show {
        padding: 8px 12px 18px;
        max-height: 600px;
        opacity: 1;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-item {
        padding: 10px 14px;
        font-size: 15px;
        white-space: nowrap;
    }

    .main-content {
        margin-left: 0;
        padding: 16px;
    }

    .header h1 {
        font-size: 22px;
    }

    .header h2 {
        font-size: 16px;
    }

    .calculator-card {
        padding: 18px;
        margin-bottom: 20px;
        border-radius: 10px;
    }

    .radio-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        display: block;
        margin: 8px 0;
    }

    .btn + .btn {
        margin-top: 10px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .breakdown-table th,
    .breakdown-table td {
        font-size: 14px;
        padding: 8px;
    }

    .results {
        padding: 18px;
    }

    input[type="number"], select {
        padding: 12px 14px;
        font-size: 15px;
    }
}

/* Footer Styles */
.footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: #718096;
    font-size: 14px;
    padding-bottom: 20px;
}

.footer .developed-by {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.footer .disclaimer {
    font-size: 12px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: #a0aec0;
}

@media (max-width: 768px) {
    .footer {
        padding: 20px;
        margin-top: 30px;
    }
    
    .footer .disclaimer {
        font-size: 11px;
    }
}
