/* =========================================== */
/* Reset and Base Styles */
/* =========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================== */
/* Header & Navigation */
/* =========================================== */

.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #00d09c;
    text-decoration: none;
}

    .logo i {
        font-size: 28px;
    }

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

    .nav-link:hover {
        color: #00d09c;
    }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #444;
    cursor: pointer;
}

/* =========================================== */
/* Common Layout Components */
/* =========================================== */

.main-content {
    padding: 30px 0 60px;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.page-subtitle {
    color: #666;
    font-size: 16px;
    max-width: 700px;
}

/* =========================================== */
/* Breadcrumb Navigation */
/* =========================================== */

.breadcrumb {
    padding: 15px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 30px;
}

    .breadcrumb ol {
        list-style: none;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
    }

    .breadcrumb li {
        display: flex;
        align-items: center;
        font-size: 14px;
        color: #666;
    }

        .breadcrumb li:not(:last-child):after {
            content: '/';
            margin: 0 10px;
            color: #999;
        }

    .breadcrumb a {
        color: #00d09c;
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

/* =========================================== */
/* Calculator Layout Components */
/* =========================================== */

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Input Panel */
.input-panel {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.panel-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #222;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .panel-title i {
        color: #00d09c;
    }

.input-group {
    margin-bottom: 30px;
}

.input-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.input-value-display {
    font-weight: 600;
    color: #222;
    background: #f8f9fa;
    padding: 3px 10px;
    border-radius: 4px;
    min-width: 100px;
    text-align: center;
}

/* Input Container */
.input-container {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.text-input-group {
    flex: 1;
}

.text-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    background-color: #fafafa;
}

    .text-input:focus {
        outline: none;
        border-color: #00d09c;
        background-color: #fff;
        box-shadow: 0 0 0 3px rgba(0, 208, 156, 0.1);
    }

    .text-input::placeholder {
        color: #999;
    }

.input-suffix {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    min-width: 40px;
}

/* Slider */
.slider-container {
    width: 100%;
    margin-top: 5px;
}

.slider-wrapper {
    position: relative;
    padding: 10px 0;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #e0e0e0;
    border-radius: 10px;
    outline: none;
    position: relative;
    z-index: 2;
}

.slider-fill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 8px;
    background: #00d09c;
    border-radius: 10px;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 3px solid #00d09c;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    position: relative;
    z-index: 3;
}

    input[type="range"]::-webkit-slider-thumb:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }

.slider-marks {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
    color: #888;
    padding: 0 5px;
}

.input-hint {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
    padding-left: 5px;
}

/* Results Panel */
.results-panel {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.result-amount {
    font-size: 36px;
    font-weight: 700;
    color: #000000;
}

.result-label {
    font-size: 16px;
    color: #666;
}

.result-total-investment {
    text-align: right;
}

.total-investment-amount {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #00d09c;
}

    .summary-card.grey {
        border-left-color: #888;
    }

.summary-value {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 14px;
    color: #666;
}

/* Chart Container */
.chart-container {
    margin-top: 30px;
    height: 300px;
}

/* Info Section */
.info-section {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.info-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .info-title i {
        color: #00d09c;
    }

.info-content {
    color: #555;
    line-height: 1.7;
}

.info-subtitle {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #222;
    font-size: 18px;
    font-weight: 600;
}

.info-list {
    margin: 20px 0 20px 20px;
}

    .info-list li {
        margin-bottom: 10px;
    }

.info-note {
    margin-top: 20px;
    padding: 15px;
    background-color: #f0f9f6;
    border-radius: 8px;
    border-left: 4px solid #00d09c;
    color: #555;
}

/* Button */
.calculate-btn {
    background-color: #00d09c;
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

    .calculate-btn:hover {
        background-color: #00b386;
    }

/* Ad Placeholder */
.ad-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    height: 100px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 500;
    border: 2px dashed #ccc;
}

/* =========================================== */
/* EMI Calculator Specific */
/* =========================================== */

.tenure-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.tenure-switch {
    display: flex;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 2px;
}

.tenure-btn {
    padding: 4px 12px;
    border: none;
    background: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
}

    .tenure-btn.active {
        background: #fff;
        color: #00d09c;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

.tenure-marks {
    font-size: 11px;
}

/* Amortization Table */
.amortization-section {
    margin-top: 30px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #222;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .section-title i {
        color: #00d09c;
    }

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.amortization-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .amortization-table thead {
        background-color: #f8f9fa;
    }

    .amortization-table th {
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .amortization-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .amortization-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .amortization-table tbody tr:last-child td {
        border-bottom: none;
    }

.total-row {
    background-color: #f8f9fa;
    border-top: 2px solid #e0e0e0;
}

    .total-row td {
        font-weight: 600;
        color: #222;
    }

/* =========================================== */
/* PPF Calculator Specific */
/* =========================================== */

.ppf-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.feature-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

    .feature-card h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .feature-card h4 i {
            color: #00d09c;
        }

    .feature-card p {
        color: #666;
        font-size: 14px;
        line-height: 1.6;
    }

/* Tax Benefit */
.tax-benefit {
    background: linear-gradient(135deg, #f0f9f6 0%, #d4f0e9 100%);
    border: 1px solid #b8e6d8;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

    .tax-benefit i {
        color: #00d09c;
        font-size: 24px;
    }

.tax-benefit-content h4 {
    color: #222;
    margin-bottom: 5px;
    font-size: 16px;
}

.tax-benefit-content p {
    color: #555;
    font-size: 14px;
    margin: 0;
}

/* =========================================== */
/* GST Calculator Specific */
/* =========================================== */

.gst-type-selector {
    margin: 15px 0;
}

.gst-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
}

.gst-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: 2px solid transparent;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .gst-type-btn:hover {
        border-color: #00d09c;
    }

    .gst-type-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .gst-type-btn i {
        font-size: 24px;
        color: #666;
        margin-bottom: 8px;
    }

    .gst-type-btn.active i {
        color: #00d09c;
    }

    .gst-type-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        font-size: 16px;
    }

    .gst-type-btn small {
        font-size: 12px;
        color: #888;
    }

/* GST Rate Selector */
.gst-rate-selector {
    margin: 15px 0;
}

.gst-rate-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 2fr;
    gap: 8px;
    margin-bottom: 15px;
}

.gst-rate-btn {
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

    .gst-rate-btn:hover {
        border-color: #00d09c;
    }

    .gst-rate-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

.custom-rate {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.custom-rate-input {
    flex: 1;
    border: none;
    padding: 0 12px;
    font-size: 14px;
    height: 44px;
    min-width: 0;
    text-align: center;
}

    .custom-rate-input:focus {
        outline: none;
    }

.custom-rate-label {
    padding: 0 12px;
    background: #f8f9fa;
    height: 100%;
    display: flex;
    align-items: center;
    color: #666;
    font-weight: 600;
    border-left: 1px solid #e0e0e0;
}

/* GST Breakdown */
.gst-breakdown {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.breakdown-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.breakdown-value {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

/* GST Rates Table */
.gst-rates-table {
    margin: 20px 0;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .gst-rates-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .gst-rates-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .gst-rates-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .gst-rates-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .gst-rates-table tbody tr:last-child td {
        border-bottom: none;
    }

/* CGST/SGST */
.cgst-sgst-info {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.cgst-sgst-item {
    flex: 1;
    min-width: 200px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4a5568;
}

    .cgst-sgst-item.cgst {
        border-left-color: #00d09c;
    }

    .cgst-sgst-item.sgst {
        border-left-color: #4a5568;
    }

    .cgst-sgst-item h4 {
        margin-bottom: 5px;
        color: #222;
        font-size: 14px;
    }

    .cgst-sgst-item p {
        margin: 0;
        color: #666;
        font-size: 13px;
    }

/* =========================================== */
/* Currency Converter Specific */
/* =========================================== */

.currency-code-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: white;
    min-width: 80px;
    cursor: pointer;
    transition: border-color 0.3s;
}

    .currency-code-select:focus {
        outline: none;
        border-color: #00d09c;
    }

/* Currency Selector */
.currency-selector {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.currency-search {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

    .currency-search i {
        color: #888;
        margin-right: 10px;
    }

.currency-search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 14px;
    color: #333;
}

    .currency-search-input:focus {
        outline: none;
    }

    .currency-search-input::placeholder {
        color: #999;
    }

.currency-options-container {
    max-height: 300px;
    overflow-y: auto;
}

.currency-options {
    padding: 10px 0;
}

.currency-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-left: 3px solid transparent;
}

    .currency-option:hover {
        background-color: #f8f9fa;
    }

    .currency-option.selected {
        background-color: #f0f9f6;
        border-left-color: #00d09c;
    }

.currency-flag {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #00d09c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    margin-right: 12px;
}

.currency-info {
    flex: 1;
}

.currency-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    margin-bottom: 2px;
}

.currency-code {
    font-size: 12px;
    color: #666;
}

.currency-option .fa-check {
    color: #00d09c;
    font-size: 14px;
}

/* Swap Container */
.swap-container {
    text-align: center;
    margin: 20px 0;
}

.swap-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .swap-btn:hover {
        background: #f0f0f0;
        border-color: #00d09c;
        color: #00d09c;
    }

/* Conversion Result */
.conversion-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f0f9f6 0%, #e6f4f1 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid #d4f0e9;
}

.conversion-from, .conversion-to {
    flex: 1;
    text-align: center;
}

.conversion-arrow {
    color: #00d09c;
    font-size: 24px;
    padding: 0 20px;
}

.conversion-amount {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    word-break: break-all;
}

.conversion-currency {
    font-size: 16px;
    color: #666;
    margin-bottom: 4px;
}

.conversion-code {
    font-size: 14px;
    color: #888;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Exchange Rate Info */
.exchange-rate-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.rate-display {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border-left: 4px solid #00d09c;
}

    .rate-display.inverse {
        border-left-color: #4a5568;
    }

.rate-value {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
}

.rate-label {
    font-size: 14px;
    color: #666;
}

/* Popular Conversions */
.popular-conversions {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.conversion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.conversion-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    cursor: pointer;
}

    .conversion-item:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

.conversion-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.from-code, .to-code {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.conversion-pair .fa-arrow-right {
    color: #00d09c;
    font-size: 12px;
}

.conversion-rate {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.conversion-example {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

/* Currency Table */
.currency-table {
    margin: 20px 0;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .currency-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .currency-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .currency-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .currency-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .currency-table tbody tr:last-child td {
        border-bottom: none;
    }

/* =========================================== */
/* Lumpsum Calculator Specific */
/* =========================================== */

.lumpsum-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .benefit-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

.benefit-icon {
    background: #f0f9f6;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .benefit-icon i {
        color: #00d09c;
        font-size: 24px;
    }

.benefit-content {
    flex: 1;
}

    .benefit-content h4 {
        color: #222;
        margin-bottom: 8px;
        font-size: 16px;
        font-weight: 600;
    }

    .benefit-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* Lumpsum vs SIP Comparison */
.lumpsum-comparison {
    margin: 30px 0;
}

.comparison-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 15px;
}

    .comparison-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .comparison-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .comparison-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .comparison-table tbody tr:nth-child(odd) {
        background-color: #fafafa;
    }

    .comparison-table tbody tr:hover {
        background-color: #f0f9f6;
    }

    .comparison-table tbody tr:last-child td {
        border-bottom: none;
    }

/* CAGR Highlight */
.cagr-highlight {
    background: linear-gradient(135deg, #f0f9f6 0%, #d4f0e9 100%);
    border: 1px solid #b8e6d8;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

    .cagr-highlight i {
        color: #00d09c;
        font-size: 24px;
    }

.cagr-highlight-content h4 {
    color: #222;
    margin-bottom: 5px;
    font-size: 16px;
}

.cagr-highlight-content p {
    color: #555;
    font-size: 14px;
    margin: 0;
}

/* Investment Strategy Tips */
.strategy-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.strategy-tip {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #00d09c;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

    .strategy-tip h5 {
        color: #222;
        margin-bottom: 8px;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .strategy-tip h5 i {
            color: #00d09c;
        }

    .strategy-tip p {
        color: #666;
        font-size: 13px;
        line-height: 1.5;
        margin: 0;
    }

/* CAGR Calculator Mini */
.cagr-calculator {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
}

    .cagr-calculator h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .cagr-calculator h4 i {
            color: #00d09c;
        }

.cagr-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.cagr-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .cagr-input-group label {
        font-size: 14px;
        color: #555;
        font-weight: 500;
    }

    .cagr-input-group input {
        padding: 10px 12px;
        border: 2px solid #e0e0e0;
        border-radius: 6px;
        font-size: 14px;
        color: #333;
    }

        .cagr-input-group input:focus {
            outline: none;
            border-color: #00d09c;
        }

.cagr-result {
    background: #00d09c;
    color: white;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
}

/* =========================================== */
/* About Page Specific */
/* =========================================== */

.about-hero, .page-hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    color: white;
    border-radius: 0 0 20px 20px;
    margin-bottom: 60px;
}

    .about-hero h1, .page-hero h1 {
        font-size: 42px;
        font-weight: 800;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .about-hero p, .page-hero p {
        font-size: 20px;
        max-width: 800px;
        margin: 0 auto 30px;
        opacity: 0.95;
        line-height: 1.6;
    }

.mission-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.mission-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.mission-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 42px;
}

.mission-content h2 {
    font-size: 36px;
    color: #222;
    margin-bottom: 20px;
}

.mission-content p {
    font-size: 18px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.values-section {
    padding: 80px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    border-top: 5px solid #00d09c;
}

    .value-card:hover {
        transform: translateY(-10px);
    }

.value-icon {
    width: 80px;
    height: 80px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

    .value-icon i {
        color: #00d09c;
        font-size: 36px;
    }

.value-card h3 {
    font-size: 24px;
    color: #222;
    margin-bottom: 15px;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

.story-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.story-content {
    max-width: 1000px;
    margin: 0 auto;
}

    .story-content h2 {
        font-size: 36px;
        color: #222;
        margin-bottom: 30px;
        text-align: center;
    }

.story-timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
}

    .story-timeline:before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 100%;
        background: #00d09c;
    }

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    width: 50%;
    padding: 0 40px;
}

    .timeline-item:nth-child(odd) {
        left: 0;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
    }

    .timeline-item:before {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        background: white;
        border: 4px solid #00d09c;
        border-radius: 50%;
        top: 0;
    }

    .timeline-item:nth-child(odd):before {
        right: -10px;
    }

    .timeline-item:nth-child(even):before {
        left: -10px;
    }

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.timeline-year {
    font-size: 18px;
    font-weight: 600;
    color: #00d09c;
    margin-bottom: 10px;
}

.timeline-content h4 {
    font-size: 20px;
    color: #222;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

.team-section {
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

    .team-member:hover {
        transform: translateY(-5px);
    }

.member-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 48px;
}

.team-member h4 {
    font-size: 20px;
    color: #222;
    margin-bottom: 5px;
}

.team-member .role {
    color: #00d09c;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 15px;
}

.team-member p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.contact-section {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

    .contact-content h2 {
        font-size: 36px;
        color: #222;
        margin-bottom: 20px;
    }

    .contact-content p {
        font-size: 18px;
        color: #666;
        line-height: 1.7;
        margin-bottom: 40px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #00d09c;
    font-size: 24px;
}

.contact-item h4 {
    font-size: 18px;
    color: #222;
    margin-bottom: 10px;
}

.contact-item p {
    color: #666;
    font-size: 15px;
    margin: 0;
}

.contact-item a {
    color: #00d09c;
    text-decoration: none;
}

    .contact-item a:hover {
        text-decoration: underline;
    }

/* =========================================== */
/* Calculators Page Specific */
/* =========================================== */

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

    .section-header h2 {
        font-size: 32px;
        color: #222;
        margin-bottom: 15px;
    }

    .section-header p {
        color: #666;
        max-width: 700px;
        margin: 0 auto;
        font-size: 16px;
    }

.calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.calculator-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    border: 1px solid #eee;
}

    .calculator-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    }

.calculator-icon {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    color: white;
    padding: 25px;
    text-align: center;
    font-size: 32px;
}

.calculator-content {
    padding: 25px;
}

    .calculator-content h3 {
        font-size: 20px;
        color: #222;
        margin-bottom: 10px;
    }

    .calculator-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
        min-height: 60px;
    }

.calculator-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

    .calculator-features li {
        color: #555;
        font-size: 13px;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .calculator-features li i {
            color: #00d09c;
            font-size: 12px;
        }

.calculator-link {
    display: block;
    background: #00d09c;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

    .calculator-link:hover {
        background: #00b386;
    }

.faq-section {
    padding: 60px 0;
    background: #f8f9fa;
    margin-top: 50px;
}

.faq-item {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

    .faq-item h3 {
        color: #222;
        margin-bottom: 15px;
        font-size: 18px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .faq-item p {
        color: #666;
        line-height: 1.6;
    }

.cta-section {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    color: white;
    border-radius: 15px;
    margin: 50px 0;
}

    .cta-section h2 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .cta-section p {
        font-size: 18px;
        margin-bottom: 25px;
        opacity: 0.95;
    }

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    background: white;
    color: #00d09c;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .btn-white:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .btn-outline-white:hover {
        background: white;
        color: #00d09c;
    }

/* =========================================== */
/* Converters Page Specific */
/* =========================================== */

.converters-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border-radius: 0 0 20px 20px;
    margin-bottom: 40px;
}

    .converters-hero h1 {
        font-size: 38px;
        font-weight: 800;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .converters-hero p {
        font-size: 18px;
        max-width: 800px;
        margin: 0 auto 25px;
        opacity: 0.95;
        line-height: 1.6;
    }

.converter-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.converter-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border: 1px solid #e0e0e0;
}

    .converter-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }

.converter-header {
    padding: 25px;
    color: white;
    text-align: center;
}

    .converter-header.currency {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .converter-header.unit {
        background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    }

    .converter-header.time {
        background: linear-gradient(135deg, #4a00e0 0%, #8e2de2 100%);
    }

    .converter-header.temperature {
        background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    }

.converter-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.converter-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.converter-header p {
    opacity: 0.9;
    font-size: 15px;
}

.converter-content {
    padding: 25px;
}

.converter-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

    .converter-features li {
        padding: 8px 0;
        border-bottom: 1px solid #eee;
        display: flex;
        align-items: center;
        gap: 10px;
        color: #555;
    }

        .converter-features li:last-child {
            border-bottom: none;
        }

    .converter-features i {
        color: #6a11cb;
        font-size: 14px;
        width: 20px;
    }

.converter-stats {
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.converter-stat {
    text-align: center;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    display: block;
}

.stat-text {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.converter-button {
    display: block;
    background: #6a11cb;
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    margin-top: 15px;
}

    .converter-button:hover {
        background: #5a0cb3;
    }

    .converter-button.currency {
        background: #00d09c;
    }

    .converter-button.unit {
        background: #ff6b6b;
    }

    .converter-button.time {
        background: #4a00e0;
    }

    .converter-button.temperature {
        background: #ff9a9e;
        color: #333;
    }

.live-rates {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 40px 20px;
    border-radius: 15px;
    margin: 50px 0;
    text-align: center;
}

    .live-rates h2 {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .live-rates p {
        font-size: 18px;
        max-width: 700px;
        margin: 0 auto 30px;
        opacity: 0.9;
    }

.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.rate-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.rate-pair {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.rate-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.rate-label {
    font-size: 14px;
    opacity: 0.8;
}

.conversion-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.category-box {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #6a11cb;
}

    .category-box h4 {
        font-size: 20px;
        color: #222;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .category-box h4 i {
            color: #6a11cb;
        }

    .category-box ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .category-box li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
    }

        .category-box li:before {
            content: "→";
            position: absolute;
            left: 0;
            color: #6a11cb;
            font-weight: bold;
        }

    .category-box a {
        color: #444;
        text-decoration: none;
        transition: color 0.3s;
    }

        .category-box a:hover {
            color: #6a11cb;
        }

.benefits-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
}

.benefit-item h4 {
    font-size: 20px;
    color: #222;
    margin-bottom: 15px;
}

.benefit-item p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* =========================================== */
/* Finance Page Specific */
/* =========================================== */

.finance-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-radius: 0 0 20px 20px;
    margin-bottom: 40px;
}

    .finance-hero h1 {
        font-size: 38px;
        font-weight: 800;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .finance-hero p {
        font-size: 18px;
        max-width: 800px;
        margin: 0 auto 25px;
        opacity: 0.95;
        line-height: 1.6;
    }

.finance-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.finance-category {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-top: 5px solid #00d09c;
    transition: transform 0.3s;
}

    .finance-category:hover {
        transform: translateY(-5px);
    }

    .finance-category h3 {
        font-size: 22px;
        color: #222;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .finance-category h3 i {
            color: #00d09c;
        }

    .finance-category p {
        color: #666;
        margin-bottom: 20px;
        line-height: 1.6;
    }

    .finance-category ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .finance-category li {
        margin-bottom: 12px;
        padding-left: 25px;
        position: relative;
    }

        .finance-category li:before {
            content: "→";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
        }

    .finance-category a {
        color: #444;
        text-decoration: none;
        transition: color 0.3s;
        display: block;
        padding: 5px 0;
    }

        .finance-category a:hover {
            color: #00d09c;
        }

.featured-tools {
    background: #f8f9fa;
    padding: 60px 0;
    margin: 40px 0;
}

.tool-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.showcase-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.showcase-header {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    color: white;
    padding: 25px;
    text-align: center;
}

    .showcase-header h3 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .showcase-header p {
        opacity: 0.9;
        font-size: 15px;
    }

.showcase-content {
    padding: 25px;
}

.showcase-features {
    margin-bottom: 20px;
}

.showcase-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #555;
    font-size: 14px;
}

    .showcase-feature i {
        color: #00d09c;
        font-size: 12px;
    }

.showcase-stats {
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #00d09c;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.showcase-button {
    display: block;
    background: #00d09c;
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    margin-top: 15px;
}

    .showcase-button:hover {
        background: #00b386;
    }

.benefits-section {
    padding: 60px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

    .benefit-icon i {
        color: #00d09c;
        font-size: 32px;
    }

.benefit-card h4 {
    font-size: 18px;
    color: #222;
    margin-bottom: 15px;
}

.benefit-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.comparison-table {
    overflow-x: auto;
    margin: 40px 0;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

    .comparison-table table {
        width: 100%;
        border-collapse: collapse;
    }

    .comparison-table th {
        background: #f8f9fa;
        padding: 15px;
        text-align: left;
        font-weight: 600;
        color: #333;
        border-bottom: 2px solid #e0e0e0;
    }

    .comparison-table td {
        padding: 15px;
        border-bottom: 1px solid #eee;
        color: #555;
    }

    .comparison-table tr:nth-child(even) {
        background: #fafafa;
    }

    .comparison-table tr:hover {
        background: #f0f9f6;
    }

    .comparison-table .check {
        color: #00d09c;
        font-weight: bold;
    }

    .comparison-table .cross {
        color: #ff6b6b;
        font-weight: bold;
    }

/* =========================================== */
/* Homepage Specific */
/* =========================================== */

.hero-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    color: white;
    border-radius: 0 0 20px 20px;
    margin-bottom: 60px;
}

    .hero-section h1 {
        font-size: 42px;
        font-weight: 800;
        margin-bottom: 20px;
        line-height: 1.2;
    }

.hero-description {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.95;
    line-height: 1.6;
}

.btn-primary {
    background: white;
    color: #00d09c;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .btn-secondary:hover {
        background: white;
        color: #00d09c;
    }

.feature-highlights {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.feature-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

    .feature-highlight i {
        font-size: 20px;
    }

.features-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

    .features-section h2 {
        text-align: center;
        font-size: 32px;
        margin-bottom: 50px;
        color: #222;
    }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

    .feature-card:hover {
        transform: translateY(-5px);
    }

    .feature-card h3 {
        font-size: 20px;
        margin-bottom: 15px;
        color: #222;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .feature-card p {
        color: #666;
        line-height: 1.6;
    }

.tools-section {
    padding: 80px 20px;
    background: white;
}

    .tools-section h2 {
        text-align: center;
        font-size: 32px;
        margin-bottom: 20px;
        color: #222;
    }

    .tools-section > p {
        text-align: center;
        color: #666;
        font-size: 18px;
        margin-bottom: 50px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-category {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #00d09c;
}

    .tool-category h3 {
        font-size: 20px;
        margin-bottom: 20px;
        color: #222;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .tool-category ul {
        list-style: none;
        padding: 0;
    }

    .tool-category li {
        margin-bottom: 12px;
    }

    .tool-category a {
        color: #444;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: color 0.3s;
        padding: 8px 0;
        border-bottom: 1px solid #eee;
    }

        .tool-category a:hover {
            color: #00d09c;
        }

        .tool-category a i {
            color: #00d09c;
            font-size: 14px;
        }

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.stats-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    color: white;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item h3 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 18px;
    opacity: 0.9;
}

/* =========================================== */
/* Footer */
/* =========================================== */

.footer {
    background-color: #fff;
    padding: 40px 0 20px;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

.footer-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        text-decoration: none;
        color: #666;
        transition: color 0.3s;
    }

        .footer-links a:hover {
            color: #00d09c;
        }

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 14px;
}

/* =========================================== */
/* Responsive Styles */
/* =========================================== */

@media (max-width: 900px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .page-title, .hero-section h1, .about-hero h1, .page-hero h1, .converters-hero h1, .finance-hero h1 {
        font-size: 32px;
    }

    .page-subtitle, .hero-description, .about-hero p, .page-hero p, .converters-hero p, .finance-hero p {
        font-size: 18px;
    }

    .input-panel, .results-panel, .info-section, .feature-card, .tool-category, .converter-card, .finance-category {
        padding: 20px;
    }

    .result-amount, .conversion-amount {
        font-size: 30px;
    }

    .input-container {
        flex-direction: column;
        gap: 10px;
    }

    .text-input-group {
        width: 100%;
    }

    .summary-cards, .calculator-cards, .tools-grid, .converter-cards, .benefits-grid {
        grid-template-columns: 1fr;
    }

    .amortization-table, .comparison-table, .gst-rates-table, .currency-table {
        font-size: 13px;
    }

        .amortization-table th, .amortization-table td,
        .comparison-table th, .comparison-table td,
        .gst-rates-table th, .gst-rates-table td,
        .currency-table th, .currency-table td {
            padding: 10px 12px;
        }

    .ppf-features, .lumpsum-benefits {
        grid-template-columns: 1fr;
    }

    .feature-card, .benefit-card {
        padding: 15px;
    }

    .tax-benefit, .cagr-highlight {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .gst-type-options, .breakdown-grid, .exchange-rate-info {
        grid-template-columns: 1fr;
    }

    .gst-rate-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .cgst-sgst-info {
        flex-direction: column;
    }

    .conversion-result {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .conversion-arrow {
        padding: 15px 0;
        transform: rotate(90deg);
    }

    .rates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .conversion-categories {
        grid-template-columns: 1fr;
    }

    .tool-showcase, .finance-categories {
        grid-template-columns: 1fr;
    }

    .showcase-stats {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 500px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gst-rate-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .currency-flag {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .currency-name {
        font-size: 13px;
    }

    .conversion-amount {
        font-size: 24px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px;
        padding-right: 20px;
    }

    .story-timeline:before {
        left: 20px;
    }

    .timeline-item:before {
        left: 10px !important;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* =========================================== */
/* Compound Interest Calculator Specific */
/* =========================================== */

/* Frequency Selector */
.frequency-selector {
    margin: 15px 0;
}

.frequency-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
}

.frequency-btn {
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .frequency-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .frequency-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

/* Annual Breakdown */
.annual-breakdown {
    margin-top: 30px;
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}

    .breakdown-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 2px solid #e0e0e0;
    }

    .breakdown-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .breakdown-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .breakdown-table .total-row {
        background-color: #f8f9fa;
        border-top: 2px solid #e0e0e0;
    }

        .breakdown-table .total-row td {
            font-weight: 600;
            color: #222;
        }

/* Formula Box */
.formula-box {
    background: linear-gradient(135deg, #f0f9f6 0%, #e6f4f1 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid #d4f0e9;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #222;
    font-family: 'Courier New', monospace;
}

.formula-explanation {
    margin-top: 20px;
    text-align: left;
    font-size: 16px;
    font-weight: normal;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Example Grid */
.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.example-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

    .example-card h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .example-card h4 i {
            color: #00d09c;
        }

    .example-card p {
        color: #666;
        font-size: 14px;
        line-height: 1.6;
        margin: 0;
    }

/* Related Tools */
.related-tools {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    border: 2px solid transparent;
}

    .tool-card:hover {
        background: #f0f9f6;
        border-color: #00d09c;
        transform: translateY(-2px);
    }

    .tool-card i {
        font-size: 32px;
        color: #00d09c;
        margin-bottom: 10px;
    }

    .tool-card span {
        font-weight: 600;
        font-size: 14px;
        text-align: center;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .frequency-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .formula-box {
        font-size: 20px;
        padding: 20px;
    }

    .example-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .frequency-options {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================== */
/* Compound Interest Calculator Specific */
/* =========================================== */



/* =========================================== */
/* FD Calculator Specific */
/* =========================================== */

/* Compounding Selector */
.compounding-selector {
    margin: 15px 0;
}

.compounding-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
}

.compounding-btn {
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .compounding-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .compounding-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

/* Payout Selector */
.payout-selector {
    margin: 15px 0;
}

.payout-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.payout-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .payout-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .payout-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .payout-btn i {
        font-size: 20px;
        color: #666;
        margin-bottom: 8px;
    }

    .payout-btn.active i {
        color: #00d09c;
    }

    .payout-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .payout-btn small {
        font-size: 11px;
        color: #888;
        line-height: 1.3;
    }

/* Senior Citizen Toggle */
.senior-citizen-toggle {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toggle-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
}

    .toggle-switch input {
        display: none;
    }

.toggle-slider {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: #ccc;
    border-radius: 34px;
    margin-right: 15px;
    transition: background-color 0.3s;
}

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 22px;
        width: 22px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        border-radius: 50%;
        transition: transform 0.3s;
    }

.toggle-switch input:checked + .toggle-slider {
    background-color: #00d09c;
}

    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(30px);
    }

.toggle-label {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .toggle-label i {
        color: #00d09c;
    }

.senior-info {
    background: #f0f9f6;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid #00d09c;
}

    .senior-info i {
        color: #00d09c;
        font-size: 16px;
    }

/* Interest Breakdown */
.interest-breakdown {
    margin: 25px 0;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.breakdown-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.breakdown-value {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

/* TDS Information */
.tds-info {
    background: #fff8e1;
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
    border: 1px solid #ffd54f;
}

.tds-content {
    color: #555;
    line-height: 1.6;
}

.tds-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.tds-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .tds-item span {
        color: #666;
        font-size: 14px;
    }

    .tds-item strong {
        color: #222;
        font-size: 16px;
    }

/* Bank Rates Comparison */
.rates-comparison {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
}

.rates-table {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .rates-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .rates-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 2px solid #e0e0e0;
    }

    .rates-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
        color: #555;
    }

    .rates-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .rates-table tbody tr:last-child td {
        border-bottom: none;
    }

    .rates-table td:first-child {
        font-weight: 600;
        color: #222;
    }

/* FD Types */
.fd-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.fd-type-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

    .fd-type-card h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .fd-type-card h4 i {
            color: #00d09c;
        }

    .fd-type-card p {
        color: #666;
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .fd-type-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .fd-type-card li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        font-size: 13px;
        color: #555;
    }

        .fd-type-card li:before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
        }

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.benefit-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

    .benefit-icon i {
        color: #00d09c;
        font-size: 24px;
    }

.benefit-item h4 {
    font-size: 16px;
    color: #222;
    margin-bottom: 10px;
}

.benefit-item p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Tax Information */
.tax-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.tax-point {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

    .tax-point:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .tax-point i {
        color: #00d09c;
        font-size: 20px;
        margin-top: 2px;
    }

    .tax-point h5 {
        color: #222;
        margin-bottom: 5px;
        font-size: 15px;
    }

    .tax-point p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .compounding-options,
    .payout-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .breakdown-grid,
    .tds-details {
        grid-template-columns: 1fr;
    }

    .fd-types,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .rates-table {
        font-size: 12px;
    }

        .rates-table th,
        .rates-table td {
            padding: 8px 10px;
        }
}

@media (max-width: 480px) {
    .compounding-options,
    .payout-options {
        grid-template-columns: 1fr;
    }

    .tax-point {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================== */
/* FD Calculator Specific */
/* =========================================== */



/* =========================================== */
/* Income Tax Calculator Specific */
/* =========================================== */

/* Regime Selector */
.regime-selector {
    margin: 15px 0;
}

.regime-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.regime-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .regime-btn:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

    .regime-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
        box-shadow: 0 5px 15px rgba(0, 208, 156, 0.1);
    }

    .regime-btn i {
        font-size: 24px;
        color: #666;
        margin-bottom: 10px;
    }

    .regime-btn.active i {
        color: #00d09c;
    }

    .regime-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 5px;
        font-size: 16px;
    }

    .regime-btn small {
        font-size: 12px;
        color: #888;
        line-height: 1.3;
    }

/* Age Group Selector */
.age-group-selector {
    margin: 15px 0;
}

.age-group-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
}

.age-group-btn {
    padding: 15px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

    .age-group-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .age-group-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

    .age-group-btn span {
        margin-bottom: 5px;
    }

    .age-group-btn small {
        font-size: 11px;
        font-weight: normal;
        opacity: 0.8;
    }

/* Section Titles */
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 25px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

    .section-title i {
        color: #00d09c;
    }

/* Deduction Groups */
.deduction-group {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.deduction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

    .deduction-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.deduction-label {
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .deduction-label span:first-child {
        font-weight: 500;
        color: #333;
        font-size: 14px;
        margin-bottom: 3px;
    }

.deduction-hint {
    font-size: 12px;
    color: #888;
}

.deduction-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .deduction-input .text-input {
        width: 150px;
        text-align: right;
    }

/* Regime Comparison Results */
.regime-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.regime-result {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid #00d09c;
}

#oldRegimeResult {
    border-top-color: #4a5568;
}

#newRegimeResult {
    border-top-color: #00d09c;
}

.regime-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .regime-header h3 {
        font-size: 18px;
        color: #222;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.regime-status {
    font-size: 12px;
    background: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.regime-amount {
    text-align: center;
    margin-bottom: 25px;
}

.tax-amount {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

#oldRegimeResult .tax-amount {
    color: #4a5568;
}

#newRegimeResult .tax-amount {
    color: #00d09c;
}

.tax-label {
    font-size: 14px;
    color: #666;
}

.regime-breakdown {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

    .breakdown-item:last-child {
        margin-bottom: 0;
    }

    .breakdown-item span {
        color: #666;
    }

    .breakdown-item strong {
        color: #222;
    }

/* Tax Savings */
.tax-savings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.savings-card {
    background: linear-gradient(135deg, #f0f9f6 0%, #e6f4f1 100%);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #d4f0e9;
}

.savings-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 24px;
}

.savings-content {
    flex: 1;
}

.savings-amount {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.savings-label {
    font-size: 14px;
    color: #666;
}

/* Tax Slabs Breakdown */
.tax-slabs {
    margin-bottom: 30px;
}

.slabs-container {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.slabs-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.slabs-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

    .slabs-tab:hover {
        background: #f0f0f0;
    }

    .slabs-tab.active {
        background: #fff;
        color: #222;
        border-bottom: 3px solid #00d09c;
    }

.slabs-content {
    padding: 20px;
}

.slabs-table {
    overflow-x: auto;
}

    .slabs-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .slabs-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .slabs-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .slabs-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .slabs-table tfoot tr {
        background-color: #f8f9fa;
        border-top: 2px solid #e0e0e0;
    }

    .slabs-table .rebate-row {
        background-color: #f0f9f6;
        color: #00d09c;
    }

        .slabs-table .rebate-row td {
            color: #00d09c;
            font-weight: 600;
        }

/* Cess Calculation */
.cess-calculation {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 10px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

.cess-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 15px;
}

    .cess-item:last-child {
        margin-bottom: 0;
    }

.cess-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 18px;
    font-weight: 600;
}

/* Tax Recommendation */
.tax-recommendation {
    background: #fff8e1;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #ffd54f;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.recommendation-icon {
    width: 50px;
    height: 50px;
    background: #ffd54f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 24px;
    flex-shrink: 0;
}

.recommendation-content {
    flex: 1;
}

    .recommendation-content h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 18px;
    }

    .recommendation-content p {
        color: #666;
        line-height: 1.6;
        margin-bottom: 15px;
    }

.recommendation-action {
    margin-top: 15px;
}

.action-btn {
    background: #00d09c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

    .action-btn:hover {
        background: #00b386;
    }

/* Tax Slabs Information */
.tax-slabs-info {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
}

.slabs-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

.slabs-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.slabs-header {
    padding: 20px;
    color: white;
}

    .slabs-header.old-regime {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }

    .slabs-header.new-regime {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .slabs-header h3 {
        font-size: 20px;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.slabs-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.slabs-content {
    padding: 20px;
}

    .slabs-content table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .slabs-content th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .slabs-content td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .slabs-content tbody tr:hover {
        background-color: #f9f9f9;
    }

    .slabs-content tbody tr:last-child td {
        border-bottom: none;
    }

.slabs-note {
    margin-top: 15px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    border-left: 3px solid #00d09c;
}

/* Deductions Grid */
.deductions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.deduction-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

    .deduction-card h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .deduction-card h4 i {
            color: #00d09c;
        }

    .deduction-card p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

.deduction-limit {
    display: inline-block;
    background: #f0f9f6;
    color: #00d09c;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Regime Choice */
.regime-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.choice-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

    .choice-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .choice-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .choice-card li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .choice-card li:before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
        }

/* Deadlines */
.deadlines {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.deadline-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #00d09c;
}

.deadline-date {
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
    font-size: 16px;
}

.deadline-desc {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .regime-options,
    .age-group-options,
    .regime-comparison,
    .tax-savings,
    .slabs-comparison,
    .regime-choice {
        grid-template-columns: 1fr;
    }

    .deduction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .deduction-input {
        width: 100%;
    }

        .deduction-input .text-input {
            width: 100%;
        }

    .slabs-tabs {
        flex-direction: column;
    }

    .tax-recommendation {
        flex-direction: column;
        text-align: center;
    }

    .recommendation-icon {
        margin: 0 auto;
    }

    .deductions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 14px;
    }

    .tax-amount {
        font-size: 24px;
    }

    .savings-amount {
        font-size: 20px;
    }

    .slabs-content {
        padding: 15px;
    }

        .slabs-content th,
        .slabs-content td {
            padding: 8px 10px;
            font-size: 12px;
        }
}


/* =========================================== */
/* Salary Calculator Specific */
/* =========================================== */

/* Calculation Type Selector */
.calculation-type-selector {
    margin: 15px 0;
}

.type-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .type-btn:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

    .type-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
        box-shadow: 0 5px 15px rgba(0, 208, 156, 0.1);
    }

    .type-btn i {
        font-size: 24px;
        color: #666;
        margin-bottom: 10px;
    }

    .type-btn.active i {
        color: #00d09c;
    }

    .type-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 5px;
        font-size: 15px;
    }

    .type-btn small {
        font-size: 12px;
        color: #888;
        line-height: 1.3;
    }

/* Component Groups */
.component-group {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.component-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

    .component-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.component-label {
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .component-label span:first-child {
        font-weight: 500;
        color: #333;
        font-size: 14px;
        margin-bottom: 3px;
    }

.component-hint {
    font-size: 12px;
    color: #888;
}

.component-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 15px;
}

    .component-input .text-input {
        width: 100px;
        text-align: center;
    }

.component-value {
    width: 120px;
    text-align: right;
    font-weight: 600;
    color: #222;
    font-size: 14px;
}

/* Deduction Groups */
.deduction-group {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.deduction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

    .deduction-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.deduction-toggle {
    margin: 0 15px;
}

.toggle-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
}

    .toggle-switch input {
        display: none;
    }

.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background-color: #ccc;
    border-radius: 34px;
    transition: background-color 0.3s;
}

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        border-radius: 50%;
        transition: transform 0.3s;
    }

.toggle-switch input:checked + .toggle-slider {
    background-color: #00d09c;
}

    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(24px);
    }

.deduction-value {
    width: 100px;
    text-align: right;
    font-weight: 600;
    color: #222;
    font-size: 14px;
}

/* Benefit Groups */
.benefit-group {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

    .benefit-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.benefit-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .benefit-input .text-input {
        width: 120px;
        text-align: right;
    }

/* Tax Regime Selector */
.tax-regime-selector {
    margin: 15px 0;
}

.regime-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.regime-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .regime-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .regime-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .regime-btn i {
        font-size: 20px;
        color: #666;
        margin-bottom: 8px;
    }

    .regime-btn.active i {
        color: #00d09c;
    }

    .regime-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .regime-btn small {
        font-size: 11px;
        color: #888;
        line-height: 1.3;
    }

/* Salary Summary */
.salary-summary {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .summary-header h3 {
        font-size: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.summary-period {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.summary-breakdown {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .summary-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .summary-item.net {
        padding-top: 20px;
        border-top: 2px solid rgba(255, 255, 255, 0.3);
        font-size: 18px;
    }

    .summary-item span {
        font-size: 15px;
        opacity: 0.9;
    }

    .summary-item strong {
        font-size: 18px;
        font-weight: 700;
    }

    .summary-item.net strong {
        font-size: 22px;
    }

/* Components Breakdown */
.components-breakdown {
    margin-bottom: 25px;
}

.components-grid {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.component-breakdown {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

    .component-breakdown:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.component-name {
    width: 150px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.component-bar {
    flex: 1;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 15px;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 10px;
}

.basic-fill {
    background: #00d09c;
}

.hra-fill {
    background: #4a5568;
}

.da-fill {
    background: #f56565;
}

.other-fill {
    background: #ed8936;
}

.component-amount {
    width: 120px;
    text-align: right;
    font-weight: 600;
    color: #222;
    font-size: 14px;
}

/* Deductions Breakdown */
.deductions-breakdown {
    margin-bottom: 25px;
}

.deductions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.deduction-breakdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #00d09c;
}

.deduction-name {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.deduction-amount {
    font-weight: 600;
    color: #222;
    font-size: 14px;
}

/* Annual Projection */
.annual-projection {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 10px;
    padding: 25px;
    color: white;
    margin-bottom: 25px;
}

.projection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.projection-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.projection-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.projection-amount {
    font-size: 18px;
    font-weight: 700;
}

/* Salary Insights */
.salary-insights {
    margin-top: 25px;
}

.insight-card {
    background: #fff8e1;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #ffd54f;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.insight-icon {
    width: 40px;
    height: 40px;
    background: #ffd54f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 20px;
    flex-shrink: 0;
}

.insight-content {
    flex: 1;
}

    .insight-content h4 {
        color: #222;
        margin-bottom: 8px;
        font-size: 16px;
    }

    .insight-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

.insight-action {
    margin-top: 10px;
}

.action-btn {
    background: #00d09c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background 0.3s;
}

    .action-btn:hover {
        background: #00b386;
    }

/* Salary Components Information */
.salary-components-info {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.component-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.component-header {
    padding: 20px;
    color: white;
}

    .component-header.basic {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .component-header.hra {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }

    .component-header.da {
        background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
    }

    .component-header.special {
        background: linear-gradient(135deg, #ed8936 0%, #ed64a6 100%);
    }

    .component-header h3 {
        font-size: 18px;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.component-content {
    padding: 20px;
}

    .component-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .component-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .component-content li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 13px;
        line-height: 1.4;
    }

        .component-content li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Terms Grid */
.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.term-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

    .term-card h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .term-card h4 i {
            color: #00d09c;
        }

    .term-card p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

.term-formula {
    background: #f0f9f6;
    padding: 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #00b386;
    border-left: 3px solid #00d09c;
}

/* Tax Saving Tips */
.tax-saving-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.tip-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #00d09c;
}

.tip-icon {
    width: 40px;
    height: 40px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 18px;
    flex-shrink: 0;
}

.tip-content h5 {
    color: #222;
    margin-bottom: 5px;
    font-size: 14px;
}

.tip-content p {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

/* Deductions Table */
.deductions-table {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .deductions-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }

    .deductions-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .deductions-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .deductions-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .deductions-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .type-options,
    .regime-options {
        grid-template-columns: 1fr;
    }

    .component-item,
    .deduction-item,
    .benefit-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .component-input,
    .deduction-toggle,
    .benefit-input {
        align-self: flex-start;
        margin-left: 0;
    }

    .component-value,
    .deduction-value {
        align-self: flex-end;
    }

    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

        .summary-item strong {
            align-self: flex-end;
        }

    .component-breakdown {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .component-bar {
        width: 100%;
        margin: 10px 0;
    }

    .component-amount {
        align-self: flex-end;
    }

    .deductions-grid,
    .projection-grid {
        grid-template-columns: 1fr;
    }

    .components-grid,
    .terms-grid,
    .tax-saving-tips {
        grid-template-columns: 1fr;
    }

    .insight-card {
        flex-direction: column;
        text-align: center;
    }

    .insight-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .component-input .text-input {
        width: 80px;
    }

    .benefit-input .text-input {
        width: 100px;
    }

    .deductions-table {
        font-size: 12px;
    }

        .deductions-table th,
        .deductions-table td {
            padding: 8px 10px;
        }
}

/* =========================================== */
/* VAT Calculator Specific */
/* =========================================== */

/* Calculation Type Selector */
.calculation-type-selector {
    margin: 15px 0;
}

.type-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .type-btn:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

    .type-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
        box-shadow: 0 5px 15px rgba(0, 208, 156, 0.1);
    }

    .type-btn i {
        font-size: 24px;
        color: #666;
        margin-bottom: 10px;
    }

    .type-btn.active i {
        color: #00d09c;
    }

    .type-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 5px;
        font-size: 15px;
    }

    .type-btn small {
        font-size: 12px;
        color: #888;
        line-height: 1.3;
    }

/* Common Rates Selector */
.common-rates-selector {
    margin: 15px 0;
}

.rates-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.rate-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .rate-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .rate-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

    .rate-btn span {
        margin-bottom: 5px;
        font-size: 16px;
    }

    .rate-btn small {
        font-size: 11px;
        font-weight: normal;
        opacity: 0.8;
    }

/* Breakdown Toggle */
.breakdown-toggle {
    margin: 15px 0;
}

.toggle-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
}

    .toggle-switch input {
        display: none;
    }

.toggle-slider {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: #ccc;
    border-radius: 34px;
    margin-right: 15px;
    transition: background-color 0.3s;
}

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 22px;
        width: 22px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        border-radius: 50%;
        transition: transform 0.3s;
    }

.toggle-switch input:checked + .toggle-slider {
    background-color: #00d09c;
}

    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(30px);
    }

.toggle-label {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .toggle-label i {
        color: #00d09c;
    }

/* Country Selector */
.country-selector {
    margin: 15px 0;
}

.country-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

    .country-select:focus {
        outline: none;
        border-color: #00d09c;
        box-shadow: 0 0 0 3px rgba(0, 208, 156, 0.1);
    }

/* VAT Results */
.vat-results {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

.result-main {
    text-align: center;
    margin-bottom: 25px;
}

.result-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.result-amount {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.result-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.result-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.breakdown-label {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.breakdown-value {
    font-size: 18px;
    font-weight: 600;
}

/* VAT Breakdown */
.vat-breakdown {
    margin-bottom: 25px;
}

.breakdown-formula {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
}

.formula-box {
    text-align: center;
}

.formula-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

.formula-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.formula-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

    .formula-step span {
        font-weight: 500;
        color: #555;
        font-size: 14px;
    }

    .formula-step code {
        background: white;
        padding: 10px 15px;
        border-radius: 6px;
        font-family: 'Courier New', monospace;
        color: #222;
        border: 1px solid #e0e0e0;
        width: 100%;
        max-width: 400px;
        text-align: center;
    }

/* Quick Calculations */
.quick-calculations {
    margin-bottom: 25px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.quick-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

    .quick-card:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

.quick-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.quick-amount {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
}

.quick-vat {
    font-size: 12px;
    color: #00d09c;
    font-weight: 500;
}

/* VAT Comparison */
.vat-comparison {
    margin-bottom: 25px;
}

.comparison-header {
    text-align: center;
    margin-bottom: 20px;
}

    .comparison-header h3 {
        font-size: 20px;
        color: #222;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

.comparison-note {
    color: #666;
    font-size: 14px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.comparison-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.comparison-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.comparison-amount {
    font-size: 28px;
    font-weight: 700;
    color: #00d09c;
    margin-bottom: 20px;
}

.comparison-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .comparison-list li {
        margin-bottom: 10px;
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
        font-size: 14px;
    }

        .comparison-list li:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }

/* Copy Results */
.copy-results {
    text-align: center;
    margin-top: 30px;
}

.copy-btn {
    background: #4a5568;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

    .copy-btn:hover {
        background: #2d3748;
    }

.copy-success {
    margin-top: 10px;
    color: #00d09c;
    font-weight: 500;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    display: none;
}

/* VAT Rates Table */
.vat-rates-table {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
}

.rates-table-container {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .rates-table-container table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .rates-table-container th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 2px solid #e0e0e0;
    }

    .rates-table-container td {
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
        color: #555;
    }

    .rates-table-container tbody tr:hover {
        background-color: #f9f9f9;
    }

    .rates-table-container tbody tr:last-child td {
        border-bottom: none;
    }

/* VAT Process */
.vat-process {
    margin: 20px 0;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

    .process-step:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.step-number {
    width: 40px;
    height: 40px;
    background: #00d09c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content h4 {
    color: #222;
    margin-bottom: 8px;
    font-size: 16px;
}

.step-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Tax Comparison */
.tax-comparison {
    margin: 20px 0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.comparison-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .comparison-item h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .comparison-item h4 i {
            color: #00d09c;
        }

    .comparison-item ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .comparison-item li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .comparison-item li:before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
        }

/* Formulas Grid */
.formulas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.formula-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

.formula-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

    .formula-header i {
        color: #00d09c;
        font-size: 20px;
    }

    .formula-header h4 {
        color: #222;
        font-size: 16px;
        margin: 0;
    }

.formula-content {
    color: #555;
}

.formula {
    background: #f0f9f6;
    padding: 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    color: #00b386;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
}

.example {
    font-size: 13px;
    line-height: 1.5;
}

/* VAT Categories */
.vat-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.category-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.category-header {
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .category-header.standard {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .category-header.reduced {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }

    .category-header.zero {
        background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
    }

    .category-header.exempt {
        background: linear-gradient(135deg, #ed8936 0%, #ed64a6 100%);
    }

    .category-header h4 {
        font-size: 16px;
        margin: 0;
    }

.category-rate {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.category-content {
    padding: 20px;
}

    .category-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .category-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .category-content li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 13px;
    }

        .category-content li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Responsive adjustments */
@media (max-width: 768px) {
    .type-options,
    .rates-options {
        grid-template-columns: 1fr;
    }

    .result-breakdown,
    .quick-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .step-number {
        margin: 0 auto;
    }

    .formulas-grid,
    .vat-categories {
        grid-template-columns: 1fr;
    }

    .rates-table-container {
        font-size: 12px;
    }

        .rates-table-container th,
        .rates-table-container td {
            padding: 8px 10px;
        }
}

@media (max-width: 480px) {
    .result-amount {
        font-size: 28px;
    }

    .breakdown-value {
        font-size: 16px;
    }

    .formula-step code {
        font-size: 12px;
        padding: 8px 10px;
    }

    .quick-amount {
        font-size: 16px;
    }

    .comparison-amount {
        font-size: 24px;
    }
}

/* =========================================== */
/* Discount Calculator Specific */
/* =========================================== */

/* Discount Type Selector */
.discount-type-selector {
    margin: 15px 0;
}

.type-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .type-btn:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

    .type-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
        box-shadow: 0 5px 15px rgba(0, 208, 156, 0.1);
    }

    .type-btn i {
        font-size: 24px;
        color: #666;
        margin-bottom: 10px;
    }

    .type-btn.active i {
        color: #00d09c;
    }

    .type-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 5px;
        font-size: 15px;
    }

    .type-btn small {
        font-size: 12px;
        color: #888;
        line-height: 1.3;
    }

/* Common Discounts Selector */
.common-discounts-selector {
    margin: 15px 0;
}

.discount-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.discount-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .discount-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .discount-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

    .discount-btn span {
        margin-bottom: 5px;
        font-size: 14px;
    }

    .discount-btn small {
        font-size: 11px;
        font-weight: normal;
        opacity: 0.8;
    }

/* Multiple Discounts Toggle */
.multiple-discounts-toggle {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.multiple-discounts-info {
    background: #f0f9f6;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid #00d09c;
}

    .multiple-discounts-info i {
        color: #00d09c;
        font-size: 16px;
    }

/* Tax Toggle */
.tax-toggle {
    margin: 15px 0;
}

/* Savings Results */
.savings-results {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

.savings-main {
    text-align: center;
    margin-bottom: 25px;
}

.savings-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.savings-amount {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
}

.savings-percentage {
    font-size: 20px;
    opacity: 0.9;
    font-weight: 600;
}

.price-breakdown {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .price-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .price-item.final {
        border-top: 2px solid rgba(255, 255, 255, 0.3);
        padding-top: 20px;
        font-size: 18px;
        font-weight: 600;
    }

    .price-item span {
        font-size: 15px;
        opacity: 0.9;
    }

    .price-item strong {
        font-size: 18px;
        font-weight: 700;
    }

    .price-item.discount strong {
        color: #ffd54f;
    }

    .price-item.final strong {
        font-size: 22px;
    }

/* Discount Summary */
.discount-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.summary-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.summary-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 24px;
}

.summary-content {
    flex: 1;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 14px;
    color: #666;
}

/* Detailed Breakdown */
.detailed-breakdown {
    margin-bottom: 25px;
}

.breakdown-grid {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

    .breakdown-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .breakdown-item.total {
        padding-top: 15px;
        border-top: 2px solid #e0e0e0;
        font-size: 16px;
        font-weight: 600;
    }

.breakdown-label {
    font-size: 14px;
    color: #666;
}

.breakdown-value {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.breakdown-item.total .breakdown-value {
    color: #00d09c;
    font-size: 18px;
}

/* Multiple Discounts Result */
.multiple-discounts-result {
    margin-bottom: 25px;
}

.multiple-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.step {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.step-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.step-amount {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
}

    .step-amount.total-savings {
        color: #00d09c;
        font-size: 20px;
    }

.step-price {
    font-size: 14px;
    color: #888;
}

/* Comparison Table */
.comparison-table {
    margin-bottom: 25px;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .table-container table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .table-container th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .table-container td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .table-container tbody tr:hover {
        background-color: #f9f9f9;
    }

    .table-container tbody tr:last-child td {
        border-bottom: none;
    }

/* Best Deal Finder */
.best-deal-finder {
    margin-top: 25px;
}

.deal-card {
    background: #fff8e1;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #ffd54f;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.deal-icon {
    width: 50px;
    height: 50px;
    background: #ffd54f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 24px;
    flex-shrink: 0;
}

.deal-content {
    flex: 1;
}

    .deal-content h4 {
        color: #222;
        margin-bottom: 8px;
        font-size: 18px;
    }

    .deal-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

.deal-action {
    margin-top: 10px;
}

.action-btn {
    background: #00d09c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background 0.3s;
}

    .action-btn:hover {
        background: #00b386;
    }

/* Discount Types Information */
.discount-types-info {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.type-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.type-header {
    padding: 20px;
    color: white;
}

    .type-header.percentage {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .type-header.fixed {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }

    .type-header.buyone {
        background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
    }

    .type-header.bulk {
        background: linear-gradient(135deg, #ed8936 0%, #ed64a6 100%);
    }

    .type-header h3 {
        font-size: 18px;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.type-content {
    padding: 20px;
}

    .type-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

.type-formula {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
    border-left: 3px solid #00d09c;
}

.type-example {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Calculation Steps */
.calculation-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.step-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #00d09c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content h4 {
    color: #222;
    margin-bottom: 10px;
    font-size: 16px;
}

.step-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 5px;
}

/* Strategies Grid */
.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.strategy-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .strategy-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .strategy-card h4 i {
            color: #00d09c;
        }

    .strategy-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .strategy-card li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .strategy-card li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Examples Table */
.examples-table {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .examples-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }

    .examples-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .examples-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .examples-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .examples-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .type-options,
    .discount-options {
        grid-template-columns: 1fr;
    }

    .savings-amount {
        font-size: 32px;
    }

    .savings-percentage {
        font-size: 16px;
    }

    .discount-summary,
    .multiple-steps {
        grid-template-columns: 1fr;
    }

    .price-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

        .price-item strong {
            align-self: flex-end;
        }

    .deal-card {
        flex-direction: column;
        text-align: center;
    }

    .deal-icon {
        margin: 0 auto;
    }

    .types-grid,
    .calculation-steps,
    .strategies-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .summary-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .summary-icon {
        margin: 0 auto;
    }

    .examples-table {
        font-size: 12px;
    }

        .examples-table th,
        .examples-table td {
            padding: 8px 10px;
        }
}
/* =========================================== */
/* Profit & Loss Calculator Specific */
/* =========================================== */

/* Type Selector */
.type-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .type-btn:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

    .type-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
        box-shadow: 0 5px 15px rgba(0, 208, 156, 0.1);
    }

    .type-btn i {
        font-size: 24px;
        color: #666;
        margin-bottom: 10px;
    }

    .type-btn.active i {
        color: #00d09c;
    }

    .type-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 5px;
        font-size: 15px;
    }

    .type-btn small {
        font-size: 12px;
        color: #888;
        line-height: 1.3;
    }

/* Profit Results */
.savings-results {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

.savings-main {
    text-align: center;
    margin-bottom: 25px;
}

.savings-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.savings-amount {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
}

.savings-percentage {
    font-size: 20px;
    opacity: 0.9;
    font-weight: 600;
}

.price-breakdown {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .price-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .price-item.final {
        border-top: 2px solid rgba(255, 255, 255, 0.3);
        padding-top: 20px;
        font-size: 18px;
        font-weight: 600;
    }

    .price-item span {
        font-size: 15px;
        opacity: 0.9;
    }

    .price-item strong {
        font-size: 18px;
        font-weight: 700;
    }

    .price-item.discount strong {
        color: #ffd54f;
    }

    .price-item.final strong {
        font-size: 22px;
    }

/* Profit Summary */
.discount-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.summary-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.summary-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 24px;
}

.summary-content {
    flex: 1;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 14px;
    color: #666;
}

/* Detailed Breakdown */
.detailed-breakdown {
    margin-bottom: 25px;
}

.breakdown-grid {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

    .breakdown-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .breakdown-item.total {
        padding-top: 15px;
        border-top: 2px solid #e0e0e0;
        font-size: 16px;
        font-weight: 600;
    }

.breakdown-label {
    font-size: 14px;
    color: #666;
}

.breakdown-value {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.breakdown-item.total .breakdown-value {
    color: #00d09c;
    font-size: 18px;
}

/* Multiple Discounts Result */
.multiple-discounts-result {
    margin-bottom: 25px;
}

.multiple-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.step {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.step-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.step-amount {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
}

    .step-amount.total-savings {
        color: #00d09c;
        font-size: 20px;
    }

.step-price {
    font-size: 14px;
    color: #888;
}

/* Comparison Table */
.comparison-table {
    margin-bottom: 25px;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .table-container table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .table-container th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .table-container td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .table-container tbody tr:hover {
        background-color: #f9f9f9;
    }

    .table-container tbody tr:last-child td {
        border-bottom: none;
    }

/* Business Insights */
.best-deal-finder {
    margin-top: 25px;
}

.deal-card {
    background: #fff8e1;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #ffd54f;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.deal-icon {
    width: 50px;
    height: 50px;
    background: #ffd54f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 24px;
    flex-shrink: 0;
}

.deal-content {
    flex: 1;
}

    .deal-content h4 {
        color: #222;
        margin-bottom: 8px;
        font-size: 18px;
    }

    .deal-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

.deal-action {
    margin-top: 10px;
}

.action-btn {
    background: #00d09c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background 0.3s;
}

    .action-btn:hover {
        background: #00b386;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .type-options {
        grid-template-columns: 1fr;
    }

    .savings-amount {
        font-size: 32px;
    }

    .savings-percentage {
        font-size: 16px;
    }

    .discount-summary,
    .multiple-steps {
        grid-template-columns: 1fr;
    }

    .price-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

        .price-item strong {
            align-self: flex-end;
        }

    .deal-card {
        flex-direction: column;
        text-align: center;
    }

    .deal-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .summary-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .summary-icon {
        margin: 0 auto;
    }
}

/* =========================================== */
/* Unit Converter Specific */
/* =========================================== */

/* Category Selector */
.category-selector {
    margin: 15px 0;
}

.category-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .category-btn:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

    .category-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
        box-shadow: 0 5px 15px rgba(0, 208, 156, 0.1);
    }

    .category-btn i {
        font-size: 24px;
        color: #666;
        margin-bottom: 8px;
    }

    .category-btn.active i {
        color: #00d09c;
    }

    .category-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .category-btn small {
        font-size: 11px;
        color: #888;
        line-height: 1.3;
    }

/* Unit Select Container */
.unit-select-container {
    min-width: 200px;
}

.unit-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

    .unit-select:focus {
        outline: none;
        border-color: #00d09c;
        box-shadow: 0 0 0 3px rgba(0, 208, 156, 0.1);
    }

/* Swap Container */
.swap-container {
    text-align: center;
    margin: 20px 0;
}

.swap-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .swap-btn:hover {
        background: #f0f0f0;
        border-color: #00d09c;
        color: #00d09c;
    }

/* Quick Conversions */
.quick-conversions {
    margin: 15px 0;
}

.quick-buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.quick-btn {
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .quick-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .quick-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

/* Conversion Result */
.conversion-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid #d4f0e9;
}

.conversion-from, .conversion-to {
    flex: 1;
    text-align: center;
}

.conversion-arrow {
    color: white;
    font-size: 24px;
    padding: 0 20px;
}

.conversion-amount {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    word-break: break-all;
}

.conversion-unit {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.conversion-code {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Conversion Formula */
.conversion-formula {
    margin-bottom: 25px;
}

.formula-box {
    background: linear-gradient(135deg, #f0f9f6 0%, #e6f4f1 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #d4f0e9;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    font-family: 'Courier New', monospace;
}

/* Quick Results */
.quick-results {
    margin-bottom: 25px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.quick-result-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

    .quick-result-card:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

.quick-value {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.quick-equals {
    font-size: 18px;
    color: #00d09c;
    font-weight: 600;
    margin: 5px 0;
}

.quick-result {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

/* Common Conversions */
.common-conversions {
    margin-bottom: 25px;
}

.conversion-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .conversion-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .conversion-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .conversion-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .conversion-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .conversion-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Unit Categories */
.unit-categories {
    margin-bottom: 25px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.category-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

    .category-card.length {
        border-left: 4px solid #00d09c;
    }

    .category-card.weight {
        border-left: 4px solid #4a5568;
    }

    .category-card.temperature {
        border-left: 4px solid #f56565;
    }

    .category-card.area {
        border-left: 4px solid #ed8936;
    }

.category-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 24px;
}

.category-card.weight .category-icon {
    background: #f8f9fa;
    color: #4a5568;
}

.category-card.temperature .category-icon {
    background: #fff5f5;
    color: #f56565;
}

.category-card.area .category-icon {
    background: #fffaf0;
    color: #ed8936;
}

.category-content {
    flex: 1;
}

    .category-content h4 {
        font-size: 16px;
        color: #222;
        margin-bottom: 5px;
        font-weight: 600;
    }

    .category-content p {
        font-size: 13px;
        color: #666;
        margin-bottom: 8px;
        line-height: 1.4;
    }

.unit-count {
    font-size: 12px;
    color: #888;
    font-weight: 600;
}

/* Systems Grid */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.system-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .system-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .system-card h4 i {
            color: #00d09c;
        }

    .system-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .system-card li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .system-card li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .quick-buttons {
        grid-template-columns: repeat(3, 1fr);
    }

    .conversion-result {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .conversion-arrow {
        padding: 15px 0;
        transform: rotate(90deg);
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .systems-grid {
        grid-template-columns: 1fr;
    }

    .unit-select-container {
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .category-options {
        grid-template-columns: 1fr;
    }

    .quick-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .conversion-amount {
        font-size: 28px;
    }

    .conversion-table {
        font-size: 12px;
    }

        .conversion-table th,
        .conversion-table td {
            padding: 8px 10px;
        }
}

/* =========================================== */
/* Time Zone Converter Specific */
/* =========================================== */

/* Time Input Container */
.time-input-container {
    display: flex;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.time-format-toggle {
    display: flex;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 2px;
}

.time-format-btn {
    padding: 8px 16px;
    border: none;
    background: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
}

    .time-format-btn.active {
        background: #fff;
        color: #00d09c;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

/* Multi-select Container */
.multi-select-container {
    width: 100%;
}

.multi-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.selected-zones {
    padding: 12px 15px;
    min-height: 50px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

    .selected-zones .placeholder {
        color: #999;
        font-style: italic;
    }

.zone-options {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px 0;
}

.zone-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .zone-option:hover {
        background-color: #f8f9fa;
    }

    .zone-option.selected {
        background-color: #f0f9f6;
        border-left: 3px solid #00d09c;
    }

        .zone-option.selected:after {
            content: "✓";
            color: #00d09c;
            font-weight: bold;
        }

/* Time Results Specific */
#conversionLabel {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 10px;
}

#convertedTime {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 5px;
}

#timeDifference {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 600;
}

/* Meeting Table Styles */
.comparison-table td.good {
    color: #00d09c;
    font-weight: 600;
}

.comparison-table td.acceptable {
    color: #ed8936;
    font-weight: 600;
}

.comparison-table td.poor {
    color: #f56565;
    font-weight: 600;
}

/* World Clock Chart */
#timeZoneChart {
    height: 300px !important;
}

/* Responsive adjustments for time zone converter */
@media (max-width: 768px) {
    .time-input-container {
        flex-direction: column;
        gap: 10px;
    }

    .time-format-toggle {
        align-self: flex-start;
    }

    #convertedTime {
        font-size: 36px;
    }

    .zone-options {
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    #convertedTime {
        font-size: 28px;
    }

    .time-format-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* =========================================== */
/* Temperature Converter Specific */
/* =========================================== */

/* Target Units Selector */
.target-units-selector {
    margin: 15px 0;
}

.target-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.target-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
}

    .target-checkbox:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .target-checkbox input {
        display: none;
    }

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s;
}

.target-checkbox input:checked + .checkmark {
    background: #00d09c;
    border-color: #00d09c;
}

    .target-checkbox input:checked + .checkmark:after {
        content: '';
        position: absolute;
        left: 5px;
        top: 1px;
        width: 6px;
        height: 12px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.target-label {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .target-label i {
        color: #00d09c;
        font-size: 18px;
    }

/* Common Temperatures Selector */
.common-temperatures-selector {
    margin: 15px 0;
}

.temperature-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.temp-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .temp-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .temp-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

    .temp-btn span {
        margin-bottom: 5px;
        font-size: 16px;
    }

    .temp-btn small {
        font-size: 11px;
        font-weight: normal;
        opacity: 0.8;
    }

/* Conversion Results */
.conversion-results {
    margin-bottom: 25px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.result-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

    .result-card.celsius {
        border-left: 4px solid #00d09c;
    }

    .result-card.fahrenheit {
        border-left: 4px solid #4a5568;
    }

    .result-card.kelvin {
        border-left: 4px solid #f56565;
    }

.result-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.result-card.celsius .result-icon {
    background: #f0f9f6;
    color: #00d09c;
}

.result-card.fahrenheit .result-icon {
    background: #f8f9fa;
    color: #4a5568;
}

.result-card.kelvin .result-icon {
    background: #fff5f5;
    color: #f56565;
}

.result-content {
    flex: 1;
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.result-label {
    font-size: 14px;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #e0e0e0;
}

    .no-results i {
        font-size: 48px;
        color: #ccc;
        margin-bottom: 15px;
    }

    .no-results p {
        color: #888;
        font-size: 16px;
    }

/* Formula Display */
.formula-display {
    margin-bottom: 25px;
}

.formula-box {
    background: linear-gradient(135deg, #f0f9f6 0%, #e6f4f1 100%);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #d4f0e9;
}

.formula-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.formula-item {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    padding: 10px 15px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #00d09c;
}

/* Temperature Comparison */
.temperature-comparison {
    margin-bottom: 25px;
}

.comparison-chart {
    height: 300px;
    margin-top: 15px;
}

/* Reference Temperatures */
.reference-temperatures {
    margin-bottom: 25px;
}

.reference-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 15px;
}

    .reference-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .reference-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .reference-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .reference-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .reference-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Temperature Facts */
.temperature-facts {
    margin-top: 25px;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.fact-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #00d09c;
}

.fact-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 24px;
    flex-shrink: 0;
}

.fact-content {
    flex: 1;
}

    .fact-content h4 {
        color: #222;
        margin-bottom: 8px;
        font-size: 16px;
    }

    .fact-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* Scale Origins */
.scale-origins {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.scale-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .scale-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .scale-card h4 i {
            color: #00d09c;
        }

    .scale-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .scale-card li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .scale-card li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Formula Explanation */
.formula-explanation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.formula-step {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

    .formula-step h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
    }

    .formula-step .formula {
        background: #f0f9f6;
        padding: 10px;
        border-radius: 6px;
        font-family: 'Courier New', monospace;
        color: #00b386;
        margin-bottom: 10px;
        font-size: 14px;
        text-align: center;
    }

    .formula-step p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.app-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .app-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .app-card h4 i {
            color: #00d09c;
        }

    .app-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .app-card li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .app-card li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Responsive adjustments */
@media (max-width: 768px) {
    .temperature-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .facts-grid {
        grid-template-columns: 1fr;
    }

    .scale-origins,
    .formula-explanation {
        grid-template-columns: 1fr;
    }

    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reference-table {
        font-size: 13px;
    }

        .reference-table th,
        .reference-table td {
            padding: 8px 10px;
        }
}

@media (max-width: 480px) {
    .temperature-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .applications-grid {
        grid-template-columns: 1fr;
    }

    .fact-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .fact-icon {
        margin: 0 auto;
    }

    .result-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .result-icon {
        margin: 0 auto;
    }
}

/* =========================================== */
/* Area Converter Specific */
/* =========================================== */

/* Decimal Places Selector */
.decimal-places-selector {
    margin: 15px 0;
}

.decimal-options {
    display: flex;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
}

.decimal-btn {
    flex: 1;
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .decimal-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .decimal-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

/* Unit System Selector */
.unit-system-selector {
    margin: 15px 0;
}

.system-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.system-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .system-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .system-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .system-btn i {
        font-size: 20px;
        color: #666;
        margin-bottom: 8px;
    }

    .system-btn.active i {
        color: #00d09c;
    }

    .system-btn span {
        font-weight: 600;
        color: #333;
        font-size: 14px;
    }

/* Area Results Specific */
#conversionLabel {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 10px;
}

#convertedArea {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 5px;
}

#conversionRate {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 600;
}

/* Area Chart */
#areaChart {
    height: 300px !important;
}

/* Scientific Notation Indicator */
.scientific-notation {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #666;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    margin-left: 10px;
}

/* Unit Symbols in Tables */
.comparison-table td:first-child {
    font-weight: 600;
    color: #333;
}

.comparison-table td:nth-child(2) {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #00d09c;
}

/* Real-world Examples Styling */
#realWorldExample {
    line-height: 1.6;
    font-size: 15px;
}

/* Responsive adjustments for area converter */
@media (max-width: 768px) {
    .system-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .decimal-options {
        flex-wrap: wrap;
    }

    .decimal-btn {
        flex: 0 0 calc(20% - 8px);
    }

    #convertedArea {
        font-size: 36px;
    }

    .system-btn span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .system-options {
        grid-template-columns: 1fr;
    }

    .decimal-btn {
        flex: 0 0 calc(33.33% - 7px);
    }

    #convertedArea {
        font-size: 28px;
    }

    #conversionRate {
        font-size: 14px;
    }
}

/* =========================================== */
/* Data Converter Specific */
/* =========================================== */

/* Standard Selector */
.standard-selector {
    margin: 15px 0;
}

.standard-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.standard-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .standard-btn:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

    .standard-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
        box-shadow: 0 5px 15px rgba(0, 208, 156, 0.1);
    }

    .standard-btn i {
        font-size: 24px;
        color: #666;
        margin-bottom: 10px;
    }

    .standard-btn.active i {
        color: #00d09c;
    }

    .standard-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 5px;
        font-size: 16px;
    }

    .standard-btn small {
        font-size: 12px;
        color: #888;
        line-height: 1.3;
    }

/* Target Units Grid */
.target-units-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.target-unit-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.target-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
}

    .target-checkbox:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .target-checkbox input {
        display: none;
    }

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s;
}

.target-checkbox input:checked + .checkmark {
    background: #00d09c;
    border-color: #00d09c;
}

    .target-checkbox input:checked + .checkmark:after {
        content: '';
        position: absolute;
        left: 5px;
        top: 1px;
        width: 6px;
        height: 12px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.target-label {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .target-label i {
        color: #00d09c;
        font-size: 16px;
    }

/* Common Sizes Selector */
.common-sizes-selector {
    margin: 15px 0;
}

.size-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.size-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .size-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .size-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

    .size-btn span {
        margin-bottom: 5px;
        font-size: 14px;
    }

    .size-btn small {
        font-size: 11px;
        font-weight: normal;
        opacity: 0.8;
    }

/* Standard Information */
.standard-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #00d09c;
}

    .info-card:last-child {
        border-left-color: #4a5568;
    }

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

    .info-icon.binary {
        background: #f0f9f6;
        color: #00d09c;
    }

    .info-icon.decimal {
        background: #f8f9fa;
        color: #4a5568;
    }

.info-content {
    flex: 1;
}

    .info-content h4 {
        color: #222;
        margin-bottom: 8px;
        font-size: 16px;
        font-weight: 600;
    }

    .info-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* Data Visualization */
.data-visualization {
    margin-bottom: 25px;
}

.visualization-chart {
    height: 300px;
    margin-top: 15px;
}

/* Common Data Sizes */
.common-data-sizes {
    margin-bottom: 25px;
}

.sizes-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 15px;
}

    .sizes-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .sizes-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .sizes-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .sizes-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .sizes-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Units Explained */
.units-explained {
    margin-top: 25px;
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.unit-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.unit-header {
    padding: 15px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

    .unit-header h4 {
        color: #222;
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }

.unit-size {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    background: white;
    padding: 3px 8px;
    border-radius: 12px;
}

.unit-content {
    padding: 15px;
}

    .unit-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

.unit-relation {
    font-size: 13px;
    color: #00d09c;
    font-weight: 600;
    padding: 8px 12px;
    background: #f0f9f6;
    border-radius: 6px;
    text-align: center;
}

/* Conversion Results */
.conversion-results {
    margin-bottom: 25px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.result-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

    .result-card.b {
        border-left: 4px solid #00d09c;
    }

    .result-card.b {
        border-left: 4px solid #4a5568;
    }

    .result-card.kb {
        border-left: 4px solid #f56565;
    }

    .result-card.mb {
        border-left: 4px solid #ed8936;
    }

    .result-card.gb {
        border-left: 4px solid #4299e1;
    }

    .result-card.tb {
        border-left: 4px solid #9f7aea;
    }

    .result-card.pb {
        border-left: 4px solid #38b2ac;
    }

    .result-card.eb {
        border-left: 4px solid #ed64a6;
    }

.result-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.result-card.b .result-icon {
    background: #f0f9f6;
    color: #00d09c;
}

.result-card.b .result-icon {
    background: #f8f9fa;
    color: #4a5568;
}

.result-card.kb .result-icon {
    background: #fff5f5;
    color: #f56565;
}

.result-card.mb .result-icon {
    background: #fffaf0;
    color: #ed8936;
}

.result-card.gb .result-icon {
    background: #ebf8ff;
    color: #4299e1;
}

.result-card.tb .result-icon {
    background: #faf5ff;
    color: #9f7aea;
}

.result-card.pb .result-icon {
    background: #e6fffa;
    color: #38b2ac;
}

.result-card.eb .result-icon {
    background: #fff5f7;
    color: #ed64a6;
}

.result-content {
    flex: 1;
}

.result-value {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

.result-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.result-bytes {
    font-size: 12px;
    color: #888;
    font-family: 'Courier New', monospace;
}

.no-results {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #e0e0e0;
    grid-column: 1 / -1;
}

    .no-results i {
        font-size: 48px;
        color: #ccc;
        margin-bottom: 15px;
    }

    .no-results p {
        color: #888;
        font-size: 16px;
    }

/* Standards Comparison */
.standards-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.standard-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .standard-card:last-child {
        border-top-color: #4a5568;
    }

    .standard-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .standard-card h4 i {
            color: #00d09c;
        }

    .standard-card:last-child h4 i {
        color: #4a5568;
    }

    .standard-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .standard-card li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .standard-card li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

    .standard-card:last-child li:before {
        color: #4a5568;
    }

/* Hierarchy Chart */
.hierarchy-chart {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.hierarchy-level {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #00d09c;
}

    .hierarchy-level:last-child {
        margin-bottom: 0;
    }

.level-name {
    width: 150px;
    font-weight: 600;
    color: #222;
    font-size: 16px;
}

.level-description {
    flex: 1;
    color: #666;
    font-size: 14px;
}

.level-arrow {
    width: 60px;
    text-align: center;
    color: #00d09c;
    font-weight: 600;
    font-size: 14px;
}

/* Formula Grid */
.formula-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.formula-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

    .formula-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
    }

.formula {
    background: #f0f9f6;
    padding: 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    color: #00b386;
    margin-bottom: 8px;
    font-size: 14px;
    text-align: center;
}

/* Capacity Examples */
.capacity-examples {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .capacity-examples table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .capacity-examples th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .capacity-examples td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .capacity-examples tbody tr:hover {
        background-color: #f9f9f9;
    }

    .capacity-examples tbody tr:last-child td {
        border-bottom: none;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .standard-options {
        grid-template-columns: 1fr;
    }

    .target-unit-row {
        grid-template-columns: 1fr;
    }

    .size-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .standard-info {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .units-grid {
        grid-template-columns: 1fr;
    }

    .standards-comparison {
        grid-template-columns: 1fr;
    }

    .hierarchy-level {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .level-name,
    .level-description,
    .level-arrow {
        width: 100%;
    }

    .level-arrow {
        transform: rotate(90deg);
    }

    .formula-grid {
        grid-template-columns: 1fr;
    }

    .sizes-table,
    .capacity-examples {
        font-size: 13px;
    }

        .sizes-table th,
        .sizes-table td,
        .capacity-examples th,
        .capacity-examples td {
            padding: 8px 10px;
        }
}

@media (max-width: 480px) {
    .size-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .result-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .result-icon {
        margin: 0 auto;
    }
}


/* =========================================== */
/* Percentage Calculator Specific */
/* =========================================== */

/* Percentage Type Selector */
.percentage-type-selector {
    margin: 15px 0;
}

    .percentage-type-selector .type-options {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }

    .percentage-type-selector .type-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px 5px;
        border: 2px solid #e0e0e0;
        background: #fff;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s;
        text-align: center;
    }

        .percentage-type-selector .type-btn:hover {
            border-color: #00d09c;
            transform: translateY(-2px);
        }

        .percentage-type-selector .type-btn.active {
            border-color: #00d09c;
            background: #f0f9f6;
        }

        .percentage-type-selector .type-btn i {
            font-size: 20px;
            color: #666;
            margin-bottom: 8px;
        }

        .percentage-type-selector .type-btn.active i {
            color: #00d09c;
        }

        .percentage-type-selector .type-btn span {
            font-weight: 600;
            color: #333;
            margin-bottom: 4px;
            font-size: 14px;
        }

        .percentage-type-selector .type-btn small {
            font-size: 11px;
            color: #888;
            line-height: 1.3;
        }

/* Common Percentages Selector */
.common-percentages-selector {
    margin: 15px 0;
}

.percentage-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.percentage-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .percentage-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .percentage-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

    .percentage-btn span {
        margin-bottom: 5px;
        font-size: 14px;
    }

    .percentage-btn small {
        font-size: 11px;
        font-weight: normal;
        opacity: 0.8;
    }

/* Precision Selector */
.precision-selector {
    margin: 15px 0;
}

.precision-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.precision-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .precision-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .precision-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

    .precision-btn span {
        margin-bottom: 5px;
        font-size: 16px;
    }

    .precision-btn small {
        font-size: 11px;
        font-weight: normal;
        opacity: 0.8;
    }

/* Percentage Results */
.percentage-results {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 12px;
    padding: 30px;
    color: white;
    margin-bottom: 30px;
}

.result-main {
    text-align: center;
    margin-bottom: 25px;
}

.result-label {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.result-amount {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.result-formula {
    font-size: 16px;
    opacity: 0.9;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
}

/* Calculation Breakdown */
.calculation-breakdown {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.breakdown-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: white;
    color: #00d09c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: white;
}

.step-content p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
    margin: 0;
}

/* Percentage Summary */
.percentage-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

/* Proportion Visualization */
.proportion-visualization {
    margin-bottom: 25px;
}

.proportion-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.proportion-bar {
    height: 40px;
    background: #e0e0e0;
    border-radius: 20px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

    .proportion-bar.full {
        height: 30px;
    }

.bar-fill {
    height: 100%;
    background: #00d09c;
    border-radius: 20px;
    transition: width 0.5s ease;
}

.bar-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-size: 14px;
}

.proportion-bar.full .bar-label {
    color: #333;
}

.proportion-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-text {
    font-size: 14px;
    color: #555;
}

/* Common Percentage Table */
.common-percentage-table {
    margin-bottom: 25px;
}

/* Real-World Examples */
.real-world-examples {
    margin-bottom: 25px;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.example-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

    .example-card h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .example-card h4 i {
            color: #00d09c;
        }

    .example-card p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* Quick Calculations */
.quick-calculations {
    margin-top: 25px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.quick-btn {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .quick-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
        transform: translateY(-2px);
    }

    .quick-btn span {
        font-size: 12px;
        color: #666;
    }

    .quick-btn strong {
        font-size: 16px;
        color: #222;
        font-weight: 600;
    }

/* Percentage Types Information */
.percentage-types-info {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.type-header.percentage-of {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
}

.type-header.find-percentage {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
}

.type-header.increase {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.type-header.decrease {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

/* Conversion Table */
.conversion-table {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .conversion-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .conversion-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .conversion-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .conversion-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .conversion-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.application-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .application-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .application-card h4 i {
            color: #00d09c;
        }

    .application-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .application-card li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .application-card li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .percentage-type-selector .type-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .percentage-options {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .percentage-type-selector .type-options {
        grid-template-columns: 1fr;
    }

    .percentage-options,
    .precision-options,
    .quick-grid,
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .percentage-summary {
        grid-template-columns: 1fr;
    }

    .types-grid,
    .applications-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .proportion-legend {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .percentage-options,
    .precision-options,
    .quick-grid,
    .examples-grid {
        grid-template-columns: 1fr;
    }

    .result-amount {
        font-size: 36px;
    }

    .result-formula {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* =========================================== */
/* Age Calculator Specific */
/* =========================================== */

/* Date Input Container */
.date-input-container {
    margin: 15px 0;
}

.date-input-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.date-input-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .date-input-field label {
        font-size: 14px;
        font-weight: 500;
        color: #555;
    }

.date-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

    .date-select:focus {
        outline: none;
        border-color: #00d09c;
        box-shadow: 0 0 0 3px rgba(0, 208, 156, 0.1);
    }

/* Calculate Options */
.calculate-options {
    margin: 15px 0;
}

.calculate-option-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.calculate-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .calculate-option-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .calculate-option-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .calculate-option-btn i {
        font-size: 20px;
        color: #666;
        margin-bottom: 8px;
    }

    .calculate-option-btn.active i {
        color: #00d09c;
    }

    .calculate-option-btn span {
        font-weight: 600;
        color: #333;
        font-size: 14px;
    }

.custom-date-container {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Time Input */
.time-input-container {
    margin: 15px 0;
}

.time-input-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.time-input-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .time-input-field label {
        font-size: 14px;
        font-weight: 500;
        color: #555;
    }

.time-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

    .time-select:focus {
        outline: none;
        border-color: #00d09c;
        box-shadow: 0 0 0 3px rgba(0, 208, 156, 0.1);
    }

/* Compare Selector */
.compare-selector {
    margin: 15px 0;
}

.compare-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.compare-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .compare-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .compare-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .compare-btn i {
        font-size: 20px;
        color: #666;
        margin-bottom: 8px;
    }

    .compare-btn.active i {
        color: #00d09c;
    }

    .compare-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        font-size: 13px;
    }

    .compare-btn small {
        font-size: 11px;
        color: #888;
        line-height: 1.3;
    }

/* Age Display */
.age-display {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 12px;
    padding: 30px;
    color: white;
    margin-bottom: 25px;
    text-align: center;
}

.age-main {
    margin-bottom: 25px;
}

.age-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.age-value {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.age-unit {
    font-size: 20px;
    opacity: 0.9;
    font-weight: 500;
}

.age-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.breakdown-item {
    text-align: center;
}

.breakdown-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.breakdown-label {
    font-size: 14px;
    opacity: 0.8;
}

/* Detailed Age */
.detailed-age {
    margin-bottom: 25px;
}

.age-units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.age-unit-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.unit-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 24px;
    flex-shrink: 0;
}

.unit-content {
    flex: 1;
}

.unit-value {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

.unit-label {
    font-size: 14px;
    color: #666;
}

/* Next Birthday */
.next-birthday {
    margin-bottom: 25px;
}

.birthday-card {
    background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
    border-radius: 10px;
    padding: 25px;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
}

.birthday-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.birthday-content {
    flex: 1;
}

.birthday-count {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

    .birthday-count span {
        font-size: 32px;
    }

.birthday-date {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.birthday-age {
    font-size: 14px;
    opacity: 0.8;
}

    .birthday-age span {
        font-weight: 600;
    }

/* Zodiac Information */
.zodiac-info {
    margin-bottom: 25px;
}

.zodiac-card {
    background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
    border-radius: 10px;
    padding: 25px;
    color: white;
    text-align: center;
}

.zodiac-sign {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.zodiac-dates {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.zodiac-traits {
    font-size: 14px;
    opacity: 0.8;
    font-style: italic;
}

/* Age Comparison */
.age-comparison {
    margin-bottom: 25px;
}

.comparison-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.comparison-person {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.person-name {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
}

.person-birthdate {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.person-age {
    font-size: 16px;
    color: #00d09c;
    font-weight: 600;
}

.comparison-result {
    text-align: center;
}

.comparison-statement {
    font-size: 18px;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.5;
}

    .comparison-statement .highlight {
        color: #00d09c;
        font-weight: 700;
    }

.comparison-percentage {
    font-size: 16px;
    color: #666;
}

/* Life Milestones */
.life-milestones {
    margin-top: 25px;
}

.milestones-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 20px 0;
}

    .milestones-timeline:before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 2px;
        background: #e0e0e0;
        transform: translateY(-50%);
        z-index: 1;
    }

.milestone {
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    width: 18%;
    position: relative;
    z-index: 2;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

    .milestone.passed {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .milestone.current {
        border-color: #f56565;
        background: #fff5f5;
        transform: scale(1.1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .milestone.future {
        border-color: #e0e0e0;
        background: #f8f9fa;
    }

.milestone-year {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
}

.milestone-age {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.milestone-name {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

/* Calculation Methods */
.calculation-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.method-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

    .method-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .method-card h4 i {
            color: #00d09c;
        }

    .method-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .method-card li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .method-card li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Zodiac Grid */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.zodiac-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.zodiac-header {
    padding: 20px;
    color: white;
    text-align: center;
}

    .zodiac-header.capricorn {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }

    .zodiac-header.aquarius {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .zodiac-header.pisces {
        background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    }

    .zodiac-header.aries {
        background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
    }

    .zodiac-header h4 {
        font-size: 18px;
        margin-bottom: 5px;
    }

.zodiac-date {
    font-size: 14px;
    opacity: 0.9;
}

.zodiac-content {
    padding: 20px;
}

    .zodiac-content p {
        margin-bottom: 10px;
        color: #555;
        font-size: 14px;
        line-height: 1.5;
    }

        .zodiac-content p:last-child {
            margin-bottom: 0;
        }

        .zodiac-content p strong {
            color: #222;
        }

/* Age Facts */
.age-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.fact-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

.fact-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 24px;
    flex-shrink: 0;
}

.fact-content {
    flex: 1;
}

    .fact-content h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
    }

    .fact-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* Milestones Table */
.milestones-table {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .milestones-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .milestones-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .milestones-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .milestones-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .milestones-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .date-input-grid,
    .calculate-option-row,
    .time-input-grid {
        grid-template-columns: 1fr;
    }

    .compare-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .age-breakdown {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .age-units-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .milestones-timeline {
        flex-direction: column;
        gap: 15px;
    }

        .milestones-timeline:before {
            display: none;
        }

    .milestone {
        width: 100%;
    }

    .calculation-methods {
        grid-template-columns: 1fr;
    }

    .zodiac-grid {
        grid-template-columns: 1fr;
    }

    .age-facts {
        grid-template-columns: 1fr;
    }

    .milestones-table {
        font-size: 13px;
    }

        .milestones-table th,
        .milestones-table td {
            padding: 8px 10px;
        }
}

@media (max-width: 480px) {
    .age-value {
        font-size: 48px;
    }

    .age-unit {
        font-size: 16px;
    }

    .compare-options {
        grid-template-columns: 1fr;
    }

    .age-units-grid {
        grid-template-columns: 1fr;
    }

    .birthday-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .birthday-icon {
        margin: 0 auto;
    }

    .fact-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .fact-icon {
        margin: 0 auto;
    }
}

/* =========================================== */
/* Retirement Calculator Specific */
/* =========================================== */

/* Lifestyle Selector */
.lifestyle-selector {
    margin: 15px 0;
}

.lifestyle-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.lifestyle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .lifestyle-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .lifestyle-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

    .lifestyle-btn span {
        margin-bottom: 5px;
        font-size: 14px;
    }

    .lifestyle-btn small {
        font-size: 11px;
        font-weight: normal;
        opacity: 0.8;
    }

/* Retirement Corpus Results */
.retirement-corpus {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

.corpus-main {
    text-align: center;
    margin-bottom: 25px;
}

.corpus-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.corpus-amount {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
}

.corpus-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.corpus-breakdown {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.corpus-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .corpus-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .corpus-item.total {
        border-top: 2px solid rgba(255, 255, 255, 0.3);
        padding-top: 20px;
        font-size: 18px;
        font-weight: 600;
    }

    .corpus-item span {
        font-size: 15px;
        opacity: 0.9;
    }

    .corpus-item strong {
        font-size: 18px;
        font-weight: 700;
    }

    .corpus-item.total strong {
        font-size: 22px;
        color: #ffd54f;
    }

/* Retirement Gap */
.retirement-gap {
    margin-bottom: 25px;
}

.gap-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.gap-icon {
    width: 60px;
    height: 60px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 28px;
}

.gap-content {
    flex: 1;
}

.gap-value {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.gap-label {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
}

.gap-percentage {
    font-size: 14px;
    color: #f56565;
    font-weight: 600;
}

/* Monthly Income */
.monthly-income {
    margin-bottom: 25px;
}

.income-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.income-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.income-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.income-amount {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

    .income-amount.shortfall {
        color: #f56565;
    }

.income-desc {
    font-size: 13px;
    color: #888;
}

/* Savings Strategy */
.savings-strategy {
    margin-bottom: 25px;
}

.strategy-content {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

    .strategy-content p {
        color: #555;
        margin-bottom: 15px;
        line-height: 1.6;
    }

    .strategy-content ul {
        list-style: none;
        padding: 0;
        margin: 0 0 15px 20px;
    }

    .strategy-content li {
        margin-bottom: 8px;
        color: #555;
        font-size: 14px;
        position: relative;
        padding-left: 20px;
    }

        .strategy-content li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

.strategy-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.strategy-btn {
    flex: 1;
    background: #4a5568;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
    font-size: 14px;
}

    .strategy-btn:hover {
        background: #2d3748;
    }

    .strategy-btn:first-child {
        background: #00d09c;
    }

        .strategy-btn:first-child:hover {
            background: #00b386;
        }

/* Timeline Projection */
.timeline-projection {
    margin-bottom: 25px;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.timeline-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.timeline-year {
    font-size: 18px;
    font-weight: 700;
    color: #00d09c;
    margin-bottom: 8px;
}

.timeline-event {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.timeline-amount {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

/* Investment Recommendations */
.investment-recommendations {
    margin-bottom: 25px;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.recommendation-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.recommendation-header {
    padding: 15px;
    color: white;
}

    .recommendation-header.equity {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .recommendation-header.debt {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }

    .recommendation-header.other {
        background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
    }

    .recommendation-header h4 {
        font-size: 16px;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.recommendation-content {
    padding: 15px;
    text-align: center;
}

.recommendation-allocation {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.recommendation-content p {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.recommendation-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendation-content li {
    margin-bottom: 8px;
    color: #555;
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

    .recommendation-content li:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

/* Retirement Planning Info */
.retirement-planning-info {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
}

.planning-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.step-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #00d09c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content h3 {
    color: #222;
    margin-bottom: 10px;
    font-size: 18px;
}

.step-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.step-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-content li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: #555;
    font-size: 13px;
    line-height: 1.4;
}

    .step-content li:before {
        content: "•";
        position: absolute;
        left: 0;
        color: #00d09c;
        font-weight: bold;
        font-size: 16px;
    }

/* Calculation Formulas */
.calculation-formulas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.formula-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .formula-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .formula-card h4 i {
            color: #00d09c;
        }

    .formula-card p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

    .formula-card strong {
        color: #00b386;
        font-family: 'Courier New', monospace;
        font-size: 13px;
    }

/* Planning Factors */
.planning-factors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.factor-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

    .factor-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .factor-card h4 i {
            color: #00d09c;
        }

    .factor-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .factor-card li {
        margin-bottom: 12px;
        color: #555;
        font-size: 14px;
        line-height: 1.5;
    }

        .factor-card li strong {
            color: #222;
            font-weight: 600;
        }

/* Investment Vehicles */
.investment-vehicles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.vehicle-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .vehicle-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .vehicle-card h4 i {
            color: #00d09c;
        }

    .vehicle-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .vehicle-card li {
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
        color: #555;
        font-size: 13px;
        display: flex;
        justify-content: space-between;
    }

        .vehicle-card li:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .vehicle-card li strong {
            color: #222;
            font-weight: 600;
        }

/* Responsive adjustments */
@media (max-width: 768px) {
    .lifestyle-options,
    .income-grid,
    .timeline-grid,
    .recommendation-grid {
        grid-template-columns: 1fr;
    }

    .strategy-actions {
        flex-direction: column;
    }

    .corpus-amount {
        font-size: 32px;
    }

    .gap-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .gap-icon {
        margin: 0 auto;
    }

    .planning-steps,
    .calculation-formulas,
    .planning-factors,
    .investment-vehicles {
        grid-template-columns: 1fr;
    }

    .step-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .step-number {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .gap-value {
        font-size: 24px;
    }

    .income-amount {
        font-size: 18px;
    }

    .timeline-year {
        font-size: 16px;
    }

    .recommendation-allocation {
        font-size: 20px;
    }
}


/* =========================================== */
/* BMI Calculator Specific */
/* =========================================== */

/* Unit System Selector */
.unit-system-selector {
    margin: 15px 0;
}

.unit-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.unit-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .unit-btn:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

    .unit-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
        box-shadow: 0 5px 15px rgba(0, 208, 156, 0.1);
    }

    .unit-btn i {
        font-size: 24px;
        color: #666;
        margin-bottom: 10px;
    }

    .unit-btn.active i {
        color: #00d09c;
    }

    .unit-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 5px;
        font-size: 16px;
    }

    .unit-btn small {
        font-size: 12px;
        color: #888;
        line-height: 1.3;
    }

/* Age Group Selector */
.age-group-selector {
    margin: 15px 0;
}

.age-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.age-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .age-btn:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

    .age-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .age-btn i {
        font-size: 24px;
        color: #666;
        margin-bottom: 10px;
    }

    .age-btn.active i {
        color: #00d09c;
    }

    .age-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 5px;
        font-size: 16px;
    }

    .age-btn small {
        font-size: 12px;
        color: #888;
        line-height: 1.3;
    }

/* Height Imperial Inputs */
.height-imperial-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.height-feet, .height-inches {
    display: flex;
    flex-direction: column;
}

    .height-feet .input-label, .height-inches .input-label {
        font-size: 14px;
        color: #555;
        margin-bottom: 8px;
        font-weight: 500;
    }

/* Gender Selector */
.gender-selector {
    margin: 15px 0;
}

.gender-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gender-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .gender-btn:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

    .gender-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .gender-btn i {
        font-size: 32px;
        color: #666;
        margin-bottom: 10px;
    }

    .gender-btn.active i {
        color: #00d09c;
    }

    .gender-btn span {
        font-weight: 600;
        color: #333;
        font-size: 16px;
    }

/* Activity Selector */
.activity-selector {
    margin: 15px 0;
}

.activity-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.activity-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .activity-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .activity-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .activity-btn i {
        font-size: 20px;
        color: #666;
        margin-bottom: 8px;
    }

    .activity-btn.active i {
        color: #00d09c;
    }

    .activity-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        font-size: 13px;
    }

    .activity-btn small {
        font-size: 11px;
        color: #888;
        line-height: 1.2;
    }

/* BMI Results */
.bmi-results {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 12px;
    padding: 30px;
    color: white;
    margin-bottom: 30px;
}

.bmi-main {
    text-align: center;
    margin-bottom: 25px;
}

.bmi-label {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.bmi-value {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1;
}

.bmi-category {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 8px 20px;
    border-radius: 30px;
    display: inline-block;
}

    .bmi-category.underweight {
        background: rgba(74, 85, 104, 0.3);
        border: 2px solid #4a5568;
    }

    .bmi-category.normal {
        background: rgba(0, 208, 156, 0.3);
        border: 2px solid #00d09c;
    }

    .bmi-category.overweight {
        background: rgba(237, 137, 54, 0.3);
        border: 2px solid #ed8936;
    }

    .bmi-category.obese {
        background: rgba(245, 101, 101, 0.3);
        border: 2px solid #f56565;
    }

.bmi-percentile {
    font-size: 16px;
    opacity: 0.9;
}

/* BMI Scale */
.bmi-scale {
    margin-top: 30px;
}

.scale-container {
    position: relative;
    height: 80px;
    background: linear-gradient(to right, #4a5568 0%, #00d09c 25%, #ed8936 50%, #f56565 75%, #c53030 100%);
    border-radius: 40px;
    overflow: hidden;
}

.scale-marker {
    position: absolute;
    top: -20px;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.marker-dot {
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid #2d3748;
    border-radius: 50%;
    margin: 0 auto 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.marker-label {
    font-size: 12px;
    font-weight: 600;
    color: white;
    background: rgba(45, 55, 72, 0.9);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.scale-segment {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 0 5px;
}

    .scale-segment:nth-child(2) {
        left: 0;
        width: 25%;
        background: rgba(74, 85, 104, 0.7);
    }

    .scale-segment:nth-child(3) {
        left: 25%;
        width: 25%;
        background: rgba(0, 208, 156, 0.7);
    }

    .scale-segment:nth-child(4) {
        left: 50%;
        width: 25%;
        background: rgba(237, 137, 54, 0.7);
    }

    .scale-segment:nth-child(5) {
        left: 75%;
        width: 25%;
        background: rgba(245, 101, 101, 0.7);
    }

    .scale-segment span:first-child {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .scale-segment span:last-child {
        font-size: 12px;
        opacity: 0.9;
    }

/* Health Summary */
.health-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

/* Health Analysis */
.health-analysis {
    margin-bottom: 25px;
}

.analysis-content {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.risk-assessment, .recommendations {
    margin-bottom: 20px;
}

    .risk-assessment h4, .recommendations h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .risk-assessment h4 i, .recommendations h4 i {
            color: #00d09c;
        }

.risk-list, .recommendation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .risk-list li, .recommendation-list li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid #eee;
    }

        .risk-list li:last-child, .recommendation-list li:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

        .risk-list li i, .recommendation-list li i {
            margin-top: 2px;
            font-size: 16px;
        }

        .risk-list li span, .recommendation-list li span {
            flex: 1;
            color: #555;
            font-size: 14px;
            line-height: 1.5;
        }

        .risk-list li.low-risk i {
            color: #00d09c;
        }

        .risk-list li.medium-risk i {
            color: #ed8936;
        }

        .risk-list li.high-risk i {
            color: #f56565;
        }

        .recommendation-list li i {
            color: #4a5568;
        }

/* Body Composition */
.body-composition {
    margin-bottom: 25px;
}

.composition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.composition-item {
    text-align: center;
}

.composition-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.composition-value {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.composition-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.composition-status {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

    .composition-status.healthy {
        background: #f0f9f6;
        color: #00b386;
    }

    .composition-status.warning {
        background: #fff8e1;
        color: #d69e2e;
    }

    .composition-status.critical {
        background: #fed7d7;
        color: #c53030;
    }

/* Weight Goals */
.weight-goals {
    margin-bottom: 25px;
}

.goals-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.goal-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

    .goal-card.maintain {
        border-color: #00d09c;
    }

    .goal-card.lose {
        border-color: #f56565;
    }

    .goal-card.gain {
        border-color: #4a5568;
    }

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

    .goal-header h4 {
        color: #222;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .goal-header h4 i {
            color: #00d09c;
        }

.goal-card.lose .goal-header h4 i {
    color: #f56565;
}

.goal-card.gain .goal-header h4 i {
    color: #4a5568;
}

.goal-calories {
    font-weight: 700;
    color: #00d09c;
    font-size: 14px;
}

.goal-card.lose .goal-calories {
    color: #f56565;
}

.goal-card.gain .goal-calories {
    color: #4a5568;
}

.goal-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.goal-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .goal-card ul li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 13px;
        line-height: 1.4;
    }

        .goal-card ul li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

.goal-card.lose ul li:before {
    color: #f56565;
}

.goal-card.gain ul li:before {
    color: #4a5568;
}

/* BMI History Tracker */
.bmi-history {
    margin-top: 25px;
}

.tracker-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.tracker-input {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 2px dashed #e0e0e0;
}

    .tracker-input h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
    }

    .tracker-input p {
        color: #666;
        font-size: 13px;
        margin-bottom: 20px;
        line-height: 1.4;
    }

.tracker-btn {
    background: #00d09c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: background 0.3s;
}

    .tracker-btn:hover {
        background: #00b386;
    }

.tracker-history {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

.history-chart {
    height: 200px;
    margin-bottom: 20px;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    text-align: center;
}

.stat {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* BMI Categories Information */
.bmi-categories-info {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.category-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.category-header {
    padding: 20px;
    color: white;
}

    .category-header.underweight {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }

    .category-header.normal {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .category-header.overweight {
        background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    }

    .category-header.obese {
        background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    }

    .category-header h3 {
        font-size: 18px;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.category-range {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 600;
}

.category-content {
    padding: 20px;
}

.health-risks, .recommendations {
    margin-bottom: 20px;
}

    .health-risks h4, .recommendations h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 14px;
        font-weight: 600;
    }

    .health-risks ul, .recommendations ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .health-risks li, .recommendations li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 13px;
        line-height: 1.4;
    }

        .health-risks li:before, .recommendations li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

.category-card .health-risks li:before {
    color: #f56565;
}

/* Limitations Grid */
.limitations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.limitation-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

    .limitation-card h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .limitation-card h4 i {
            color: #00d09c;
        }

    .limitation-card p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* Metrics Table */
.metrics-table, .recommendations-table {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .metrics-table table, .recommendations-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }

    .metrics-table th, .recommendations-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .metrics-table td, .recommendations-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .metrics-table tbody tr:hover, .recommendations-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .metrics-table tbody tr:last-child td, .recommendations-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .activity-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .composition-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .goals-container {
        grid-template-columns: 1fr;
    }

    .tracker-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .unit-options,
    .age-options,
    .gender-options {
        grid-template-columns: 1fr;
    }

    .activity-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .height-imperial-inputs {
        grid-template-columns: 1fr;
    }

    .bmi-value {
        font-size: 48px;
    }

    .bmi-category {
        font-size: 18px;
    }

    .health-summary {
        grid-template-columns: 1fr;
    }

    .composition-grid {
        grid-template-columns: 1fr;
    }

    .analysis-content {
        padding: 15px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .limitations-grid {
        grid-template-columns: 1fr;
    }

    .scale-segment span:first-child {
        font-size: 12px;
    }

    .scale-segment span:last-child {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .activity-options {
        grid-template-columns: 1fr;
    }

    .bmi-value {
        font-size: 36px;
    }

    .bmi-category {
        font-size: 16px;
        padding: 6px 15px;
    }

    .scale-segment {
        padding: 0 2px;
    }

        .scale-segment span:first-child {
            font-size: 10px;
        }

        .scale-segment span:last-child {
            font-size: 8px;
        }

    .metrics-table, .recommendations-table {
        font-size: 12px;
    }

        .metrics-table th, .metrics-table td,
        .recommendations-table th, .recommendations-table td {
            padding: 8px 10px;
        }
}



/* =========================================== */
/* Mortgage Calculator Specific */
/* =========================================== */

/* Loan Details */
.loan-details {
    margin: 25px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.detail-item {
    text-align: center;
}

.detail-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.detail-value {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

/* Affordability Calculator */
.affordability-calculator {
    margin: 25px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.affordability-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: linear-gradient(135deg, #f0f9f6 0%, #e6f4f1 100%);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #d4f0e9;
}

.affordability-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.affordability-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.affordability-value {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

/* Yearly Breakdown */
.yearly-breakdown {
    margin: 25px 0;
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .breakdown-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 2px solid #e0e0e0;
    }

    .breakdown-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .breakdown-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .breakdown-table .total-row {
        background-color: #f8f9fa;
        border-top: 2px solid #e0e0e0;
    }

        .breakdown-table .total-row td {
            font-weight: 600;
            color: #222;
        }

/* Eligibility Table */
.eligibility-table {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .eligibility-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }

    .eligibility-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .eligibility-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .eligibility-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .eligibility-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Additional Payments Toggle */
.additional-payments-toggle {
    margin: 15px 0;
}

/* Responsive adjustments for Mortgage Calculator */
@media (max-width: 768px) {
    .details-grid,
    .affordability-grid {
        grid-template-columns: 1fr;
    }

    .breakdown-table,
    .eligibility-table {
        font-size: 12px;
    }

        .breakdown-table th,
        .breakdown-table td,
        .eligibility-table th,
        .eligibility-table td {
            padding: 8px 10px;
        }
}

@media (max-width: 480px) {
    .tenure-display {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .tenure-switch {
        align-self: flex-end;
    }

    .detail-value {
        font-size: 16px;
    }

    .affordability-value {
        font-size: 14px;
    }
}


/* =========================================== */
/* Tax Converter Specific */
/* =========================================== */

/* Country/Regime Selector */
.country-regime-selector {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    margin-bottom: 10px;
}

.selector-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    border-bottom: 3px solid transparent;
}

    .tab-btn:hover {
        background: #f0f0f0;
    }

    .tab-btn.active {
        background: #fff;
        color: #00d09c;
        border-bottom: 3px solid #00d09c;
    }

.selector-content {
    padding: 15px;
}

.country-selection, .regime-selection {
    display: none;
}

    .country-selection.active, .regime-selection.active {
        display: block;
    }

.country-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

    .country-select:focus {
        outline: none;
        border-color: #00d09c;
    }

.regime-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.regime-btn {
    padding: 12px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

    .regime-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .regime-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

/* Filing Status Selector */
.filing-status-selector {
    margin: 10px 0;
}

.status-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.status-btn {
    padding: 10px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    text-align: center;
}

    .status-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .status-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

/* Tax Comparison Results */
.tax-comparison-results {
    margin-bottom: 30px;
}

.comparison-header {
    text-align: center;
    margin-bottom: 25px;
}

    .comparison-header h3 {
        font-size: 20px;
        color: #222;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .comparison-header p {
        color: #666;
        font-size: 14px;
    }

.comparison-cards {
    display: flex;
    align-items: center;
    gap: 20px;
}

.comparison-card {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card-header {
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comparison-card.from-tax .card-header {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
}

.comparison-card.to-tax .card-header {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
}

.card-header h4 {
    font-size: 18px;
    margin: 0;
}

.tax-rate {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 600;
}

.card-content {
    padding: 25px;
}

.amount-display {
    text-align: center;
    margin-bottom: 25px;
}

.amount-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.amount-value {
    font-size: 32px;
    font-weight: 700;
    color: #222;
}

.tax-breakdown {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

    .breakdown-item:last-child {
        margin-bottom: 0;
    }

    .breakdown-item span {
        color: #666;
    }

    .breakdown-item strong {
        color: #222;
        font-size: 16px;
    }

.comparison-arrow {
    color: #00d09c;
    font-size: 24px;
}

/* Tax Savings Analysis */
.tax-savings-analysis {
    margin: 25px 0;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.analysis-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.analysis-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 24px;
}

.analysis-content {
    flex: 1;
}

.analysis-value {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.analysis-label {
    font-size: 14px;
    color: #666;
}

/* Country Tax Rates */
.country-tax-rates {
    margin: 25px 0;
}

/* Tax Planning Tips */
.tax-planning-tips {
    margin-top: 25px;
}

.tip-card {
    background: #fff8e1;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #ffd54f;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.tip-icon {
    width: 50px;
    height: 50px;
    background: #ffd54f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 24px;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
}

    .tip-content h4 {
        color: #222;
        margin-bottom: 8px;
        font-size: 18px;
    }

    .tip-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

.tip-action {
    margin-top: 10px;
}

/* Tax Systems Grid */
.tax-systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.system-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.system-header {
    padding: 20px;
    color: white;
}

    .system-header.progressive {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .system-header.flat {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }

    .system-header.regressive {
        background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
    }

    .system-header.territorial {
        background: linear-gradient(135deg, #ed8936 0%, #ed64a6 100%);
    }

    .system-header h4 {
        font-size: 18px;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.system-content {
    padding: 20px;
}

    .system-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

.system-countries {
    font-size: 13px;
    color: #555;
    margin-bottom: 15px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #00d09c;
}

.system-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.system-features li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: #555;
    font-size: 13px;
    line-height: 1.4;
}

    .system-features li:before {
        content: "•";
        position: absolute;
        left: 0;
        color: #00d09c;
        font-weight: bold;
        font-size: 16px;
    }

/* Tax Rates Table */
.tax-rates-table {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .tax-rates-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }

    .tax-rates-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .tax-rates-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .tax-rates-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .tax-rates-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Responsive adjustments for Tax Converter */
@media (max-width: 768px) {
    .comparison-cards {
        flex-direction: column;
    }

    .comparison-arrow {
        transform: rotate(90deg);
        padding: 15px 0;
    }

    .analysis-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .status-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .regime-options {
        grid-template-columns: 1fr;
    }

    .tax-systems-grid {
        grid-template-columns: 1fr;
    }

    .tip-card {
        flex-direction: column;
        text-align: center;
    }

    .tip-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .status-options {
        grid-template-columns: 1fr;
    }

    .amount-value {
        font-size: 24px;
    }

    .tax-rates-table {
        font-size: 12px;
    }

        .tax-rates-table th,
        .tax-rates-table td {
            padding: 8px 10px;
        }
}


/* =========================================== */
/* Loan Calculator Specific */
/* =========================================== */

/* Loan Type Selector */
.loan-type-selector {
    margin: 15px 0;
}

    .loan-type-selector .type-options {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

/* Prepayment Toggle */
.prepayment-toggle {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* EMI Summary */
.emi-summary {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* Loan Types Grid */
.loan-types-info {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.type-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.type-header {
    padding: 20px;
    color: white;
}

    .type-header.home {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .type-header.car {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }

    .type-header.personal {
        background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
    }

    .type-header.business {
        background: linear-gradient(135deg, #ed8936 0%, #ed64a6 100%);
    }

    .type-header h3 {
        font-size: 18px;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.type-content {
    padding: 20px;
}

    .type-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

.type-details {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    border-left: 3px solid #00d09c;
}

/* Loan Comparison */
.loan-comparison {
    margin-bottom: 25px;
}

/* Loan Tips */
.loan-tips {
    margin-top: 25px;
}

.tip-card {
    background: #fff8e1;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #ffd54f;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.tip-icon {
    width: 50px;
    height: 50px;
    background: #ffd54f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 24px;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
}

    .tip-content h4 {
        color: #222;
        margin-bottom: 8px;
        font-size: 18px;
    }

    .tip-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

.tip-action {
    margin-top: 10px;
}

/* Formula Box */
.formula-box {
    background: linear-gradient(135deg, #f0f9f6 0%, #e6f4f1 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid #d4f0e9;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #222;
    font-family: 'Courier New', monospace;
}

.formula-explanation {
    margin-top: 20px;
    text-align: left;
    font-size: 16px;
    font-weight: normal;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Components Grid */
.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.component-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
    text-align: center;
}

    .component-card h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

        .component-card h4 i {
            color: #00d09c;
        }

    .component-card p {
        color: #666;
        font-size: 14px;
        line-height: 1.6;
        margin: 0;
    }

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tip-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .tip-item h5 {
        color: #222;
        margin-bottom: 10px;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .tip-item h5 i {
            color: #00d09c;
        }

    .tip-item p {
        color: #666;
        font-size: 13px;
        line-height: 1.5;
        margin: 0;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .loan-type-selector .type-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .types-grid {
        grid-template-columns: 1fr;
    }

    .summary-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .tip-card {
        flex-direction: column;
        text-align: center;
    }

    .tip-icon {
        margin: 0 auto;
    }

    .components-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .formula-box {
        font-size: 20px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .loan-type-selector .type-options {
        grid-template-columns: 1fr;
    }

    .type-details {
        font-size: 12px;
    }
}


/* =========================================== */
/* Interest Rate Converter Specific */
/* =========================================== */

/* Rate Type Selector */
.rate-type-selector {
    margin: 15px 0;
}

.type-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .type-btn:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

    .type-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
        box-shadow: 0 5px 15px rgba(0, 208, 156, 0.1);
    }

    .type-btn i {
        font-size: 20px;
        color: #666;
        margin-bottom: 8px;
    }

    .type-btn.active i {
        color: #00d09c;
    }

    .type-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .type-btn small {
        font-size: 11px;
        color: #888;
        line-height: 1.3;
    }

/* Compounding Selector */
.compounding-selector {
    margin: 10px 0;
}

.frequency-options {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.frequency-btn {
    padding: 10px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    text-align: center;
}

    .frequency-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .frequency-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

/* Additional Options */
.additional-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Rate Conversion Results */
.rate-conversion-results {
    margin-bottom: 30px;
}

.results-header {
    text-align: center;
    margin-bottom: 25px;
}

    .results-header h3 {
        font-size: 20px;
        color: #222;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .results-header p {
        color: #666;
        font-size: 14px;
    }

.conversion-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.conversion-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.conversion-header {
    padding: 15px;
    color: white;
    text-align: center;
}

    .conversion-header.apr {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }

    .conversion-header.apy {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .conversion-header.monthly {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    }

    .conversion-header.daily {
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    }

    .conversion-header h4 {
        font-size: 16px;
        margin-bottom: 5px;
    }

.conversion-subtitle {
    font-size: 11px;
    opacity: 0.9;
}

.conversion-body {
    padding: 20px;
    text-align: center;
}

.conversion-value {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.conversion-formula {
    font-size: 12px;
    color: #666;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    border-left: 3px solid #00d09c;
}

/* Interest Calculation */
.interest-calculation {
    margin: 25px 0;
}

.calculation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.calc-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.calc-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 24px;
}

.calc-content {
    flex: 1;
}

.calc-value {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.calc-label {
    font-size: 14px;
    color: #666;
}

/* Rate Comparison Table */
.rate-comparison-table {
    margin: 25px 0;
}

/* Real-World Examples */
.real-world-examples {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.example-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.example-header {
    padding: 15px;
    color: white;
}

    .example-header.savings {
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    }

    .example-header.fd {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .example-header.loan {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    }

    .example-header.credit {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    }

    .example-header h4 {
        font-size: 16px;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.example-content {
    padding: 15px;
    text-align: center;
}

.example-rate {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.example-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.example-calc {
    font-size: 12px;
    color: #00d09c;
    font-weight: 600;
    background: #f0f9f6;
    padding: 5px 10px;
    border-radius: 4px;
    border-left: 3px solid #00d09c;
}

/* Rate Types Grid */
.rate-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.rate-type-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.rate-type-header {
    padding: 20px;
    color: white;
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
}

    .rate-type-header h4 {
        font-size: 18px;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.rate-type-content {
    padding: 20px;
}

    .rate-type-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

.rate-formula {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
    border-left: 3px solid #00d09c;
    font-family: 'Courier New', monospace;
}

.rate-example {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Formulas Table */
.formulas-table {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .formulas-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }

    .formulas-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .formulas-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .formulas-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .formulas-table tbody tr:last-child td {
        border-bottom: none;
    }

    .formulas-table td:nth-child(2) {
        font-family: 'Courier New', monospace;
        color: #00b386;
    }

/* Compounding Impact */
.compounding-impact {
    margin: 20px 0;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.impact-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.impact-header {
    padding: 12px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

    .impact-header h5 {
        font-size: 13px;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        color: #444;
    }

.impact-content {
    padding: 15px;
    text-align: center;
}

.impact-rate {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.impact-desc {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.3;
}

.impact-example {
    font-size: 11px;
    color: #00d09c;
    font-weight: 600;
}

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.app-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .app-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .app-card h4 i {
            color: #00d09c;
        }

    .app-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .app-card li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .app-card li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Responsive adjustments for Interest Rate Converter */
@media (max-width: 992px) {
    .type-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .conversion-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calculation-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .frequency-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .type-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .conversion-grid {
        grid-template-columns: 1fr;
    }

    .calculation-grid {
        grid-template-columns: 1fr;
    }

    .examples-grid {
        grid-template-columns: 1fr;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rate-types-grid {
        grid-template-columns: 1fr;
    }

    .applications-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .frequency-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .type-options {
        grid-template-columns: 1fr;
    }

    .impact-grid {
        grid-template-columns: 1fr;
    }

    .conversion-value {
        font-size: 20px;
    }

    .calc-value {
        font-size: 18px;
    }

    .formulas-table {
        font-size: 12px;
    }

        .formulas-table th,
        .formulas-table td {
            padding: 8px 10px;
        }
}


/* =========================================== */
/* RD Calculator Specific */
/* =========================================== */

/* Bank Selector */
.bank-selector {
    margin: 15px 0;
}

/* Compounding Selector */
.compounding-selector {
    margin: 15px 0;
}

.compounding-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.compounding-btn {
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .compounding-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .compounding-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

/* Maturity Summary */
.maturity-summary {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

/* RD Features Grid */
.rd-features-info {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.feature-card {
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border-top: 4px solid #00d09c;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #00d09c;
    font-size: 24px;
}

.feature-card h3 {
    color: #222;
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Yearly Breakdown */
.yearly-breakdown {
    margin-bottom: 25px;
}

/* RD Comparison */
.rd-comparison {
    margin-bottom: 25px;
}

.comparison-note {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* RD Tips */
.rd-tips {
    margin-top: 25px;
}

/* Types Grid */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.type-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

    .type-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .type-card h4 i {
            color: #00d09c;
        }

    .type-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .type-card li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        font-size: 13px;
        color: #555;
    }

        .type-card li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Tax Information */
.tax-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.tax-point {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

    .tax-point:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .tax-point i {
        color: #00d09c;
        font-size: 20px;
        margin-top: 2px;
    }

    .tax-point h5 {
        color: #222;
        margin-bottom: 5px;
        font-size: 15px;
    }

    .tax-point p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .compounding-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid,
    .types-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .tax-point {
        flex-direction: column;
        text-align: center;
    }

        .tax-point i {
            margin: 0 auto 10px;
        }
}

@media (max-width: 480px) {
    .compounding-options {
        grid-template-columns: 1fr;
    }
}
/* =========================================== */
/* NPS Calculator Specific */
/* =========================================== */

/* Account Type Selector */
.account-type-selector {
    margin: 15px 0;
}

    .account-type-selector .type-options {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

/* Allocation Selector */
.allocation-selector {
    margin: 15px 0;
}

.allocation-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.allocation-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .allocation-btn:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

    .allocation-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
        box-shadow: 0 5px 15px rgba(0, 208, 156, 0.1);
    }

    .allocation-btn i {
        font-size: 20px;
        color: #666;
        margin-bottom: 8px;
    }

    .allocation-btn.active i {
        color: #00d09c;
    }

    .allocation-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .allocation-btn small {
        font-size: 11px;
        color: #888;
        line-height: 1.3;
    }

/* Custom Allocation Bars */
.allocation-bars {
    margin: 15px 0;
}

.allocation-bar {
    margin-bottom: 20px;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.bar-container {
    position: relative;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
}

.bar-fill {
    /*  position: absolute;*/
    height: 100%;
    left: 0;
    top: 0;
}

.equity-fill {
    background: linear-gradient(90deg, #00d09c, #00b386);
}

.corporate-fill {
    background: linear-gradient(90deg, #4a5568, #718096);
}

.government-fill {
    background: linear-gradient(90deg, #f56565, #ed64a6);
}

.allocation-bar input[type="range"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.allocation-summary {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    font-weight: 600;
    color: #222;
}

    .allocation-summary span {
        color: #00d09c;
        font-size: 18px;
    }

/* Corpus Summary */
.corpus-summary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

/* Tax Benefits */
.tax-benefits {
    margin-bottom: 25px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.benefit-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #00d09c;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 24px;
}

.benefit-content {
    flex: 1;
}

.benefit-value {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.benefit-label {
    font-size: 13px;
    color: #666;
}

/* Withdrawal Rules */
.withdrawal-rules {
    margin-bottom: 25px;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.rule-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .rule-card h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .rule-card h4 i {
            color: #00d09c;
        }

    .rule-card p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* Yearly Projection */
.yearly-projection {
    margin-bottom: 25px;
}

/* NPS Benefits Grid */
.nps-benefits-info {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.benefit-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.benefit-header {
    padding: 20px;
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    color: white;
}

    .benefit-header h3 {
        font-size: 18px;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.benefit-content {
    padding: 20px;
}

    .benefit-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

.benefit-highlight {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    border-left: 3px solid #00d09c;
}

/* NPS Process */
.nps-process {
    margin: 20px 0;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

    .process-step:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.step-number {
    width: 40px;
    height: 40px;
    background: #00d09c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content h4 {
    color: #222;
    margin-bottom: 8px;
    font-size: 16px;
}

.step-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Tax Grid */
.tax-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tax-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

    .tax-card h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .tax-card h4 i {
            color: #00d09c;
        }

    .tax-card p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* Allocation Table */
.allocation-info {
    margin: 20px 0;
}

.allocation-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .allocation-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .allocation-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .allocation-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .allocation-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .allocation-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Investor Profiles */
.investor-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.profile-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .profile-card h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .profile-card h4 i {
            color: #00d09c;
        }

    .profile-card p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* Investment Tips */
.investment-tips {
    margin-top: 25px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .account-type-selector .type-options,
    .allocation-options {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .step-number {
        margin: 0 auto;
    }

    .tax-grid,
    .investor-profiles {
        grid-template-columns: 1fr;
    }

    .allocation-table {
        font-size: 12px;
    }

        .allocation-table th,
        .allocation-table td {
            padding: 8px 10px;
        }
}

@media (max-width: 480px) {
    .benefit-card {
        flex-direction: column;
        text-align: center;
    }

    .benefit-icon {
        margin: 0 auto;
    }
}

/* =========================================== */
/* Unit Converter Specific */
/* =========================================== */

/* Unit Selector */
.unit-selector {
    margin: 15px 0;
}

/* All Units Conversion Grid */
.all-units-conversion {
    margin: 25px 0;
}

.conversion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.conversion-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    cursor: pointer;
}

    .conversion-item:hover {
        border-color: #00d09c;
        background: #f0f9f6;
        transform: translateY(-2px);
    }

.conversion-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.from-code, .to-code {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.conversion-pair .fa-arrow-right {
    color: #00d09c;
    font-size: 12px;
}

.conversion-rate {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.conversion-example {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

/* Length/Weight Comparison */
.length-comparison, .weight-comparison {
    margin: 25px 0;
}

.comparison-card {
    background: linear-gradient(135deg, #f0f9f6 0%, #e6f4f1 100%);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #d4f0e9;
}

.comparison-content {
    text-align: center;
}

.comparison-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

    .comparison-item i {
        color: #00d09c;
        font-size: 24px;
    }

    .comparison-item span {
        font-size: 16px;
        color: #555;
        font-weight: 500;
    }

/* Conversion History */
.conversion-history {
    margin: 25px 0;
}

.history-list {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #00d09c;
    transition: all 0.3s;
}

    .history-item:hover {
        transform: translateX(5px);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }

    .history-item:last-child {
        margin-bottom: 0;
    }

.history-conversion {
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-from, .history-to {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.history-conversion .fa-arrow-right {
    color: #00d09c;
    font-size: 12px;
}

.history-time {
    font-size: 12px;
    color: #888;
}

.history-empty {
    text-align: center;
    color: #888;
    padding: 20px;
    font-style: italic;
}

/* Common Conversions Selector */
.common-conversions-selector {
    margin: 15px 0;
}

.conversion-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.conversion-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .conversion-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .conversion-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

    .conversion-btn span {
        margin-bottom: 5px;
        font-size: 14px;
    }

    .conversion-btn small {
        font-size: 11px;
        font-weight: normal;
        opacity: 0.8;
    }

/* Units Grid (Information Section) */
.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.unit-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.unit-header {
    padding: 20px;
    color: white;
}

    .unit-header.metric {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .unit-header.imperial {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }

    .unit-header.nautical {
        background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    }

    .unit-header.astronomical {
        background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
    }

    .unit-header.uk {
        background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    }

    .unit-header.special {
        background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    }

    .unit-header h3 {
        font-size: 18px;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.unit-content {
    padding: 20px;
}

    .unit-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .unit-content li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .unit-content li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

.unit-note {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 12px;
    color: #666;
    border-left: 3px solid #00d09c;
}

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.application-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .application-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .application-card h4 i {
            color: #00d09c;
        }

    .application-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .application-card li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .application-card li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Responsive adjustments */
@media (max-width: 768px) {
    .conversion-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .conversion-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .units-grid,
    .applications-grid {
        grid-template-columns: 1fr;
    }

    .comparison-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .history-time {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .conversion-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .conversion-grid {
        grid-template-columns: 1fr;
    }

    .history-item {
        text-align: center;
    }

    .history-conversion {
        flex-direction: column;
        gap: 5px;
    }

    .history-time {
        align-self: center;
    }
}

/* =========================================== */
/* Investment Return Converter Specific */
/* =========================================== */

/* Calculation Type Selector */
.calc-type-selector {
    margin: 15px 0;
}

.type-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .type-btn:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

    .type-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
        box-shadow: 0 5px 15px rgba(0, 208, 156, 0.1);
    }

    .type-btn i {
        font-size: 20px;
        color: #666;
        margin-bottom: 8px;
    }

    .type-btn.active i {
        color: #00d09c;
    }

    .type-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .type-btn small {
        font-size: 11px;
        color: #888;
        line-height: 1.3;
    }

/* Period Display */
.period-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.period-switch {
    display: flex;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 2px;
}

.period-btn {
    padding: 4px 12px;
    border: none;
    background: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
}

    .period-btn.active {
        background: #fff;
        color: #00d09c;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

.period-marks {
    font-size: 11px;
}

/* Return Summary */
.return-summary {
    margin-bottom: 30px;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Performance Metrics */
.performance-metrics {
    margin: 25px 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.metric-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.metric-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 24px;
}

.metric-content {
    flex: 1;
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 14px;
    color: #666;
}

/* Return Comparison */
.return-comparison {
    margin: 25px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.comparison-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.comparison-label {
    width: 150px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.comparison-value {
    width: 120px;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.comparison-bar {
    flex: 1;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 10px;
    background: #00d09c;
}

    .bar-fill.fd {
        background: #4a5568;
    }

    .bar-fill.sensex {
        background: #f59e0b;
    }

    .bar-fill.inflation {
        background: #ef4444;
    }

/* Future Projection */
.future-projection {
    margin: 25px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.projection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.projection-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.projection-header {
    padding: 15px;
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    color: white;
    text-align: center;
}

    .projection-header h4 {
        font-size: 16px;
        margin-bottom: 5px;
    }

.projection-subtitle {
    font-size: 11px;
    opacity: 0.9;
}

.projection-body {
    padding: 20px;
    text-align: center;
}

.projection-value {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.projection-gain {
    font-size: 14px;
    color: #00d09c;
    font-weight: 600;
}

/* Investment Insights */
.investment-insights {
    margin-top: 25px;
}

.insight-card {
    background: #fff8e1;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #ffd54f;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.insight-icon {
    width: 50px;
    height: 50px;
    background: #ffd54f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 24px;
    flex-shrink: 0;
}

.insight-content {
    flex: 1;
}

    .insight-content h4 {
        color: #222;
        margin-bottom: 8px;
        font-size: 18px;
    }

    .insight-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

.insight-action {
    margin-top: 10px;
}

/* Return Metrics Grid */
.return-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.metric-card-detailed {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.metric-header {
    padding: 20px;
    color: white;
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
}

    .metric-header h4 {
        font-size: 18px;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.metric-content {
    padding: 20px;
}

    .metric-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

.metric-formula {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
    border-left: 3px solid #00d09c;
    font-family: 'Courier New', monospace;
}

.metric-example {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.metric-use {
    font-size: 13px;
    color: #444;
    font-weight: 600;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* Conversion Formulas */
.conversion-formulas {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .conversion-formulas table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }

    .conversion-formulas th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .conversion-formulas td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .conversion-formulas tbody tr:hover {
        background-color: #f9f9f9;
    }

    .conversion-formulas tbody tr:last-child td {
        border-bottom: none;
    }

    .conversion-formulas td:nth-child(2) {
        font-family: 'Courier New', monospace;
        color: #00b386;
    }

/* Benchmark Comparison */
.benchmark-comparison {
    margin: 20px 0;
}

.benchmark-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.benchmark-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.benchmark-header {
    padding: 12px;
    color: white;
    text-align: center;
}

    .benchmark-header.savings {
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    }

    .benchmark-header.fd {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .benchmark-header.debt {
        background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    }

    .benchmark-header.balanced {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    }

    .benchmark-header.equity {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    }

    .benchmark-header.direct {
        background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    }

    .benchmark-header h5 {
        font-size: 13px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

.benchmark-content {
    padding: 15px;
    text-align: center;
}

.benchmark-return {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.benchmark-risk,
.benchmark-liquidity,
.benchmark-suitability {
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.3;
}

/* Strategy Tips Grid */
.strategy-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.strategy-tip-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .strategy-tip-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .strategy-tip-card h4 i {
            color: #00d09c;
        }

    .strategy-tip-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .strategy-tip-card li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .strategy-tip-card li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Rule of Thumb */
.rule-of-thumb {
    margin: 20px 0;
}

.rule-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.rule-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.rule-header {
    padding: 12px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

    .rule-header h5 {
        font-size: 14px;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        color: #444;
    }

.rule-content {
    padding: 15px;
    text-align: center;
}

.rule-formula {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.rule-example {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Responsive adjustments for Investment Return Converter */
@media (max-width: 992px) {
    .type-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .summary-cards,
    .metrics-grid,
    .projection-grid,
    .benchmark-grid,
    .rule-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .return-metrics-grid,
    .strategy-tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .type-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-cards,
    .metrics-grid,
    .projection-grid,
    .benchmark-grid,
    .rule-grid {
        grid-template-columns: 1fr;
    }

    .return-metrics-grid,
    .strategy-tips-grid {
        grid-template-columns: 1fr;
    }

    .comparison-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .comparison-label {
        width: 100%;
    }

    .comparison-value {
        width: 100%;
    }

    .comparison-bar {
        width: 100%;
    }

    .insight-card {
        flex-direction: column;
        text-align: center;
    }

    .insight-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .type-options {
        grid-template-columns: 1fr;
    }

    .period-display {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .period-switch {
        align-self: flex-end;
    }

    .metric-value,
    .projection-value {
        font-size: 18px;
    }

    .conversion-formulas {
        font-size: 12px;
    }

        .conversion-formulas th,
        .conversion-formulas td {
            padding: 8px 10px;
        }
}

/* =========================================== */
/* Date Converter Specific */
/* =========================================== */

/* Calendar Selector */
.calendar-selector {
    margin: 15px 0;
}

    .calendar-selector .type-options {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

/* Date Input Container */
.date-input-container {
    margin: 15px 0;
}

.date-input-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.date-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .date-field label {
        font-size: 14px;
        color: #666;
        font-weight: 500;
    }

.date-input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    text-align: center;
}

.date-select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    background: white;
    cursor: pointer;
}

    .date-input:focus,
    .date-select:focus {
        outline: none;
        border-color: #00d09c;
        box-shadow: 0 0 0 3px rgba(0, 208, 156, 0.1);
    }

/* Quick Dates Selector */
.quick-dates-selector {
    margin: 15px 0;
}

.quick-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.quick-btn {
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .quick-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .quick-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

/* Format Selector */
.format-selector {
    margin: 15px 0;
}

.format-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.format-btn {
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .format-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .format-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

/* Date Details */
.date-details {
    margin-bottom: 25px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.detail-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #00d09c;
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 24px;
}

.detail-content {
    flex: 1;
}

.detail-value {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.detail-label {
    font-size: 13px;
    color: #666;
}

/* Multiple Formats */
.multiple-formats {
    margin-bottom: 25px;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.format-item {
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #00d09c;
}

.format-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.format-value {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    font-family: 'Courier New', monospace;
}

/* Date Difference */
.date-difference {
    margin-bottom: 25px;
}

.difference-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.difference-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #4a5568;
}

.difference-icon {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    font-size: 24px;
}

.difference-content {
    flex: 1;
}

.difference-value {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.difference-label {
    font-size: 13px;
    color: #666;
}

/* Calendar Info Grid */
.calendar-info {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
}

.calendars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.calendar-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.calendar-header {
    padding: 20px;
    color: white;
}

    .calendar-header.gregorian {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .calendar-header.hijri {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }

    .calendar-header.julian {
        background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
    }

    .calendar-header.hebrew {
        background: linear-gradient(135deg, #ed8936 0%, #ed64a6 100%);
    }

    .calendar-header h3 {
        font-size: 18px;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.calendar-content {
    padding: 20px;
}

    .calendar-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

.calendar-details {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    border-left: 3px solid #00d09c;
}

/* Conversion Steps */
.conversion-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Examples Table */
.conversion-examples {
    margin: 20px 0;
}

.examples-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .examples-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .examples-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .examples-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .examples-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .examples-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Format Standards */
.format-standards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.standard-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

    .standard-card h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .standard-card h4 i {
            color: #00d09c;
        }

    .standard-card p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* Special Dates */
.special-dates {
    margin-top: 25px;
}

.special-card {
    background: #fff8e1;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #ffd54f;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.special-icon {
    width: 50px;
    height: 50px;
    background: #ffd54f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 24px;
    flex-shrink: 0;
}

.special-content {
    flex: 1;
}

    .special-content h4 {
        color: #222;
        margin-bottom: 8px;
        font-size: 18px;
    }

    .special-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

.special-action {
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calendar-selector .type-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .date-input-group {
        grid-template-columns: 1fr;
    }

    .quick-options,
    .format-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .details-grid,
    .difference-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .formats-grid {
        grid-template-columns: 1fr;
    }

    .calendars-grid {
        grid-template-columns: 1fr;
    }

    .conversion-steps {
        grid-template-columns: 1fr;
    }

    .examples-table {
        font-size: 12px;
    }

        .examples-table th,
        .examples-table td {
            padding: 8px 10px;
        }

    .format-standards {
        grid-template-columns: 1fr;
    }

    .special-card {
        flex-direction: column;
        text-align: center;
    }

    .special-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .calendar-selector .type-options,
    .quick-options,
    .format-options {
        grid-template-columns: 1fr;
    }

    .details-grid,
    .difference-grid {
        grid-template-columns: 1fr;
    }

    .detail-card,
    .difference-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .detail-icon,
    .difference-icon {
        margin: 0 auto;
    }
}

/* =========================================== */
/* Volume Converter Specific */
/* =========================================== */

/* Unit Selector */
.unit-selector {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.unit-search {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

    .unit-search i {
        color: #888;
        margin-right: 10px;
    }

.unit-search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 14px;
    color: #333;
}

    .unit-search-input:focus {
        outline: none;
    }

    .unit-search-input::placeholder {
        color: #999;
    }

.unit-options-container {
    max-height: 300px;
    overflow-y: auto;
}

.unit-options {
    padding: 10px 0;
}

.unit-category {
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.unit-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-left: 3px solid transparent;
}

    .unit-option:hover {
        background-color: #f8f9fa;
    }

    .unit-option.selected {
        background-color: #f0f9f6;
        border-left-color: #00d09c;
    }

.unit-info {
    flex: 1;
}

.unit-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    margin-bottom: 2px;
}

.unit-symbol {
    font-size: 12px;
    color: #666;
}

.unit-option .fa-check {
    color: #00d09c;
    font-size: 14px;
}

/* Swap Container */
.swap-container {
    text-align: center;
    margin: 20px 0;
}

.swap-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .swap-btn:hover {
        background: #f0f0f0;
        border-color: #00d09c;
        color: #00d09c;
    }

/* Quick Conversions */
.quick-conversions {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.quick-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
}

    .quick-card:hover {
        border-color: #00d09c;
        background: #f0f9f6;
        transform: translateY(-2px);
    }

.quick-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.quick-amount {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.quick-symbol {
    font-size: 13px;
    color: #00d09c;
    font-weight: 600;
}

/* Detailed Results */
.detailed-results {
    margin: 25px 0;
}

.results-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .results-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .results-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .results-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .results-table tbody tr:hover {
        background-color: #f9f9f9;
        cursor: pointer;
    }

    .results-table tbody tr.current-from {
        background-color: #f0f9f6;
        border-left: 3px solid #00d09c;
    }

    .results-table tbody tr.current-to {
        background-color: #f0f9f6;
        border-left: 3px solid #4a5568;
    }

    .results-table .category-header {
        background-color: #f8f9fa;
        font-weight: 600;
        color: #333;
        border-bottom: 2px solid #e0e0e0;
    }

        .results-table .category-header td {
            padding: 15px;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

/* Volume Comparisons */
.volume-comparisons {
    margin-top: 30px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.comparison-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

    .comparison-card:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

.comparison-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.comparison-volume {
    font-size: 20px;
    font-weight: 700;
    color: #00d09c;
    margin-bottom: 5px;
}

.comparison-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.comparison-detail {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

/* Volume Units Information */
.volume-units-info {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.unit-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.unit-header {
    padding: 20px;
    color: white;
}

    .unit-header.metric {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .unit-header.imperial {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }

    .unit-header.cubic {
        background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
    }

    .unit-header.other {
        background: linear-gradient(135deg, #ed8936 0%, #ed64a6 100%);
    }

    .unit-header h3 {
        font-size: 18px;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.unit-content {
    padding: 20px;
}

    .unit-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .unit-content li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
        line-height: 1.4;
    }

        .unit-content li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Conversion Factors */
.conversion-factors {
    margin: 20px 0;
}

.factor-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .factor-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .factor-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .factor-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .factor-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .factor-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Systems Grid */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.system-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

    .system-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .system-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .system-card li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .system-card li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.application-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .application-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .application-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .application-card li {
        margin-bottom: 10px;
        color: #555;
        font-size: 14px;
    }

/* Equivalents Grid */
.equivalents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.equivalent-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

    .equivalent-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .equivalent-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .equivalent-card li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .equivalent-card li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Converter Container */
.converter-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .converter-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .quick-grid,
    .units-grid,
    .systems-grid,
    .applications-grid,
    .equivalents-grid {
        grid-template-columns: 1fr;
    }

    .results-table {
        font-size: 13px;
    }

        .results-table th,
        .results-table td {
            padding: 8px 10px;
        }
}

@media (max-width: 480px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================== */
/* Time Converter Specific Styles */
/* =========================================== */

/* Time Zone Selector */
.timezone-selector {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.timezone-search {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

    .timezone-search i {
        color: #888;
        margin-right: 10px;
    }

.timezone-search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 14px;
    color: #333;
}

    .timezone-search-input:focus {
        outline: none;
    }

    .timezone-search-input::placeholder {
        color: #999;
    }

.timezone-options-container {
    max-height: 200px;
    overflow-y: auto;
}

.timezone-options {
    padding: 10px 0;
}

.timezone-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-left: 3px solid transparent;
}

    .timezone-option:hover {
        background-color: #f8f9fa;
    }

    .timezone-option.selected {
        background-color: #f0f9f6;
        border-left-color: #00d09c;
    }

.timezone-code {
    width: 80px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.timezone-info {
    flex: 1;
}

.timezone-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    margin-bottom: 2px;
}

.timezone-offset {
    font-size: 12px;
    color: #666;
}

/* Date Time Input */
.datetime-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .datetime-input .text-input {
        flex: 1;
    }

.datetime-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

    .datetime-btn:hover {
        background: #f0f0f0;
        border-color: #00d09c;
        color: #00d09c;
    }

.datetime-btn-small {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}

    .datetime-btn-small:hover {
        background: #f0f0f0;
        border-color: #00d09c;
        color: #00d09c;
    }

/* Unit Selector */
.unit-selector {
    margin: 10px 0;
}

.unit-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
}

.unit-btn {
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .unit-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .unit-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

    .unit-btn span {
        margin-bottom: 2px;
    }

    .unit-btn small {
        font-size: 11px;
        opacity: 0.8;
    }

/* Conversion Type Selector */
.conversion-type-selector {
    margin: 15px 0;
}

.type-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .type-btn:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

    .type-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
        box-shadow: 0 5px 15px rgba(0, 208, 156, 0.1);
    }

    .type-btn i {
        font-size: 24px;
        color: #666;
        margin-bottom: 8px;
    }

    .type-btn.active i {
        color: #00d09c;
    }

    .type-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .type-btn small {
        font-size: 11px;
        color: #888;
    }

/* Time Presets */
.time-presets-selector {
    margin: 10px 0;
}

.preset-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.preset-btn {
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

    .preset-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .preset-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

    .preset-btn span {
        margin-bottom: 2px;
    }

    .preset-btn small {
        font-size: 11px;
        opacity: 0.8;
    }

/* DST Info */
.dst-info {
    background: #f0f9f6;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    border-left: 3px solid #00d09c;
}

    .dst-info i {
        color: #00d09c;
        font-size: 16px;
    }

/* Time Difference Info */
.time-difference-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.difference-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.difference-icon {
    width: 40px;
    height: 40px;
    background: #00d09c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.difference-content {
    flex: 1;
}

.difference-value {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.difference-label {
    font-size: 13px;
    color: #666;
}

/* World Clock */
.world-clock-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.clock-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

    .clock-card:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

.clock-city {
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    font-size: 14px;
}

.clock-time {
    font-size: 18px;
    font-weight: 700;
    color: #00d09c;
    margin-bottom: 4px;
}

.clock-timezone {
    font-size: 12px;
    color: #666;
}

/* Time Zone Map */
.timezone-map-visual {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.timezone-bar {
    height: 40px;
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    margin-bottom: 10px;
}

.timezone-segment {
    height: 100%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.timezone-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

/* Duration Calculator Specific */

/* Calculation Type Selector */
.calc-type-selector {
    margin: 15px 0;
}

    .calc-type-selector .type-options {
        grid-template-columns: repeat(4, 1fr);
    }

/* Duration Inputs */
.duration-inputs {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.duration-input-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.duration-input {
    text-align: center;
}

    .duration-input .text-input {
        width: 100%;
        text-align: center;
        font-size: 18px;
        font-weight: 600;
        padding: 10px;
    }

    .duration-input label {
        display: block;
        margin-top: 5px;
        font-size: 12px;
        color: #666;
    }

/* Work Schedule */
.work-schedule {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.work-day {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

    .work-day:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.work-day-label {
    width: 60px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
}

.work-start,
.work-end {
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

    .work-start:disabled,
    .work-end:disabled {
        background: #f0f0f0;
        color: #999;
    }

/* Include Options */
.include-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Holidays */
.holidays-input {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.holiday-btn {
    background: #00d09c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

    .holiday-btn:hover {
        background: #00b386;
    }

.holidays-list {
    min-height: 40px;
}

.holiday-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: white;
    border-radius: 4px;
    margin-bottom: 5px;
    border: 1px solid #e0e0e0;
}

    .holiday-item:last-child {
        margin-bottom: 0;
    }

.holiday-remove {
    color: #f56565;
    cursor: pointer;
    font-size: 14px;
}

/* Common Durations */
.common-durations-selector {
    margin: 10px 0;
}

.duration-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.duration-btn {
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

    .duration-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .duration-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

    .duration-btn span {
        margin-bottom: 2px;
    }

    .duration-btn small {
        font-size: 11px;
        opacity: 0.8;
    }

/* Duration Results */
.duration-results {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

.duration-main {
    text-align: center;
    margin-bottom: 25px;
}

.duration-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.duration-amount {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
}

.duration-breakdown {
    font-size: 18px;
    opacity: 0.9;
}

.duration-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.duration-card {
    text-align: center;
    padding: 15px 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.duration-value {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.duration-label {
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
}

/* Work Hours Result */
.work-hours-result {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.work-hours-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.work-stat {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #00d09c;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

.work-schedule-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.schedule-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .detail-item span {
        font-size: 13px;
        color: #666;
    }

    .detail-item strong {
        font-size: 14px;
        color: #222;
        font-weight: 600;
    }

/* Timeline Visualization */
.timeline-visualization {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.timeline-container {
    margin-top: 20px;
}

.timeline {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
}

.timeline-start,
.timeline-end {
    width: 60px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    text-align: center;
}

.timeline-bar {
    flex: 1;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.timeline-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d09c 0%, #00b386 100%);
    border-radius: 10px;
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

/* Date Result */
.date-result {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

.date-calculation-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.date-from,
.date-to,
.date-operation {
    flex: 1;
    text-align: center;
}

.date-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.date-value {
    font-size: 18px;
    font-weight: 600;
}

.operation-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: #00d09c;
}

.operation-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.operation-duration {
    font-size: 14px;
    font-weight: 600;
    color: #00d09c;
}

/* Project Tips */
.project-tips {
    margin-top: 25px;
}

.tip-card {
    background: #fff8e1;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #ffd54f;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.tip-icon {
    width: 50px;
    height: 50px;
    background: #ffd54f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 24px;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
}

    .tip-content h4 {
        color: #222;
        margin-bottom: 8px;
        font-size: 18px;
    }

    .tip-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

.tip-action {
    margin-top: 10px;
}

.action-btn {
    background: #00d09c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background 0.3s;
}

    .action-btn:hover {
        background: #00b386;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .type-options,
    .unit-options,
    .preset-options,
    .duration-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .calc-type-selector .type-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .time-difference-info,
    .world-clock-grid,
    .duration-breakdown-grid,
    .work-hours-summary,
    .schedule-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .duration-input-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .date-calculation-result {
        flex-direction: column;
        gap: 20px;
    }

    .tip-card {
        flex-direction: column;
        text-align: center;
    }

    .tip-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .type-options,
    .unit-options,
    .preset-options,
    .duration-options,
    .calc-type-selector .type-options {
        grid-template-columns: 1fr;
    }

    .time-difference-info,
    .world-clock-grid,
    .duration-breakdown-grid,
    .work-hours-summary,
    .schedule-details {
        grid-template-columns: 1fr;
    }

    .duration-input-row {
        grid-template-columns: 1fr;
    }

    .duration-amount {
        font-size: 32px;
    }

    .datetime-input {
        flex-direction: column;
    }

    .datetime-quick-buttons {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
}

/* =========================================== */
/* Cooking Converter Specific */
/* =========================================== */

/* Ingredient Selector */
.ingredient-selector {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.ingredient-search {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

    .ingredient-search i {
        color: #888;
        margin-right: 10px;
    }

.ingredient-search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 14px;
    color: #333;
}

    .ingredient-search-input:focus {
        outline: none;
    }

    .ingredient-search-input::placeholder {
        color: #999;
    }

.ingredient-options-container {
    max-height: 300px;
    overflow-y: auto;
}

.ingredient-options {
    padding: 10px 0;
}

.ingredient-category {
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ingredient-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-left: 3px solid transparent;
}

    .ingredient-option:hover {
        background-color: #f8f9fa;
    }

    .ingredient-option.selected {
        background-color: #f0f9f6;
        border-left-color: #00d09c;
    }

.ingredient-info {
    flex: 1;
}

.ingredient-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    margin-bottom: 2px;
}

.ingredient-density {
    font-size: 12px;
    color: #666;
}

.ingredient-option .fa-check {
    color: #00d09c;
    font-size: 14px;
}

/* Cooking Conversion Result */
.conversion-result.cooking {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    border: 1px solid #ff9a9e;
}

/* Ingredient Info */
.ingredient-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.info-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 18px;
}

.info-content {
    flex: 1;
}

.info-value {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 3px;
}

.info-label {
    font-size: 12px;
    color: #666;
}

/* Recipe Equivalents */
.recipe-equivalents {
    margin: 25px 0;
}

.equivalents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.equivalent-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    text-align: center;
}

    .equivalent-card:hover {
        border-color: #ff9a9e;
        background: #fff5f5;
        transform: translateY(-2px);
    }

.equivalent-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.equivalent-count {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 5px;
}

.equivalent-description {
    font-size: 12px;
    color: #666;
}

/* Baking Pan Conversions */
.pan-conversions {
    margin-top: 25px;
}

.pan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.pan-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

    .pan-card:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

.pan-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.pan-count {
    font-size: 20px;
    font-weight: 700;
    color: #00d09c;
    margin-bottom: 5px;
}

.pan-volume {
    font-size: 12px;
    color: #666;
}

/* Cooking Units Information */
.cooking-units-info {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
}

    .cooking-units-info .units-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
        margin-top: 25px;
    }

    .cooking-units-info .unit-card {
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #e0e0e0;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    }

    .cooking-units-info .unit-header {
        padding: 20px;
        color: white;
    }

        .cooking-units-info .unit-header.volume {
            background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
        }

        .cooking-units-info .unit-header.weight {
            background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
        }

        .cooking-units-info .unit-header.spoon {
            background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
        }

        .cooking-units-info .unit-header.cup {
            background: linear-gradient(135deg, #ffd54f 0%, #ffb74d 100%);
        }

        .cooking-units-info .unit-header h3 {
            font-size: 18px;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

    .cooking-units-info .unit-content {
        padding: 20px;
    }

        .cooking-units-info .unit-content ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .cooking-units-info .unit-content li {
            margin-bottom: 8px;
            padding-left: 20px;
            position: relative;
            color: #555;
            font-size: 14px;
            line-height: 1.4;
        }

            .cooking-units-info .unit-content li:before {
                content: "•";
                position: absolute;
                left: 0;
                color: #00d09c;
                font-weight: bold;
                font-size: 16px;
            }

/* Density Table */
.density-table {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .density-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .density-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .density-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .density-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .density-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tip-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #ff9a9e;
}

    .tip-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .tip-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .tip-card li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
        line-height: 1.4;
    }

        .tip-card li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #ff9a9e;
            font-weight: bold;
            font-size: 16px;
        }

/* Adjustments Grid */
.adjustments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.adjustment-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .adjustment-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .adjustment-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .adjustment-card li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .adjustment-card li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* International Table */
.international-table {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .international-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .international-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .international-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .international-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .international-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Quick Conversions for Cooking */
.quick-conversions .quick-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
}

    .quick-conversions .quick-card:hover {
        border-color: #ff9a9e;
        background: #fff5f5;
        transform: translateY(-2px);
    }

.quick-conversions .quick-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.quick-conversions .quick-amount {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.quick-conversions .quick-symbol {
    font-size: 13px;
    color: #ff6b6b;
    font-weight: 600;
}

@media (max-width: 768px) {
    .ingredient-info {
        grid-template-columns: 1fr;
    }

    .equivalents-grid,
    .pan-grid,
    .tips-grid,
    .adjustments-grid {
        grid-template-columns: 1fr;
    }

    .cooking-units-info .units-grid {
        grid-template-columns: 1fr;
    }

    .density-table,
    .international-table {
        font-size: 12px;
    }

        .density-table th,
        .density-table td,
        .international-table th,
        .international-table td {
            padding: 8px 10px;
        }
}

@media (max-width: 480px) {
    .quick-conversions .quick-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================== */
/* Recipe Converter Specific */
/* =========================================== */

/* Scaling Factor */
.scaling-factor {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.factor-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.factor-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.factor-value {
    font-size: 24px;
    font-weight: 700;
    color: #00d09c;
}

.factor-buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.factor-btn {
    padding: 10px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .factor-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .factor-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

/* Recipe Type Selector */
.recipe-type-selector {
    margin: 15px 0;
}

    .recipe-type-selector .type-options {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .recipe-type-selector .type-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px 10px;
        border: 2px solid #e0e0e0;
        background: #fff;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s;
        text-align: center;
    }

        .recipe-type-selector .type-btn:hover {
            border-color: #00d09c;
            background: #f0f9f6;
        }

        .recipe-type-selector .type-btn.active {
            border-color: #00d09c;
            background: #f0f9f6;
        }

        .recipe-type-selector .type-btn i {
            font-size: 20px;
            color: #666;
            margin-bottom: 8px;
        }

        .recipe-type-selector .type-btn.active i {
            color: #00d09c;
        }

        .recipe-type-selector .type-btn span {
            font-weight: 600;
            color: #333;
            margin-bottom: 4px;
            font-size: 14px;
        }

        .recipe-type-selector .type-btn small {
            font-size: 11px;
            color: #888;
            line-height: 1.3;
        }

/* Measurement Selector */
.measurement-selector {
    margin: 15px 0;
}

    .measurement-selector .measurement-options {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .measurement-selector .measurement-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px 10px;
        border: 2px solid #e0e0e0;
        background: #fff;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s;
        text-align: center;
    }

        .measurement-selector .measurement-btn:hover {
            border-color: #00d09c;
            background: #f0f9f6;
        }

        .measurement-selector .measurement-btn.active {
            border-color: #00d09c;
            background: #f0f9f6;
        }

        .measurement-selector .measurement-btn i {
            font-size: 20px;
            color: #666;
            margin-bottom: 8px;
        }

        .measurement-selector .measurement-btn.active i {
            color: #00d09c;
        }

        .measurement-selector .measurement-btn span {
            font-weight: 600;
            color: #333;
            margin-bottom: 4px;
            font-size: 14px;
        }

        .measurement-selector .measurement-btn small {
            font-size: 11px;
            color: #888;
            line-height: 1.3;
        }

/* Scaling Summary */
.scaling-summary {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 25px;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .summary-header h3 {
        font-size: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.scaling-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.summary-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.summary-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 20px;
    font-weight: 700;
}

/* Ingredient Scaling Table */
.ingredient-scaling {
    margin: 25px 0;
}

.ingredient-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .ingredient-table-container table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .ingredient-table-container th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .ingredient-table-container td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .ingredient-table-container tbody tr:hover {
        background-color: #f9f9f9;
    }

    .ingredient-table-container tbody tr:last-child td {
        border-bottom: none;
    }

.metric-conversion {
    font-size: 11px;
    color: #888;
    margin-top: 3px;
    font-style: italic;
}

.change {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

    .change.increase {
        background: #f0f9f6;
        color: #00b386;
    }

    .change.decrease {
        background: #fff5f5;
        color: #f56565;
    }

    .change.same {
        background: #f8f9fa;
        color: #666;
    }

/* Recipe Adjustments */
.recipe-adjustments {
    margin: 25px 0;
}

.adjustments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.adjustment-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #00d09c;
}

.adjustment-icon {
    width: 40px;
    height: 40px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 18px;
    flex-shrink: 0;
}

.adjustment-content {
    flex: 1;
}

    .adjustment-content h4 {
        color: #222;
        margin-bottom: 5px;
        font-size: 15px;
    }

    .adjustment-content p {
        color: #666;
        font-size: 13px;
        line-height: 1.4;
        margin: 0;
    }

/* Baking Time Guide */
.baking-time-guide {
    margin: 25px 0;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.time-card {
    background: #fff;
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

    .time-card:hover {
        border-color: #00d09c;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    }

.time-item {
    font-weight: 500;
    color: #333;
    font-size: 13px;
    width: 80px;
}

.time-original {
    font-size: 12px;
    color: #666;
    width: 80px;
    text-align: center;
}

.time-scaled {
    font-size: 12px;
    color: #00d09c;
    font-weight: 600;
    width: 100px;
    text-align: right;
}

/* Conversion Tips */
.conversion-tips {
    margin-top: 25px;
}

    .conversion-tips .tip-card {
        background: #fff8e1;
        border-radius: 10px;
        padding: 20px;
        border: 1px solid #ffd54f;
        display: flex;
        align-items: flex-start;
        gap: 15px;
    }

    .conversion-tips .tip-icon {
        width: 50px;
        height: 50px;
        background: #ffd54f;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
        font-size: 24px;
        flex-shrink: 0;
    }

    .conversion-tips .tip-content {
        flex: 1;
    }

        .conversion-tips .tip-content h4 {
            color: #222;
            margin-bottom: 8px;
            font-size: 18px;
        }

        .conversion-tips .tip-content p {
            color: #666;
            font-size: 14px;
            line-height: 1.5;
            margin-bottom: 12px;
        }

    .conversion-tips .tip-action {
        margin-top: 10px;
    }

/* Recipe Scaling Information */
.recipe-scaling-info {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
}

.scaling-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.scaling-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.scaling-header {
    padding: 20px;
    color: white;
}

    .scaling-header.linear {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .scaling-header.adjusted {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }

    .scaling-header.pan {
        background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    }

    .scaling-header.seasonings {
        background: linear-gradient(135deg, #ffd54f 0%, #ffb74d 100%);
    }

    .scaling-header h3 {
        font-size: 18px;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.scaling-content {
    padding: 20px;
}

    .scaling-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

.scaling-formula {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
    border-left: 3px solid #00d09c;
}

.scaling-example {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Scaling Table */
.scaling-table {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .scaling-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .scaling-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .scaling-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .scaling-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .scaling-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Baking Adjustments */
.baking-adjustments {
    margin: 20px 0;
}

.adjustment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.adjustment-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

    .adjustment-item h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .adjustment-item ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .adjustment-item li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
        line-height: 1.4;
    }

        .adjustment-item li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Measurement Conversions */
.measurement-conversions {
    margin: 20px 0;
}

.conversion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.conversion-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #ff9a9e;
}

    .conversion-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .conversion-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .conversion-card li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .conversion-card li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #ff9a9e;
            font-weight: bold;
            font-size: 16px;
        }

/* Serving Tips */
.serving-tips {
    margin: 20px 0;
}

.tip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tip-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #ffd54f;
}

    .tip-item h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .tip-item ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .tip-item li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .tip-item li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #ffd54f;
            font-weight: bold;
            font-size: 16px;
        }

@media (max-width: 768px) {
    .factor-buttons {
        grid-template-columns: repeat(3, 1fr);
    }

    .recipe-type-selector .type-options,
    .measurement-selector .measurement-options {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .adjustments-grid,
    .time-grid,
    .scaling-grid,
    .adjustment-grid,
    .conversion-grid,
    .tip-grid {
        grid-template-columns: 1fr;
    }

    .ingredient-table-container {
        font-size: 12px;
    }

        .ingredient-table-container th,
        .ingredient-table-container td {
            padding: 8px 10px;
        }
}

@media (max-width: 480px) {
    .factor-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .time-card {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .time-item,
    .time-original,
    .time-scaled {
        width: 100%;
        text-align: center;
    }
}

/* =========================================== */
/* Oven Temperature Converter Specific */
/* =========================================== */

/* Temperature Selector */
.temperature-selector {
    margin: 15px 0;
}

.temp-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.temp-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .temp-btn:hover {
        border-color: #ff6b6b;
        background: #fff5f5;
    }

    .temp-btn.active {
        border-color: #ff6b6b;
        background: #fff5f5;
    }

    .temp-btn i {
        font-size: 20px;
        color: #666;
        margin-bottom: 8px;
    }

    .temp-btn.active i {
        color: #ff6b6b;
    }

    .temp-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .temp-btn small {
        font-size: 11px;
        color: #888;
        line-height: 1.3;
    }

/* Common Temperatures */
.common-temperatures {
    margin: 15px 0;
}

.common-temp-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.common-temp-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .common-temp-btn:hover {
        border-color: #ff6b6b;
        background: #fff5f5;
    }

    .common-temp-btn.active {
        background: #ff6b6b;
        border-color: #ff6b6b;
        color: white;
    }

    .common-temp-btn .temp-value {
        font-weight: 600;
        font-size: 14px;
        margin-bottom: 3px;
    }

    .common-temp-btn .temp-label {
        font-size: 11px;
        opacity: 0.8;
        margin-bottom: 2px;
    }

    .common-temp-btn .temp-desc {
        font-size: 10px;
        opacity: 0.7;
    }

/* Temperature Result */
.temperature-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    color: white;
    border: 1px solid #ff6b6b;
}

.temp-from, .temp-to {
    flex: 1;
    text-align: center;
}

.temp-arrow {
    color: white;
    font-size: 24px;
    padding: 0 20px;
    opacity: 0.8;
}

.temp-amount {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
}

.temp-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.temp-description {
    font-size: 14px;
    opacity: 0.8;
    font-style: italic;
}

/* Temperature Scale */
.temperature-scale {
    margin: 25px 0;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.scale-header {
    margin-bottom: 20px;
}

    .scale-header h3 {
        font-size: 18px;
        color: #222;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.scale-visual-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 120px;
    position: relative;
    padding: 0 10px;
}

.scale-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 10%;
}

.marker-line {
    width: 2px;
    background: #ccc;
    height: 40px;
    margin-bottom: 10px;
}

.scale-marker.close .marker-line {
    background: #ff6b6b;
    height: 60px;
}

.scale-marker.current .marker-line {
    background: #ff6b6b;
    height: 80px;
    width: 3px;
}

.marker-label {
    text-align: center;
    font-size: 11px;
    color: #666;
}

.marker-f, .marker-c, .marker-g {
    line-height: 1.3;
}

.scale-marker.current .marker-label {
    color: #222;
    font-weight: 600;
}

/* Baking Guide */
.baking-guide {
    margin: 25px 0;
}

.guide-content {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

    .guide-content p {
        color: #555;
        line-height: 1.6;
        margin-bottom: 15px;
    }

.baking-tips {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

    .baking-tips h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .baking-tips ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .baking-tips li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .baking-tips li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #ff6b6b;
            font-weight: bold;
            font-size: 16px;
        }

/* Temperature Table */
.temperature-table {
    margin: 25px 0;
}

    .temperature-table .table-container {
        overflow-x: auto;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
    }

    .temperature-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .temperature-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .temperature-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .temperature-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .temperature-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Cooking Recommendations */
.cooking-recommendations {
    margin-top: 25px;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.recommendation-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.rec-category {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff6b6b;
}

.rec-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .rec-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .rec-item.match {
        background: #fff5f5;
        margin: -8px;
        padding: 8px;
        border-radius: 6px;
    }

.rec-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    flex: 2;
}

.rec-temp {
    font-size: 12px;
    color: #ff6b6b;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.rec-time {
    font-size: 12px;
    color: #666;
    flex: 1;
    text-align: right;
}

/* Oven Temperature Information */
.oven-temperature-info {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
}

.temperature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.temp-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.temp-header {
    padding: 20px;
    color: white;
}

    .temp-header.cool {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }

    .temp-header.moderate {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .temp-header.hot {
        background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    }

    .temp-header.veryhot {
        background: linear-gradient(135deg, #ff0000 0%, #ff5252 100%);
    }

    .temp-header h3 {
        font-size: 18px;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.temp-content {
    padding: 20px;
}

    .temp-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .temp-content li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
        line-height: 1.4;
    }

        .temp-content li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #ff6b6b;
            font-weight: bold;
            font-size: 16px;
        }

/* Scale Comparison */
.scale-comparison {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .scale-comparison table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .scale-comparison th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .scale-comparison td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .scale-comparison tbody tr:hover {
        background-color: #f9f9f9;
    }

    .scale-comparison tbody tr:last-child td {
        border-bottom: none;
    }

/* Formula Grid */
.formula-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.formula-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #ff6b6b;
}

    .formula-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.formula {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    color: #ff6b6b;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
}

.example {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Baking Guide Grid */
.baking-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.guide-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .guide-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .guide-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .guide-card li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .guide-card li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tip-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #ffd54f;
}

    .tip-item h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .tip-item ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .tip-item li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .tip-item li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #ffd54f;
            font-weight: bold;
            font-size: 16px;
        }

/* International Table */
.international-table {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .international-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .international-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .international-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .international-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .international-table tbody tr:last-child td {
        border-bottom: none;
    }

@media (max-width: 768px) {
    .temp-options,
    .common-temp-options {
        grid-template-columns: 1fr;
    }

    .temperature-result {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .temp-arrow {
        padding: 15px 0;
        transform: rotate(90deg);
    }

    .scale-visual-container {
        height: 200px;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }

    .scale-marker {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .marker-line {
        height: 2px;
        width: 40px;
        margin-bottom: 0;
    }

    .scale-marker.close .marker-line {
        height: 2px;
        width: 60px;
    }

    .scale-marker.current .marker-line {
        height: 3px;
        width: 80px;
    }

    .marker-label {
        display: flex;
        gap: 10px;
    }

    .recommendations-grid,
    .temperature-grid,
    .formula-grid,
    .baking-guide-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .temp-amount {
        font-size: 32px;
    }

    .common-temp-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .rec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .rec-temp,
    .rec-time {
        align-self: flex-end;
    }
}

/* =========================================== */
/* Percentage Converter Specific */
/* =========================================== */

/* Type Selector */
.type-selector {
    margin: 15px 0;
}

.type-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .type-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .type-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .type-btn i {
        font-size: 24px;
        color: #666;
        margin-bottom: 8px;
    }

    .type-btn.active i {
        color: #00d09c;
    }

    .type-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .type-btn small {
        font-size: 11px;
        color: #888;
        line-height: 1.3;
    }

/* Fraction Input Container */
.fraction-input-container,
.ratio-input-container,
.mixed-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.fraction-divider,
.ratio-colon {
    font-size: 24px;
    font-weight: 600;
    color: #666;
    min-width: 20px;
    text-align: center;
}

.mixed-input-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mixed-parts {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Common Values Selector */
.common-values-selector,
.common-ratios-selector,
.common-fractions-selector {
    margin: 15px 0;
}

.value-options,
.ratio-options,
.fraction-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.value-btn,
.ratio-btn,
.fraction-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .value-btn:hover,
    .ratio-btn:hover,
    .fraction-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .value-btn.active,
    .ratio-btn.active,
    .fraction-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

    .value-btn span,
    .ratio-btn span,
    .fraction-btn span {
        margin-bottom: 5px;
        font-size: 14px;
    }

    .value-btn small,
    .ratio-btn small,
    .fraction-btn small {
        font-size: 11px;
        font-weight: normal;
        opacity: 0.8;
    }

/* Conversion Results */
.conversion-results {
    margin-bottom: 30px;
}

.result-display {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 12px;
    color: white;
}

.result-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.result-value {
    font-size: 36px;
    font-weight: 700;
}

.conversion-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.conversion-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

    .conversion-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

.conversion-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .conversion-label i {
        color: #00d09c;
    }

.conversion-value {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.conversion-formula {
    font-size: 12px;
    color: #888;
    font-family: 'Courier New', monospace;
}

/* Ratio Summary */
.ratio-summary,
.fraction-summary {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
    text-align: center;
}

.summary-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.summary-label {
    font-size: 16px;
    opacity: 0.9;
}

.summary-ratio,
.summary-fraction {
    font-size: 42px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.summary-parts,
.summary-simplified {
    font-size: 14px;
    opacity: 0.9;
}

/* Quantity Breakdown */
.quantity-breakdown,
.fraction-details {
    margin-bottom: 25px;
}

.breakdown-grid,
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.breakdown-item,
.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #00d09c;
}

.breakdown-label,
.detail-label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.breakdown-value,
.detail-value {
    font-weight: 600;
    color: #222;
    font-size: 16px;
}

/* Ratio Scale */
.ratio-scale,
.fraction-visual {
    margin-bottom: 25px;
}

.scale-container,
.visual-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.scale-bar {
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    margin-bottom: 15px;
}

.scale-part {
    height: 100%;
    transition: width 0.3s ease;
}

    .scale-part.part-a {
        background: #00d09c;
    }

    .scale-part.part-b {
        background: #4a5568;
    }

    .scale-part.part-c {
        background: #f56565;
    }

.scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.scale-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .scale-label:before {
        content: '';
        width: 12px;
        height: 12px;
        border-radius: 50%;
        display: inline-block;
    }

    .scale-label:nth-child(1):before {
        background: #00d09c;
    }

    .scale-label:nth-child(2):before {
        background: #4a5568;
    }

    .scale-label:nth-child(3):before {
        background: #f56565;
    }

/* Pie Chart */
.pie-chart {
    height: 200px;
    margin-bottom: 15px;
}

.visual-labels {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.visual-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

    .color-dot.fraction-part {
        background: #00d09c;
    }

    .color-dot.whole-part {
        background: #4a5568;
    }

/* Formulas Grid */
.formulas-grid,
.applications-grid,
.fraction-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.formula-card,
.application-card,
.type-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

.formula-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

    .formula-header i {
        color: #00d09c;
        font-size: 24px;
    }

    .formula-header h4 {
        color: #222;
        font-size: 16px;
        margin: 0;
    }

.formula-content {
    color: #555;
}

.formula {
    background: #f0f9f6;
    padding: 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    color: #00b386;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
}

.example {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.application-card h4,
.type-card h4 {
    color: #222;
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .application-card h4 i,
    .type-card h4 i {
        color: #00d09c;
    }

.application-card p,
.type-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Three-Part Toggle */
.three-part-toggle,
.simplify-toggle {
    margin: 15px 0;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .type-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .conversion-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .breakdown-grid,
    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .value-options,
    .ratio-options,
    .fraction-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .result-value,
    .summary-ratio,
    .summary-fraction {
        font-size: 32px;
    }

    .visual-labels {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .formulas-grid,
    .applications-grid,
    .fraction-types {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .type-options {
        grid-template-columns: 1fr;
    }

    .value-options,
    .ratio-options,
    .fraction-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .conversion-grid {
        grid-template-columns: 1fr;
    }

    .fraction-input-container,
    .ratio-input-container,
    .mixed-input-container {
        flex-direction: column;
        gap: 5px;
    }

    .fraction-divider,
    .ratio-colon {
        transform: rotate(90deg);
    }
}

/* =========================================== */
/* Ingredient Converter Specific */
/* =========================================== */

/* Ingredient Type Selector */
.ingredient-type-selector {
    margin: 15px 0;
}

.type-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .type-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .type-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .type-btn i {
        font-size: 24px;
        color: #666;
        margin-bottom: 8px;
    }

    .type-btn.active i {
        color: #00d09c;
    }

    .type-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .type-btn small {
        font-size: 11px;
        color: #888;
    }

/* Specific Ingredient Selector */
.specific-ingredient-selector select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

    .specific-ingredient-selector select:focus {
        outline: none;
        border-color: #00d09c;
        box-shadow: 0 0 0 3px rgba(0, 208, 156, 0.1);
    }

/* Convert To Selector */
.convert-to-selector {
    margin: 15px 0;
}

/* Unit Select */
.unit-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: white;
    min-width: 100px;
    cursor: pointer;
    transition: border-color 0.3s;
}

    .unit-select:focus {
        outline: none;
        border-color: #00d09c;
    }

/* Density Level Selector */
.density-level-selector {
    margin: 15px 0;
}

.density-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.density-btn {
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .density-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .density-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

/* Density Info */
.density-info {
    background: #f0f9f6;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid #00d09c;
    margin-top: 10px;
}

    .density-info i {
        color: #00d09c;
        font-size: 16px;
    }

/* Conversion Summary */
.conversion-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

/* All Units Conversion */
.all-units-conversion {
    margin-bottom: 25px;
}

.conversion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.conversion-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.conversion-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.conversion-value {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

/* Common Conversions Table */
.common-conversions {
    margin-top: 25px;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 15px;
}

    .table-container table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }

    .table-container th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .table-container td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .table-container tbody tr:hover {
        background-color: #f9f9f9;
    }

    .table-container tbody tr:last-child td {
        border-bottom: none;
    }

/* =========================================== */
/* Serving Size Calculator Specific */
/* =========================================== */

/* Quick Adjustments Selector */
.quick-adjustments-selector {
    margin: 15px 0;
}

.adjustment-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.adjustment-btn {
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .adjustment-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .adjustment-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

/* Recipe Type Selector */
.recipe-type-selector {
    margin: 15px 0;
}

/* Portion Size Selector */
.portion-size-selector {
    margin: 15px 0;
}

.portion-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.portion-btn {
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .portion-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .portion-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

/* Ingredients Input */
.ingredients-input {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
}

.ingredient-row {
    display: grid;
    grid-template-columns: 100px 100px 1fr;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

    .ingredient-row.header {
        font-weight: 600;
        color: #666;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e0e0e0;
    }

.ingredient-amount .text-input.small {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
}

.ingredient-unit .unit-select {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
}

.ingredient-name .text-input {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
}

.add-ingredient-btn {
    width: 100%;
    padding: 12px;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 8px;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .add-ingredient-btn:hover {
        background: #e0e0e0;
        border-color: #00d09c;
        color: #00d09c;
    }

/* Adjustment Summary */
.adjustment-summary {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

.summary-main {
    text-align: center;
    margin-bottom: 20px;
}

.summary-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.summary-factor {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
}

.summary-desc {
    font-size: 18px;
    opacity: 0.9;
}

.summary-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.detail-item {
    flex: 1;
    text-align: center;
}

    .detail-item span {
        font-size: 14px;
        opacity: 0.8;
        display: block;
        margin-bottom: 5px;
    }

    .detail-item strong {
        font-size: 20px;
        font-weight: 700;
    }

    .detail-item.arrow {
        flex: 0 0 auto;
        padding: 0 20px;
    }

        .detail-item.arrow i {
            font-size: 24px;
            opacity: 0.7;
        }

/* Adjusted Ingredients */
.adjusted-ingredients {
    margin-bottom: 25px;
}

.ingredients-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 15px;
}

    .ingredients-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .ingredients-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .ingredients-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .ingredients-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .ingredients-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Portion Information */
.portion-information {
    margin-bottom: 25px;
}

.portion-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.portion-card {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.portion-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #00d09c;
    font-size: 24px;
}

.portion-value {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
}

.portion-label {
    font-size: 14px;
    color: #666;
}

/* Nutrition Information */
.nutrition-info {
    margin-bottom: 25px;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 10px;
    padding: 20px;
    color: white;
}

.nutrition-card {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.nutrition-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.nutrition-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Serving Recommendations */
.serving-recommendations {
    margin-bottom: 25px;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.recommendation-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

    .recommendation-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .recommendation-card h4 i {
            color: #00d09c;
        }

    .recommendation-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .recommendation-card li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .recommendation-card li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* =========================================== */
/* Number System Converter Specific */
/* =========================================== */

/* Number System Selector */
.number-system-selector {
    margin: 15px 0;
}

.system-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.system-btn {
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .system-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .system-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

/* Common Numbers Selector */
.common-numbers-selector {
    margin: 15px 0;
}

.number-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.number-btn {
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .number-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .number-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

    .number-btn span {
        font-size: 16px;
    }

    .number-btn small {
        font-size: 11px;
        font-weight: normal;
        opacity: 0.8;
    }

/* Convert Systems Selector */
.convert-systems-selector {
    margin: 15px 0;
}

/* Bit Length Selector */
.bit-length-selector {
    margin: 15px 0;
}

.bit-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.bit-btn {
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .bit-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .bit-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

/* Two's Complement Info */
.twos-complement-info {
    background: #f0f9f6;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid #00d09c;
    margin-top: 10px;
}

    .twos-complement-info i {
        color: #00d09c;
        font-size: 16px;
    }

/* All Conversions */
.all-conversions {
    margin-bottom: 30px;
}

.conversion-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.conversion-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.conversion-header {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    color: white;
}

    .conversion-header.decimal {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .conversion-header.binary {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }

    .conversion-header.hexadecimal {
        background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
    }

    .conversion-header.octal {
        background: linear-gradient(135deg, #ed8936 0%, #ed64a6 100%);
    }

    .conversion-header h4 {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .conversion-header small {
        font-size: 12px;
        opacity: 0.9;
    }

.conversion-value {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.conversion-label {
    font-size: 14px;
    color: #666;
}

/* Binary Representation */
.binary-representation {
    margin-bottom: 25px;
}

.bit-grid {
    display: grid;
    grid-template-columns: repeat(32, 1fr);
    gap: 2px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.bit-cell {
    text-align: center;
    padding: 8px 2px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

    .bit-cell.one {
        background: #00d09c;
        color: white;
        border-color: #00b386;
    }

    .bit-cell.zero {
        background: #f8f9fa;
        color: #666;
    }

.bit-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

.bit-item {
    text-align: center;
}

    .bit-item span {
        font-weight: 600;
        color: #222;
        display: block;
        margin-bottom: 2px;
    }

/* Two's Complement Result */
.twos-complement-result {
    margin-bottom: 25px;
}

.complement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.complement-card {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .complement-card.result {
        border-color: #00d09c;
        background: #f0f9f6;
    }

.complement-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.complement-value {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

/* Calculation Steps Result */
.calculation-steps-result {
    margin-bottom: 25px;
}

.steps-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

    .step:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.step-number {
    width: 40px;
    height: 40px;
    background: #00d09c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content h4 {
    color: #222;
    margin-bottom: 10px;
    font-size: 16px;
}

.step-content code {
    display: block;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    color: #222;
    border: 1px solid #e0e0e0;
    margin-bottom: 5px;
    font-size: 13px;
}

/* Number Properties */
.number-properties {
    margin-bottom: 25px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.property-card {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.property-icon {
    width: 40px;
    height: 40px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #00d09c;
    font-size: 20px;
}

.property-value {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
}

.property-label {
    font-size: 14px;
    color: #666;
}

/* ASCII Character */
.ascii-character {
    margin-bottom: 25px;
}

.ascii-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 10px;
    padding: 20px;
    color: white;
}

.ascii-card {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.ascii-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

.ascii-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Common Values Table */
.common-values-table {
    margin-top: 25px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Ingredient Converter */
    .type-options,
    .adjustment-options,
    .portion-options,
    .system-options,
    .number-options,
    .bit-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .conversion-grid,
    .portion-grid,
    .nutrition-grid,
    .recommendation-grid,
    .conversion-grid,
    .properties-grid,
    .ascii-grid,
    .complement-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ingredient-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .summary-details {
        flex-direction: column;
        gap: 15px;
    }

    .detail-item.arrow {
        padding: 10px 0;
        transform: rotate(90deg);
    }

    .bit-grid {
        grid-template-columns: repeat(16, 1fr);
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .type-options,
    .adjustment-options,
    .portion-options,
    .system-options,
    .number-options,
    .bit-options,
    .density-options {
        grid-template-columns: 1fr;
    }

    .conversion-summary,
    .properties-grid,
    .ascii-grid,
    .complement-grid {
        grid-template-columns: 1fr;
    }

    .bit-grid {
        grid-template-columns: repeat(8, 1fr);
        font-size: 10px;
    }

    .conversion-value {
        font-size: 18px;
    }

    .summary-factor {
        font-size: 32px;
    }
}

/* =========================================== */
/* Retirement Planner Specific */
/* =========================================== */

.retirement-summary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

.summary-header h3 {
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.key-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.result-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.result-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 24px;
}

.result-content {
    flex: 1;
}

.result-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.result-value {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.investment-strategy {
    margin: 25px 0;
}

.strategy-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.strategy-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

    .strategy-card.recommended {
        border-color: #00d09c;
        border-width: 2px;
    }

    .strategy-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .strategy-card.recommended h4 {
        color: #00d09c;
    }

.strategy-details p {
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.strategy-details strong {
    color: #222;
    font-weight: 600;
}

.success {
    color: #00d09c;
    font-weight: 600;
}

.action-plan {
    margin: 25px 0;
}

.plan-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plan-step {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #00d09c;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #00d09c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content h5 {
    color: #222;
    margin-bottom: 8px;
    font-size: 16px;
}

.step-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Planning Components */
.planning-components {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.component-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .component-card h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .component-card p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* =========================================== */
/* Pension Calculator Specific */
/* =========================================== */

.pension-type-selector {
    margin: 15px 0;
}

.pension-summary {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
    text-align: center;
}

.summary-main {
    margin-bottom: 20px;
}

.summary-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.summary-amount {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
}

.summary-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.benefits-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.benefit-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 24px;
}

.benefit-content {
    flex: 1;
}

.benefit-value {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
}

.benefit-label {
    font-size: 14px;
    color: #666;
}

.pension-calculation {
    margin: 25px 0;
}

.calculation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.calculation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #00d09c;
}

.calculation-label {
    font-size: 14px;
    color: #666;
}

.calculation-value {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.gratuity-calculation,
.nps-calculation {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.gratuity-details,
.nps-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gratuity-item,
.nps-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .gratuity-item.total,
    .nps-item.total {
        grid-column: span 2;
        text-align: center;
        padding-top: 15px;
        border-top: 2px solid #e0e0e0;
    }

.gratuity-label,
.nps-label {
    font-size: 14px;
    color: #666;
}

.gratuity-value,
.nps-value {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.gratuity-item.total .gratuity-value,
.nps-item.total .nps-value {
    color: #00d09c;
    font-size: 22px;
}

/* Scheme Types */
.scheme-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.scheme-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

    .scheme-card h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .scheme-card p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

.scheme-formula {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    border-left: 3px solid #00d09c;
}

/* =========================================== */
/* EPF Calculator Specific */
/* =========================================== */

.epf-summary {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
    text-align: center;
}

.contribution-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.contribution-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

    .contribution-card.employee {
        border-top: 4px solid #00d09c;
    }

    .contribution-card.employer {
        border-top: 4px solid #4a5568;
    }

    .contribution-card.interest {
        border-top: 4px solid #f56565;
    }

.contribution-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.contribution-card.employee .contribution-icon {
    background: #f0f9f6;
    color: #00d09c;
}

.contribution-card.employer .contribution-icon {
    background: #f8f9fa;
    color: #4a5568;
}

.contribution-card.interest .contribution-icon {
    background: #fef2f2;
    color: #f56565;
}

.contribution-content {
    flex: 1;
}

.contribution-value {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
}

.contribution-label {
    font-size: 14px;
    color: #666;
}

.contribution-details {
    margin: 25px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #00d09c;
}

.detail-label {
    font-size: 14px;
    color: #666;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.yearly-projection {
    margin: 25px 0;
}

.projection-table .table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.projection-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.projection-table th {
    background-color: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #444;
    border-bottom: 1px solid #e0e0e0;
}

.projection-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.projection-table tbody tr:hover {
    background-color: #f9f9f9;
}

.projection-table tbody tr:last-child td {
    border-bottom: none;
}

.tax-benefits {
    margin: 25px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.benefit-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .benefit-item h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .benefit-item p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

.withdrawal-rules {
    margin: 25px 0;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rule-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

    .rule-item h5 {
        color: #222;
        margin-bottom: 10px;
        font-size: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .rule-item p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* Contribution Structure */
.contribution-structure {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.structure-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .structure-item h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
    }

    .structure-item p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .summary-stats,
    .key-results,
    .benefits-breakdown,
    .contribution-breakdown,
    .strategy-cards,
    .planning-components,
    .scheme-types,
    .benefits-grid,
    .rules-grid,
    .contribution-structure {
        grid-template-columns: 1fr;
    }

    .calculation-grid,
    .gratuity-details,
    .nps-details,
    .details-grid {
        grid-template-columns: 1fr;
    }

    .gratuity-item.total,
    .nps-item.total {
        grid-column: span 1;
    }

    .summary-amount,
    .stat-value {
        font-size: 32px;
    }

    .benefit-value,
    .contribution-value,
    .calculation-value,
    .gratuity-value,
    .nps-value,
    .detail-value {
        font-size: 18px;
    }

    .plan-step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .projection-table {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .summary-amount {
        font-size: 28px;
    }

    .stat-value {
        font-size: 24px;
    }

    .projection-table th,
    .projection-table td {
        padding: 8px 10px;
    }
}

/* =========================================== */
/* Portfolio Tracker Specific */
/* =========================================== */

/* Investment Type Selector */
.investment-type-selector {
    margin: 15px 0;
}

.type-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .type-btn:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

    .type-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
        box-shadow: 0 5px 15px rgba(0, 208, 156, 0.1);
    }

    .type-btn i {
        font-size: 20px;
        color: #666;
        margin-bottom: 8px;
    }

    .type-btn.active i {
        color: #00d09c;
    }

    .type-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .type-btn small {
        font-size: 11px;
        color: #888;
        line-height: 1.3;
    }

/* Investment Details Grid */
.investment-details-grid,
.purchase-details-grid,
.current-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 15px 0;
}

/* Category Selector */
.category-selector,
.category-options {
    margin: 15px 0;
}

.category-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .category-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .category-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

    .category-btn i {
        font-size: 18px;
        margin-bottom: 5px;
    }

/* Portfolio List */
.portfolio-list-container {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.portfolio-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 15px;
}

    .portfolio-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .portfolio-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .portfolio-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .portfolio-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .portfolio-table .positive {
        color: #00d09c;
        font-weight: 600;
    }

    .portfolio-table .negative {
        color: #f56565;
        font-weight: 600;
    }

.investment-name {
    display: flex;
    flex-direction: column;
}

    .investment-name strong {
        color: #222;
        font-size: 14px;
    }

    .investment-name small {
        color: #666;
        font-size: 12px;
    }

.edit-btn, .delete-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
    margin: 0 2px;
    transition: color 0.3s;
}

    .edit-btn:hover {
        color: #00d09c;
    }

    .delete-btn:hover {
        color: #f56565;
    }

/* Performance Metrics */
.performance-metrics {
    margin: 25px 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.metric-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border-top: 4px solid #00d09c;
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 13px;
    color: #666;
}

/* Top Performers */
.top-performers {
    margin: 25px 0;
}

.performers-list {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.performer-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #00d09c;
}

    .performer-item:last-child {
        margin-bottom: 0;
    }

.performer-rank {
    font-size: 24px;
}

.performer-info {
    flex: 1;
}

    .performer-info strong {
        color: #222;
        font-size: 14px;
        display: block;
        margin-bottom: 5px;
    }

.performer-returns {
    font-weight: 600;
    font-size: 16px;
}

/* Export Options */
.export-options {
    margin: 25px 0;
}

.export-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.export-btn {
    background: #4a5568;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

    .export-btn:hover {
        background: #2d3748;
    }

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.feature-card {
    text-align: center;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #00d09c;
    font-size: 32px;
}

.feature-card h4 {
    font-size: 18px;
    color: #222;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Metrics Explained */
.metrics-explained {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.metric-explanation {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #00d09c;
}

    .metric-explanation h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .metric-explanation h4 i {
            color: #00d09c;
        }

    .metric-explanation p {
        color: #666;
        font-size: 14px;
        line-height: 1.6;
        margin: 0;
    }

/* Responsive adjustments for Portfolio Tracker */
@media (max-width: 768px) {
    .type-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .investment-details-grid,
    .purchase-details-grid,
    .current-details-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-table {
        font-size: 12px;
    }

        .portfolio-table th,
        .portfolio-table td {
            padding: 8px 10px;
        }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .export-buttons {
        flex-direction: column;
    }

    .export-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .type-options,
    .category-options {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .performer-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* =========================================== */
/* Mutual Fund Returns Specific */
/* =========================================== */

/* Category Selector for MF */
.category-selector {
    margin: 15px 0;
}

.category-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .category-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .category-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

    .category-btn i {
        font-size: 18px;
        margin-bottom: 5px;
    }

/* Tax Settings */
.tax-settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tax-option {
    display: flex;
    align-items: center;
}

/* MF Results */
.mf-results {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* Expense Impact */
.expense-impact {
    margin: 25px 0;
}

.impact-comparison {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.impact-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.impact-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.impact-value {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.impact-difference {
    font-size: 13px;
    color: #00d09c;
    font-weight: 600;
}

/* Fund Comparison */
.fund-comparison {
    margin: 25px 0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.comparison-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.comparison-header {
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .comparison-header.equity {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .comparison-header.debt {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }

    .comparison-header.hybrid {
        background: linear-gradient(135deg, #ed8936 0%, #ed64a6 100%);
    }

    .comparison-header h4 {
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
    }

.comparison-return {
    font-weight: 700;
    font-size: 14px;
    opacity: 0.9;
}

.comparison-body {
    padding: 15px;
}

    .comparison-body p {
        color: #666;
        font-size: 13px;
        line-height: 1.5;
        margin: 0;
    }

/* Factors Grid */
.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.factor-card {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #00d09c;
}

.factor-icon {
    width: 60px;
    height: 60px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #00d09c;
    font-size: 24px;
}

.factor-card h4 {
    font-size: 16px;
    color: #222;
    margin-bottom: 10px;
}

.factor-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Investment Types */
.investment-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.type-detail {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #00d09c;
}

    .type-detail h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .type-detail h4 i {
            color: #00d09c;
        }

    .type-detail p {
        color: #666;
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
    }

.type-formula {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #00b386;
    border-left: 3px solid #00d09c;
}

/* Tax Info Grid */
.tax-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tax-info-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #00d09c;
}

    .tax-info-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .tax-info-card h4 i {
            color: #00d09c;
        }

    .tax-info-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .tax-info-card li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .tax-info-card li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Responsive adjustments for Mutual Fund Returns */
@media (max-width: 768px) {
    .category-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .impact-comparison,
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .factors-grid,
    .investment-types,
    .tax-info-grid {
        grid-template-columns: 1fr;
    }

    .result-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .category-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .tax-settings {
        flex-direction: column;
    }
}

/* =========================================== */
/* Stock Returns Specific */
/* =========================================== */

/* Purchase Details Grid */
.purchase-details-grid,
.current-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 15px 0;
}

/* Dividend Settings */
.dividend-settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dividend-option {
    display: flex;
    align-items: center;
}

/* Stock Results */
.stock-results {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

/* Returns Breakdown */
.returns-breakdown {
    margin: 25px 0;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .breakdown-item.total {
        border-color: #00d09c;
        background: #f0f9f6;
    }

.breakdown-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.breakdown-value {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.breakdown-item.total .breakdown-value {
    color: #00d09c;
    font-size: 20px;
}

/* Performance Table */
.performance-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 15px;
}

.performance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .performance-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .performance-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .performance-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .performance-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Comparison Scenarios */
.comparison-scenarios {
    margin: 25px 0;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.scenario-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.scenario-header {
    padding: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .scenario-header.optimistic {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .scenario-header.moderate {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }

    .scenario-header.conservative {
        background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
    }

    .scenario-header h4 {
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
    }

.scenario-return {
    font-weight: 700;
    font-size: 12px;
    opacity: 0.9;
}

.scenario-body {
    padding: 15px;
}

    .scenario-body p {
        color: #555;
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 5px;
    }

        .scenario-body p:last-child {
            margin-bottom: 0;
        }

/* Components Grid */
.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.component-card {
    text-align: center;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.component-icon {
    width: 70px;
    height: 70px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #00d09c;
    font-size: 32px;
}

.component-card h4 {
    font-size: 18px;
    color: #222;
    margin-bottom: 15px;
}

.component-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Calculation Formulas */
.calculation-formulas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.formula-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #00d09c;
}

    .formula-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .formula-card h4 i {
            color: #00d09c;
        }

.formula {
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #00b386;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
}

.example {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    font-style: italic;
}

/* Tax Implications */
.tax-implications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tax-type {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #00d09c;
}

    .tax-type h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .tax-type h4 i {
            color: #00d09c;
        }

    .tax-type ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .tax-type li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .tax-type li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Responsive adjustments for Stock Returns */
@media (max-width: 768px) {
    .purchase-details-grid,
    .current-details-grid {
        grid-template-columns: 1fr;
    }

    .breakdown-grid,
    .scenarios-grid {
        grid-template-columns: 1fr;
    }

    .components-grid,
    .calculation-formulas,
    .tax-implications {
        grid-template-columns: 1fr;
    }

    .performance-table {
        font-size: 12px;
    }

        .performance-table th,
        .performance-table td {
            padding: 8px 10px;
        }
}

@media (max-width: 480px) {
    .dividend-settings {
        flex-direction: column;
    }

    .breakdown-item {
        padding: 10px;
    }

    .breakdown-value {
        font-size: 16px;
    }
}


/* =========================================== */
/* Withdrawal Planning Specific */
/* =========================================== */

/* Safety Analysis */
.safety-analysis {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.safety-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 5px solid #00d09c;
}

    .safety-card.safe {
        border-left-color: #00d09c;
    }

    .safety-card.warning {
        border-left-color: #ed8936;
    }

    .safety-card.danger {
        border-left-color: #f56565;
    }

.safety-icon {
    width: 60px;
    height: 60px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 28px;
}

.safety-card.warning .safety-icon {
    background: #fef3e2;
    color: #ed8936;
}

.safety-card.danger .safety-icon {
    background: #fee;
    color: #f56565;
}

.safety-content {
    flex: 1;
}

.safety-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.safety-value {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.safety-desc {
    font-size: 14px;
    color: #666;
}

.success-rate {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rate-value {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
}

.rate-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Key Metrics */
.key-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.metric-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.metric-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 24px;
}

.metric-content {
    flex: 1;
}

.metric-value {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 14px;
    color: #666;
}

/* Strategy Selector */
.strategy-selector {
    margin: 15px 0;
}

.strategy-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.strategy-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .strategy-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .strategy-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .strategy-btn i {
        font-size: 20px;
        color: #666;
        margin-bottom: 8px;
    }

    .strategy-btn.active i {
        color: #00d09c;
    }

    .strategy-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .strategy-btn small {
        font-size: 11px;
        color: #888;
        line-height: 1.3;
    }

/* Projection Table */
.projection-section {
    margin: 30px 0;
}

.projection-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 15px;
}

    .projection-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .projection-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .projection-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .projection-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .projection-table tbody tr:last-child td {
        border-bottom: none;
    }

    .projection-table .summary-row {
        background-color: #f8f9fa;
        border-top: 2px solid #e0e0e0;
    }

        .projection-table .summary-row td {
            font-weight: 600;
            color: #222;
        }

/* Recommendations Grid */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.recommendation-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #00d09c;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.recommendation-icon {
    width: 40px;
    height: 40px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 20px;
    flex-shrink: 0;
}

.recommendation-content {
    flex: 1;
}

    .recommendation-content h4 {
        color: #222;
        margin-bottom: 8px;
        font-size: 16px;
    }

    .recommendation-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* Guidelines Table */
.guidelines-table {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .guidelines-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .guidelines-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .guidelines-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .guidelines-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .guidelines-table tbody tr:last-child td {
        border-bottom: none;
    }

/* =========================================== */
/* Tax Saving Investments Specific */
/* =========================================== */

/* Section Groups */
.section-group {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #00d09c;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

    .section-title i {
        color: #00d09c;
    }

/* Investment Items */
.investment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

    .investment-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.investment-label {
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .investment-label span {
        font-weight: 500;
        color: #333;
        font-size: 14px;
        margin-bottom: 3px;
    }

    .investment-label small {
        font-size: 12px;
        color: #888;
    }

.investment-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .investment-input .text-input {
        width: 150px;
        text-align: right;
    }

        .investment-input .text-input.small {
            width: 120px;
        }

/* Total Section */
.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid #e0e0e0;
    font-weight: 600;
    color: #222;
    font-size: 16px;
}

/* Regime Selector */
.regime-selector {
    margin: 15px 0;
}

.regime-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.regime-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .regime-btn:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

    .regime-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
        box-shadow: 0 5px 15px rgba(0, 208, 156, 0.1);
    }

    .regime-btn i {
        font-size: 24px;
        color: #666;
        margin-bottom: 10px;
    }

    .regime-btn.active i {
        color: #00d09c;
    }

    .regime-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 5px;
        font-size: 16px;
    }

    .regime-btn small {
        font-size: 12px;
        color: #888;
        line-height: 1.3;
    }

/* Tax Savings Summary */
.tax-savings-summary {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

.savings-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.savings-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.savings-content {
    flex: 1;
}

.savings-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.savings-amount {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
}

.savings-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.savings-breakdown {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .breakdown-item:last-child {
        border-bottom: none;
    }

    .breakdown-item.total {
        padding-top: 15px;
        border-top: 2px solid rgba(255, 255, 255, 0.3);
        font-size: 18px;
        font-weight: 600;
    }

/* Deduction Breakdown */
.deduction-breakdown {
    margin-bottom: 30px;
}

.breakdown-chart {
    height: 200px;
    margin-bottom: 20px;
}

.deduction-list {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.deduction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

    .deduction-item:last-child {
        border-bottom: none;
    }

.deduction-savings {
    background: #00d09c;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Sections Grid */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.section-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.section-header {
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .section-header.80c {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .section-header.80d {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }

    .section-header.nps {
        background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
    }

    .section-header h4 {
        font-size: 18px;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.section-limit {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.section-content {
    padding: 20px;
}

    .section-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .section-content li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
        line-height: 1.4;
    }

        .section-content li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tip-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border-top: 4px solid #00d09c;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

    .tip-card h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .tip-card h4 i {
            color: #00d09c;
        }

    .tip-card p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* Tax Slabs */
.tax-slabs-section {
    margin: 30px 0;
}

.slabs-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 15px;
}

    .slabs-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .slabs-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .slabs-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .slabs-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .slabs-table tbody tr:last-child td {
        border-bottom: none;
    }

/* =========================================== */
/* Capital Gains Specific */
/* =========================================== */

/* Asset Type Selector */
.asset-type-selector {
    margin: 15px 0;
}

.asset-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.asset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .asset-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .asset-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .asset-btn i {
        font-size: 20px;
        color: #666;
        margin-bottom: 8px;
    }

    .asset-btn.active i {
        color: #00d09c;
    }

    .asset-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .asset-btn small {
        font-size: 11px;
        color: #888;
        line-height: 1.3;
    }

/* Gains Summary */
.gains-summary {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.gains-card, .tax-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 5px solid #00d09c;
}

.tax-card {
    border-left-color: #4a5568;
}

.gains-icon, .tax-icon {
    width: 60px;
    height: 60px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 28px;
}

.tax-icon {
    background: #f8f9fa;
    color: #4a5568;
}

.gains-content, .tax-content {
    flex: 1;
}

.gains-label, .tax-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.gains-amount, .tax-amount {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.gains-type, .tax-rate {
    font-size: 14px;
    color: #666;
}

/* Calculation Breakdown */
.calculation-breakdown {
    margin-bottom: 30px;
}

.breakdown-steps {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

    .step:last-child {
        border-bottom: none;
    }

    .step.total {
        padding-top: 15px;
        border-top: 2px solid #e0e0e0;
        font-size: 16px;
        font-weight: 600;
    }

.step-label {
    font-size: 14px;
    color: #666;
}

.step-value {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.step.total .step-value {
    color: #00d09c;
    font-size: 18px;
}

/* Tax Calculation */
.tax-calculation {
    margin-bottom: 30px;
}

.tax-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.tax-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

    .tax-item:last-child {
        border-bottom: none;
    }

    .tax-item.total {
        padding-top: 15px;
        border-top: 2px solid #e0e0e0;
        font-size: 16px;
        font-weight: 600;
    }

/* Exemption Details */
.exemption-details {
    background: #f0f9f6;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #00d09c;
}

.exemption-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #d4f0e9;
}

    .exemption-item:last-child {
        border-bottom: none;
    }

/* Holding Period Analysis */
.holding-period-section {
    margin-bottom: 30px;
}

.period-analysis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.period-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.period-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.period-value {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

/* Gains Types Grid */
.gains-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.type-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.type-header {
    padding: 20px;
    color: white;
}

    .type-header.stcg {
        background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
    }

    .type-header.ltcg {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .type-header h4 {
        font-size: 18px;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.type-content {
    padding: 20px;
}

    .type-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .type-content li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
        line-height: 1.4;
    }

        .type-content li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

.type-header.stcg + .type-content li:before {
    color: #f56565;
}

/* Exemptions Grid */
.exemptions-grid {
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    gap: 20px;
    margin: 20px 0;
}

.exemption-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #00d09c;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

    .exemption-card h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .exemption-card h4 i {
            color: #00d09c;
        }

    .exemption-card p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

.exemption-details {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    border-left: 3px solid #00d09c;
}

/* Indexation Explanation */
.indexation-explanation {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.indexation-formula {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
    font-family: 'Courier New', monospace;
    color: #222;
    border: 1px solid #e0e0e0;
}

.cii-table {
    margin-top: 20px;
}

    .cii-table h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
    }

    .cii-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .cii-table th {
        background-color: #f0f9f6;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 2px solid #d4f0e9;
    }

    .cii-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
        color: #555;
    }

    .cii-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .cii-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Toggle Items */
.toggle-item {
    margin-bottom: 15px;
}

.toggle-info {
    background: #f0f9f6;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    border-left: 3px solid #00d09c;
}

    .toggle-info i {
        color: #00d09c;
        font-size: 16px;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .safety-analysis,
    .key-metrics,
    .gains-summary {
        grid-template-columns: 1fr;
    }

    .strategy-options,
    .asset-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .regime-options {
        grid-template-columns: 1fr;
    }

    .sections-grid,
    .gains-types-grid,
    .exemptions-grid {
        grid-template-columns: 1fr;
    }

    .period-analysis {
        grid-template-columns: 1fr;
    }

    .investment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .investment-input {
        width: 100%;
    }

        .investment-input .text-input {
            width: 100%;
        }
}

@media (max-width: 480px) {
    .strategy-options,
    .asset-options {
        grid-template-columns: 1fr;
    }

    .savings-amount,
    .gains-amount,
    .tax-amount {
        font-size: 24px;
    }

    .rate-value {
        font-size: 32px;
    }
}

/* =========================================== */
/* TDS Calculator Specific */
/* =========================================== */

/* TDS Category Selector */
.tds-category-selector {
    margin: 15px 0;
}

.category-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .category-btn:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

    .category-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
        box-shadow: 0 5px 15px rgba(0, 208, 156, 0.1);
    }

    .category-btn i {
        font-size: 24px;
        color: #666;
        margin-bottom: 10px;
    }

    .category-btn.active i {
        color: #00d09c;
    }

    .category-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 5px;
        font-size: 16px;
    }

    .category-btn small {
        font-size: 12px;
        color: #888;
        line-height: 1.3;
    }

/* Financial Year Selector */
.financial-year-selector {
    margin: 15px 0;
}

.year-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.year-btn {
    padding: 15px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .year-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .year-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

/* PAN Information */
.pan-info {
    background: #f0f9f6;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid #00d09c;
    margin-top: 10px;
}

    .pan-info i {
        color: #00d09c;
        font-size: 16px;
    }

/* Salary Components */
.salary-components {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s;
}

.checkbox-label input:checked + .checkbox-custom {
    background: #00d09c;
    border-color: #00d09c;
}

    .checkbox-label input:checked + .checkbox-custom:after {
        content: '✓';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 12px;
        font-weight: bold;
    }

/* Interest Type Selector */
.interest-type-selector {
    margin: 15px 0;
}

.interest-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
}

.interest-btn {
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .interest-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .interest-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

/* TDS Results */
.tds-results {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

.tds-main {
    text-align: center;
    margin-bottom: 25px;
}

.tds-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.tds-amount {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
}

.tds-rate {
    font-size: 20px;
    opacity: 0.9;
    font-weight: 600;
}

.payment-breakdown {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .payment-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .payment-item.net {
        border-top: 2px solid rgba(255, 255, 255, 0.3);
        padding-top: 20px;
        font-size: 18px;
        font-weight: 600;
    }

    .payment-item span {
        font-size: 15px;
        opacity: 0.9;
    }

    .payment-item strong {
        font-size: 18px;
        font-weight: 700;
    }

    .payment-item.tds strong {
        color: #ffd54f;
    }

    .payment-item.net strong {
        font-size: 22px;
    }

/* TDS Summary */
.tds-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

/* Due Dates Information */
.due-dates-info {
    margin-bottom: 25px;
}

.due-dates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.due-date-card {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.due-date-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #00d09c;
    font-size: 24px;
}

.due-date-content h4 {
    font-size: 14px;
    color: #222;
    margin-bottom: 5px;
}

.due-date-content p {
    font-size: 16px;
    font-weight: 600;
    color: #00d09c;
    margin-bottom: 5px;
}

.due-date-content small {
    font-size: 12px;
    color: #888;
}

/* PAN Warning */
.pan-warning {
    margin-bottom: 25px;
}

.warning-card {
    background: #fff8e1;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #ffd54f;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.warning-icon {
    width: 50px;
    height: 50px;
    background: #ffd54f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 24px;
    flex-shrink: 0;
}

.warning-content {
    flex: 1;
}

    .warning-content h4 {
        color: #222;
        margin-bottom: 8px;
        font-size: 18px;
    }

    .warning-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

.warning-action {
    margin-top: 10px;
}

/* TDS Rates Table */
.tds-rates-table {
    margin-top: 25px;
}

/* TDS Sections Grid */
.tds-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.section-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

    .section-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .section-card h4 i {
            color: #00d09c;
        }

    .section-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .section-card li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .section-card li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

        .section-card li strong {
            color: #333;
        }

/* TDS Rules Grid */
.tds-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.rule-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .rule-card h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .rule-card h4 i {
            color: #00d09c;
        }

    .rule-card p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-options {
        grid-template-columns: 1fr;
    }

    .year-options,
    .interest-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .tds-amount {
        font-size: 32px;
    }

    .tds-rate {
        font-size: 16px;
    }

    .tds-summary,
    .due-dates-grid {
        grid-template-columns: 1fr;
    }

    .payment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

        .payment-item strong {
            align-self: flex-end;
        }

    .warning-card {
        flex-direction: column;
        text-align: center;
    }

    .warning-icon {
        margin: 0 auto;
    }

    .tds-sections-grid,
    .tds-rules-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .salary-components {
        grid-template-columns: 1fr;
    }

    .year-options,
    .interest-options {
        grid-template-columns: 1fr;
    }
}

/* =========================================== */
/* Savings Calculator Specific */
/* =========================================== */

/* Frequency Options */
.frequency-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
}

.frequency-btn {
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .frequency-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .frequency-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

/* Progress Bar for Goals */
.progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: #00d09c;
    border-radius: 5px;
    transition: width 0.3s;
}

.progress-label {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 5px;
}

/* Status Labels */
.status-building {
    background: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-good-start {
    background: #d1ecf1;
    color: #0c5460;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-secure {
    background: #d4edda;
    color: #155724;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Timeline for Progress */
.progress-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.timeline-year {
    width: 70px;
    font-weight: 600;
    color: #222;
    font-size: 14px;
}

.timeline-content {
    flex: 1;
}

/* Progress Container */
.progress-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.progress-milestones {
    position: relative;
    height: 30px;
    margin-top: 15px;
}

.milestone {
    position: absolute;
    transform: translateX(-50%);
}

.milestone-dot {
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid #00d09c;
    border-radius: 50%;
    margin-bottom: 5px;
}

.milestone-label {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    transform: translateX(-50%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .frequency-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .progress-timeline {
        gap: 15px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 5px;
    }

    .timeline-year {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .frequency-options {
        grid-template-columns: 1fr;
    }

    .progress-labels {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
}

/* =========================================== */
/* Budget Planner Specific */
/* =========================================== */

/* Expense Category Sliders */
.expense-category {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.category-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

    .category-name i {
        color: #00d09c;
        width: 20px;
        text-align: center;
    }

.category-percentage {
    font-weight: 700;
    color: #00d09c;
    font-size: 16px;
    min-width: 50px;
    text-align: right;
}

.category-slider {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .category-slider .slider-wrapper {
        flex: 1;
        position: relative;
    }

.category-amount {
    width: 120px;
    text-align: right;
    font-weight: 600;
    color: #222;
    font-size: 14px;
    min-width: 100px;
}

.category-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    margin-top: 20px;
    border: 2px solid #e0e0e0;
    font-weight: 600;
    font-size: 16px;
}

    .category-total span {
        color: #555;
    }

    .category-total strong {
        color: #00d09c;
        margin-left: 10px;
    }

/* Budget Period Selector */
.budget-period-selector {
    margin: 15px 0;
}

.period-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.period-btn {
    padding: 15px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
}

    .period-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .period-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

/* Financial Goals */
.financial-goals {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}

.goal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

    .goal-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .goal-item .checkbox-label {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        font-size: 14px;
        color: #555;
    }

.goal-amount {
    font-weight: 600;
    color: #00d09c;
    font-size: 14px;
    min-width: 120px;
    text-align: right;
}

/* Budget Summary */
.budget-summary {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

.budget-main {
    text-align: center;
    margin-bottom: 25px;
}

.budget-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.budget-amount {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
}

.budget-status {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 600;
}

.budget-breakdown {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.budget-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .budget-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .budget-item.net {
        border-top: 2px solid rgba(255, 255, 255, 0.3);
        padding-top: 20px;
        font-size: 18px;
        font-weight: 600;
    }

    .budget-item span {
        font-size: 15px;
        opacity: 0.9;
    }

    .budget-item strong {
        font-size: 18px;
        font-weight: 700;
    }

    .budget-item.savings strong {
        color: #ffd54f;
    }

    .budget-item.net strong {
        font-size: 22px;
    }

/* Savings Rate */
.savings-rate {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.rate-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.rate-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 24px;
}

.rate-content {
    flex: 1;
}

.rate-value {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.rate-label {
    font-size: 14px;
    color: #666;
}

/* Expense Breakdown */
.expense-breakdown {
    margin-bottom: 25px;
}

.breakdown-grid {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.breakdown-category {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

    .breakdown-category:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.category-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.category-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.category-percent {
    font-weight: 700;
    color: #00d09c;
    font-size: 14px;
}

.category-bar {
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.bar-fill {
    height: 100%;
    border-radius: 10px;
}

.housing-fill {
    background: #00d09c;
}

.transport-fill {
    background: #4a5568;
}

.food-fill {
    background: #f56565;
}

.health-fill {
    background: #ed8936;
}

.entertainment-fill {
    background: #9f7aea;
}

.savings-fill {
    background: #4299e1;
}

.category-amount {
    text-align: right;
    font-weight: 600;
    color: #222;
    font-size: 14px;
}

/* Budget Recommendations */
.budget-recommendations {
    margin-bottom: 25px;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.recommendation-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.recommendation-icon {
    width: 40px;
    height: 40px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 18px;
    flex-shrink: 0;
}

.recommendation-content {
    flex: 1;
}

    .recommendation-content h4 {
        color: #222;
        margin-bottom: 5px;
        font-size: 14px;
    }

    .recommendation-content p {
        color: #666;
        font-size: 13px;
        line-height: 1.4;
        margin: 0;
    }

/* Monthly Projections */
.monthly-projections {
    margin-bottom: 25px;
}

/* Download Budget */
.download-budget {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.download-btn {
    background: #00d09c;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    transition: background 0.3s;
}

    .download-btn:hover {
        background: #00b386;
    }

    .download-btn:nth-child(2) {
        background: #4a5568;
    }

        .download-btn:nth-child(2):hover {
            background: #2d3748;
        }

/* Budgeting Methods */
.budgeting-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.method-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.method-header {
    padding: 20px;
    background: linear-gradient(135deg, #f0f9f6 0%, #e6f4f1 100%);
    border-bottom: 1px solid #d4f0e9;
}

    .method-header h4 {
        color: #222;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
    }

        .method-header h4 i {
            color: #00d09c;
        }

.method-content {
    padding: 20px;
}

    .method-content ul {
        list-style: none;
        padding: 0;
        margin: 0 0 15px 0;
    }

    .method-content li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .method-content li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
        }

        .method-content li strong {
            color: #333;
        }

.method-tip {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    border-left: 3px solid #00d09c;
    font-style: italic;
}

/* Expense Guidelines */
.expense-guidelines {
    margin: 20px 0;
}

.guideline-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .guideline-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .guideline-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .guideline-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .guideline-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .guideline-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Budgeting Tips */
.budgeting-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tip-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

.tip-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 24px;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
}

    .tip-content h4 {
        color: #222;
        margin-bottom: 8px;
        font-size: 16px;
    }

    .tip-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* Emergency Fund Guide */
.emergency-fund-guide {
    margin: 20px 0;
}

.fund-stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.fund-stage {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
    text-align: center;
}

    .fund-stage h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
    }

    .fund-stage p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 5px;
    }

        .fund-stage p strong {
            color: #00d09c;
            font-size: 16px;
        }

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-slider {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .category-amount {
        text-align: left;
        order: -1;
    }

    .period-options,
    .recommendations-grid {
        grid-template-columns: 1fr;
    }

    .budget-amount {
        font-size: 32px;
    }

    .budget-status {
        font-size: 16px;
    }

    .savings-rate {
        grid-template-columns: 1fr;
    }

    .budget-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

        .budget-item strong {
            align-self: flex-end;
        }

    .download-budget {
        flex-direction: column;
    }

    .budgeting-methods,
    .budgeting-tips,
    .fund-stages {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .category-total {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .guideline-table {
        font-size: 12px;
    }

        .guideline-table th,
        .guideline-table td {
            padding: 8px 10px;
        }

    .tip-card {
        flex-direction: column;
        text-align: center;
    }

    .tip-icon {
        margin: 0 auto;
    }
}

/* =========================================== */
/* Loan Comparison Calculator Specific */
/* =========================================== */

/* Loan Type Selector */
.loan-type-selector {
    margin: 15px 0;
}

.loan-title {
    font-size: 18px;
    color: #222;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Add/Remove Buttons */
.add-btn {
    background: #f8f9fa;
    color: #00d09c;
    border: 2px dashed #00d09c;
    padding: 15px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .add-btn:hover {
        background: #f0f9f6;
        border-color: #00b386;
    }

.remove-loan-btn, .remove-debt-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Loan Details Group */
.loan-details-group, .debt-details-group {
    position: relative;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

/* Comparison Summary */
.comparison-summary {
    margin-bottom: 30px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.summary-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    position: relative;
}

    .summary-card.first {
        border-color: #00d09c;
        box-shadow: 0 5px 15px rgba(0, 208, 156, 0.1);
    }

    .summary-card.second {
        border-color: #4a5568;
    }

    .summary-card.third {
        border-color: #ed8936;
    }

.summary-rank {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    background: #00d09c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.summary-card.second .summary-rank {
    background: #4a5568;
}

.summary-card.third .summary-rank {
    background: #ed8936;
}

.summary-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}

.summary-emi, .summary-total, .summary-interest {
    font-size: 20px;
    font-weight: 700;
    color: #00d09c;
    margin-bottom: 5px;
}

.summary-card.second .summary-emi,
.summary-card.second .summary-total,
.summary-card.second .summary-interest {
    color: #4a5568;
}

/* Detailed Comparison */
.detailed-comparison {
    margin-bottom: 30px;
}

/* Recommendation Card */
.recommendation-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.recommendation-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.recommendation-icon {
    width: 60px;
    height: 60px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 28px;
}

.recommendation-header h4 {
    font-size: 20px;
    color: #222;
    margin-bottom: 5px;
}

.recommendation-subtitle {
    color: #666;
    font-size: 14px;
}

.recommendation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

    .detail-item span {
        color: #666;
        font-size: 14px;
    }

    .detail-item strong {
        color: #222;
        font-size: 16px;
        font-weight: 600;
    }

    .detail-item .savings {
        color: #00d09c;
    }

.recommendation-tips {
    background: #fff8e1;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #ffd54f;
}

    .recommendation-tips p {
        color: #666;
        font-size: 14px;
        margin: 0;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

/* =========================================== */
/* Debt Consolidation Calculator Specific */
/* =========================================== */

/* Savings Summary */
.savings-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.savings-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.savings-icon {
    width: 60px;
    height: 60px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #00d09c;
    font-size: 24px;
}

.savings-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.savings-amount {
    font-size: 24px;
    font-weight: 700;
    color: #222;
}

/* Comparison Section */
.comparison-section {
    margin-bottom: 30px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comparison-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.comparison-header {
    padding: 20px;
    color: white;
}

    .comparison-header.current {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }

    .comparison-header.consolidated {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .comparison-header h4 {
        font-size: 18px;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
    }

.comparison-content {
    padding: 20px;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

    .comparison-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .comparison-item span {
        color: #666;
        font-size: 14px;
    }

    .comparison-item strong {
        color: #222;
        font-size: 16px;
        font-weight: 600;
    }

/* Debt Breakdown */
.debt-breakdown {
    margin-bottom: 30px;
}

/* Recommendations Grid */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.recommendation-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.recommendation-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #00d09c;
    font-size: 20px;
}

.recommendation-content h5 {
    font-size: 16px;
    color: #222;
    margin-bottom: 8px;
}

.recommendation-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* =========================================== */
/* Prepayment Calculator Specific */
/* =========================================== */

/* Frequency Selector */
.frequency-selector {
    margin: 15px 0;
}

.frequency-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.frequency-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .frequency-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .frequency-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .frequency-btn i {
        font-size: 20px;
        color: #666;
        margin-bottom: 8px;
    }

    .frequency-btn.active i {
        color: #00d09c;
    }

    .frequency-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        font-size: 14px;
    }

/* Savings Summary */
.savings-summary {
    margin-bottom: 30px;
}

.summary-main {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 12px;
    color: white;
}

.summary-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.summary-amount {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
}

.summary-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

/* Comparison Cards */
.comparison-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.comparison-card .comparison-header.original {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
}

.comparison-card .comparison-header.new {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
}

/* Detailed Savings */
.detailed-savings {
    margin-bottom: 30px;
}

.savings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.savings-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.savings-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #00d09c;
    font-size: 20px;
}

.savings-value {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.savings-label {
    font-size: 14px;
    color: #666;
}

/* Scenarios Table */
.scenarios-section {
    margin-bottom: 30px;
}

.scenarios-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .scenarios-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .scenarios-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .scenarios-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .scenarios-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .scenarios-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Recommendations Box */
.recommendations-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid #00d09c;
}

.recommendations-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommendation {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

    .recommendation i {
        color: #00d09c;
        font-size: 16px;
        margin-top: 3px;
    }

    .recommendation span {
        color: #555;
        font-size: 14px;
        line-height: 1.5;
    }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .savings-summary,
    .comparison-grid,
    .comparison-cards,
    .savings-grid {
        grid-template-columns: 1fr;
    }

    .summary-amount {
        font-size: 32px;
    }

    .loan-details-group,
    .debt-details-group {
        padding: 20px 15px;
    }

    .remove-loan-btn,
    .remove-debt-btn {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 15px;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .type-options,
    .frequency-options {
        grid-template-columns: 1fr;
    }

    .savings-item {
        padding: 15px;
    }

    .savings-value {
        font-size: 18px;
    }
}


/* =========================================== */
/* Expense Tracker Specific */
/* =========================================== */

/* Expense Form */
.expense-form {
    margin-bottom: 30px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .category-btn:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

    .category-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
        box-shadow: 0 5px 15px rgba(0, 208, 156, 0.1);
    }

    .category-btn i {
        font-size: 20px;
        color: #666;
        margin-bottom: 8px;
    }

    .category-btn.active i {
        color: #00d09c;
    }

    .category-btn span {
        font-weight: 600;
        color: #333;
        font-size: 12px;
        line-height: 1.3;
    }

/* Date Selector */
.date-selector {
    margin: 15px 0;
}

.date-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.date-btn {
    padding: 12px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    text-align: center;
}

    .date-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .date-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

.custom-date-picker {
    margin-top: 10px;
}

.date-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

    .date-input:focus {
        outline: none;
        border-color: #00d09c;
        box-shadow: 0 0 0 3px rgba(0, 208, 156, 0.1);
    }

/* Payment Method Selector */
.payment-method-selector {
    margin: 15px 0;
}

.method-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .method-btn:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

    .method-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
        box-shadow: 0 5px 15px rgba(0, 208, 156, 0.1);
    }

    .method-btn i {
        font-size: 20px;
        color: #666;
        margin-bottom: 8px;
    }

    .method-btn.active i {
        color: #00d09c;
    }

    .method-btn span {
        font-weight: 600;
        color: #333;
        font-size: 12px;
    }

/* Button Group */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.add-btn, .income-btn, .budget-btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.add-btn {
    background: #00d09c;
    color: white;
}

    .add-btn:hover {
        background: #00b386;
    }

.income-btn {
    background: #4a5568;
    color: white;
}

    .income-btn:hover {
        background: #2d3748;
    }

.budget-btn {
    background: #9f7aea;
    color: white;
    width: 100%;
    margin-top: 10px;
}

    .budget-btn:hover {
        background: #805ad5;
    }

/* Monthly Budget Section */
.monthly-budget-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* Quick Actions */
.quick-actions {
    margin-top: 25px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .action-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
        transform: translateY(-2px);
    }

    .action-btn i {
        font-size: 20px;
        color: #666;
        margin-bottom: 8px;
    }

    .action-btn span {
        font-weight: 600;
        color: #333;
        font-size: 12px;
    }

/* Monthly Summary */
.monthly-summary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.summary-period {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .summary-period span {
        font-size: 18px;
        font-weight: 600;
    }

.period-navigation {
    display: flex;
    gap: 5px;
}

    .period-navigation button {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s;
    }

        .period-navigation button:hover {
            background: rgba(255, 255, 255, 0.3);
        }

.summary-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

    .stat-item span {
        font-size: 12px;
        opacity: 0.8;
        display: block;
        margin-bottom: 5px;
    }

    .stat-item strong {
        font-size: 18px;
        font-weight: 700;
        display: block;
    }

.summary-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.card-content {
    flex: 1;
}

.card-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.card-label {
    font-size: 14px;
    opacity: 0.8;
}

.budget-progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d09c 0%, #00b386 100%);
    border-radius: 5px;
    transition: width 0.3s;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    opacity: 0.8;
}

/* Category Breakdown */
.category-breakdown {
    margin-bottom: 25px;
}

.breakdown-grid {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.breakdown-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

    .breakdown-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.category-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.category-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

    .category-name i {
        color: #00d09c;
        width: 20px;
        text-align: center;
    }

.category-percent {
    font-weight: 700;
    color: #00d09c;
    font-size: 14px;
}

.category-bar {
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.category-amount {
    text-align: right;
    font-weight: 600;
    color: #222;
    font-size: 14px;
}

.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Recent Transactions */
.recent-transactions {
    margin-bottom: 25px;
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.filter-options select {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: white;
    cursor: pointer;
}

    .filter-options select:focus {
        outline: none;
        border-color: #00d09c;
    }

.transactions-list {
    max-height: 300px;
    overflow-y: auto;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #00d09c;
}

    .transaction-item.expense {
        border-left-color: #f56565;
    }

    .transaction-item.income {
        border-left-color: #00d09c;
    }

    .transaction-item:last-child {
        margin-bottom: 0;
    }

.transaction-icon {
    width: 40px;
    height: 40px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #00d09c;
    font-size: 18px;
}

.transaction-details {
    flex: 1;
}

.transaction-title span {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
    font-size: 14px;
}

.transaction-title small {
    color: #888;
    font-size: 12px;
}

.transaction-amount {
    font-weight: 700;
    font-size: 16px;
}

    .transaction-amount.expense {
        color: #f56565;
    }

    .transaction-amount.income {
        color: #00d09c;
    }

.transaction-delete {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s;
}

    .transaction-delete:hover {
        color: #f56565;
        background: #fff5f5;
    }

.no-transactions {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 30px;
}

.transactions-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.summary-item {
    text-align: center;
}

    .summary-item span {
        display: block;
        color: #666;
        font-size: 12px;
        margin-bottom: 5px;
    }

    .summary-item strong {
        display: block;
        color: #222;
        font-size: 16px;
        font-weight: 700;
    }

/* Spending Insights */
.spending-insights {
    margin-bottom: 25px;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.insight-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #e0e0e0;
}

.insight-icon {
    width: 40px;
    height: 40px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 18px;
    flex-shrink: 0;
}

.insight-content {
    flex: 1;
}

    .insight-content h4 {
        color: #222;
        margin-bottom: 5px;
        font-size: 14px;
    }

    .insight-content p {
        color: #333;
        font-weight: 600;
        font-size: 14px;
        margin-bottom: 3px;
    }

    .insight-content small {
        color: #666;
        font-size: 12px;
        display: block;
    }

/* Monthly Comparison */
.monthly-comparison {
    margin-bottom: 25px;
}

.comparison-chart {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    height: 250px;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.benefit-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .benefit-card h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .benefit-card h4 i {
            color: #00d09c;
        }

    .benefit-card p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* Tracking Methods */
.tracking-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.method-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.method-header {
    padding: 20px;
    background: linear-gradient(135deg, #f0f9f6 0%, #e6f4f1 100%);
    border-bottom: 1px solid #d4f0e9;
}

    .method-header h4 {
        color: #222;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
    }

        .method-header h4 i {
            color: #00d09c;
        }

.method-content {
    padding: 20px;
}

    .method-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .method-content li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .method-content li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
        }

        .method-content li strong {
            color: #333;
        }

/* Expense Categories Guide */
.expense-categories-guide {
    margin: 20px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-group {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

    .category-group h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .category-group h4 i {
            color: #00d09c;
        }

    .category-group ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .category-group li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .category-group li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
        }

        .category-group li strong {
            color: #333;
        }

/* Mistakes Grid */
.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.mistake-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #f56565;
}

    .mistake-card h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .mistake-card h4 i {
            color: #f56565;
        }

    .mistake-card p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* Tracking Schedule */
.tracking-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #00d09c;
}

.schedule-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 80px;
}

    .schedule-time i {
        font-size: 24px;
        color: #00d09c;
    }

    .schedule-time span {
        font-weight: 600;
        color: #333;
        font-size: 14px;
    }

.schedule-content {
    flex: 1;
}

    .schedule-content h4 {
        color: #222;
        margin-bottom: 8px;
        font-size: 16px;
    }

    .schedule-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-grid,
    .date-options,
    .method-options,
    .actions-grid,
    .summary-cards,
    .transactions-summary,
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .summary-stats {
        width: 100%;
        justify-content: center;
    }

    .button-group {
        flex-direction: column;
    }

    .transaction-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .transaction-icon {
        margin-right: 0;
    }

    .transaction-details {
        width: 100%;
    }

    .transaction-amount {
        margin-top: 10px;
    }

    .benefits-grid,
    .tracking-methods,
    .categories-grid,
    .mistakes-grid,
    .tracking-schedule {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .category-grid,
    .date-options,
    .method-options,
    .actions-grid,
    .summary-cards,
    .transactions-summary,
    .insights-grid {
        grid-template-columns: 1fr;
    }

    .schedule-item {
        flex-direction: column;
        text-align: center;
    }

    .schedule-time {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
}

/* Credit Card Payoff Calculator Specific */

/* Strategy Selector */
.strategy-selector {
    margin: 15px 0;
}

.strategy-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.strategy-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .strategy-btn:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

    .strategy-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
        box-shadow: 0 5px 15px rgba(0, 208, 156, 0.1);
    }

    .strategy-btn i {
        font-size: 20px;
        color: #666;
        margin-bottom: 8px;
    }

    .strategy-btn.active i {
        color: #00d09c;
    }

    .strategy-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .strategy-btn small {
        font-size: 11px;
        color: #888;
        line-height: 1.3;
    }

/* Payoff Summary */
.payoff-summary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

.summary-main {
    text-align: center;
    margin-bottom: 25px;
}

.summary-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.summary-amount {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.summary-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.cost-breakdown {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .cost-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .cost-item.total {
        border-top: 2px solid rgba(255, 255, 255, 0.3);
        padding-top: 20px;
        font-size: 18px;
    }

    .cost-item span {
        font-size: 15px;
        opacity: 0.9;
    }

    .cost-item strong {
        font-size: 18px;
        font-weight: 700;
    }

    .cost-item.total strong {
        font-size: 22px;
    }

/* Savings Summary */
.savings-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.savings-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.savings-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 24px;
}

.savings-content {
    flex: 1;
}

.savings-value {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.savings-label {
    font-size: 14px;
    color: #666;
}

/* Payoff Schedule */
.payoff-schedule {
    margin-bottom: 25px;
}

.schedule-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .schedule-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .schedule-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .schedule-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .schedule-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .schedule-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Comparison Strategies */
.comparison-strategies {
    margin-bottom: 25px;
}

.strategies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.strategy-comparison {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.strategy-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}

.strategy-time {
    font-size: 16px;
    font-weight: 700;
    color: #00d09c;
    margin-bottom: 5px;
}

.strategy-cost {
    font-size: 14px;
    color: #666;
}

/* Tips Section */
.tips-section {
    margin-top: 25px;
}

.tip-card {
    background: #fff8e1;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #ffd54f;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.tip-icon {
    width: 50px;
    height: 50px;
    background: #ffd54f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 24px;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
}

    .tip-content h4 {
        color: #222;
        margin-bottom: 8px;
        font-size: 18px;
    }

    .tip-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

.tip-action {
    margin-top: 10px;
}

.action-btn {
    background: #00d09c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background 0.3s;
}

    .action-btn:hover {
        background: #00b386;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .strategy-options {
        grid-template-columns: 1fr;
    }

    .savings-summary,
    .strategies-grid {
        grid-template-columns: 1fr;
    }

    .summary-amount {
        font-size: 28px;
    }

    .tip-card {
        flex-direction: column;
        text-align: center;
    }

    .tip-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .cost-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

        .cost-item strong {
            align-self: flex-end;
        }

    .savings-card {
        flex-direction: column;
        text-align: center;
    }

    .savings-icon {
        margin: 0 auto;
    }
}

/* Goal Planner Calculator Specific */

/* Goal Type Selector */
.goal-type-selector {
    margin: 15px 0;
}

.type-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .type-btn:hover {
        border-color: #00d09c;
        transform: translateY(-2px);
    }

    .type-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
        box-shadow: 0 5px 15px rgba(0, 208, 156, 0.1);
    }

    .type-btn i {
        font-size: 20px;
        color: #666;
        margin-bottom: 8px;
    }

    .type-btn.active i {
        color: #00d09c;
    }

    .type-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        font-size: 12px;
    }

    .type-btn small {
        font-size: 10px;
        color: #888;
        line-height: 1.2;
    }

/* Frequency Selector */
.frequency-selector {
    margin: 15px 0;
}

.frequency-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.frequency-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 5px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .frequency-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .frequency-btn.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

    .frequency-btn span {
        font-weight: 600;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .frequency-btn small {
        font-size: 11px;
        font-weight: normal;
        opacity: 0.8;
    }

/* Goal Summary */
.goal-summary {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.goal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.goal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.goal-details h3 {
    font-size: 20px;
    color: #222;
    margin-bottom: 5px;
}

.goal-details p {
    color: #666;
    font-size: 14px;
}

.goal-progress {
    margin-top: 20px;
}

.progress-bar {
    height: 12px;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d09c 0%, #00b386 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
}

    .progress-text strong {
        color: #222;
        font-weight: 600;
    }

/* Contributions Summary */
.contributions-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.contribution-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid #00d09c;
}

.contribution-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 20px;
}

.contribution-content {
    flex: 1;
}

.contribution-value {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.contribution-label {
    font-size: 14px;
    color: #666;
}

/* Timeline Breakdown */
.timeline-breakdown {
    margin-bottom: 25px;
}

.timeline-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.timeline-step {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.step-year {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}

.step-amount {
    font-size: 14px;
    font-weight: 700;
    color: #00d09c;
    margin-bottom: 8px;
}

.step-progress {
    font-size: 12px;
    color: #666;
}

/* Strategies Section */
.strategies-section {
    margin-bottom: 25px;
}

.strategies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.strategy-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.strategy-name {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.strategy-percentage {
    font-size: 20px;
    font-weight: 700;
    color: #00d09c;
    margin-bottom: 5px;
}

.strategy-amount {
    font-size: 14px;
    color: #555;
}

/* Action Plan */
.action-plan {
    margin-top: 25px;
}

.plan-card {
    background: #fff8e1;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #ffd54f;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.plan-icon {
    width: 50px;
    height: 50px;
    background: #ffd54f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 24px;
    flex-shrink: 0;
}

.plan-content {
    flex: 1;
}

    .plan-content h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 18px;
    }

    .plan-content ul {
        list-style: none;
        padding: 0;
        margin: 0 0 20px 0;
    }

    .plan-content li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
        color: #666;
        font-size: 14px;
        line-height: 1.5;
    }

        .plan-content li:before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
        }

.plan-action {
    margin-top: 15px;
}

.action-btn {
    background: #00d09c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background 0.3s;
}

    .action-btn:hover {
        background: #00b386;
    }

/* Goals Grid */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.goal-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.goal-header {
    padding: 15px;
    color: white;
}

    .goal-header.home {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .goal-header.car {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }

    .goal-header.education {
        background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
    }

    .goal-header.retirement {
        background: linear-gradient(135deg, #ed8936 0%, #ed64a6 100%);
    }

    .goal-header h4 {
        font-size: 16px;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.goal-content {
    padding: 15px;
}

    .goal-content p {
        margin: 0 0 8px 0;
        font-size: 13px;
        color: #555;
        line-height: 1.4;
    }

        .goal-content p:last-child {
            margin-bottom: 0;
        }

/* Responsive adjustments */
@media (max-width: 768px) {
    .type-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .contributions-summary,
    .timeline-steps,
    .strategies-grid {
        grid-template-columns: 1fr;
    }

    .goal-progress .progress-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .plan-card {
        flex-direction: column;
        text-align: center;
    }

    .plan-icon {
        margin: 0 auto;
    }

    .goals-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .type-options {
        grid-template-columns: 1fr;
    }

    .contribution-card {
        flex-direction: column;
        text-align: center;
    }

    .contribution-icon {
        margin: 0 auto;
    }
}

/* Net Worth Calculator Specific */

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

    .section-header h4 {
        font-size: 16px;
        color: #222;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
    }

        .section-header h4 i {
            color: #00d09c;
        }

.section-total {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Asset/Liability Items */
.asset-category,
.liability-category {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.asset-item,
.liability-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #00d09c;
}

.liability-item {
    border-left-color: #f56565;
}

.asset-label,
.liability-label {
    flex: 1;
}

    .asset-label span,
    .liability-label span {
        display: block;
        font-weight: 500;
        color: #333;
        font-size: 14px;
        margin-bottom: 3px;
    }

    .asset-label small,
    .liability-label small {
        display: block;
        font-size: 12px;
        color: #888;
    }

.asset-input,
.liability-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .asset-input .text-input,
    .liability-input .text-input {
        width: 150px;
        text-align: right;
        font-weight: 600;
    }

/* Save Options */
.save-options {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.save-btn,
.load-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    border: 2px solid #00d09c;
}

.save-btn {
    background: #00d09c;
    color: white;
}

    .save-btn:hover {
        background: #00b386;
        border-color: #00b386;
    }

.load-btn {
    background: white;
    color: #00d09c;
}

    .load-btn:hover {
        background: #f0f9f6;
    }

/* Net Worth Summary */
.net-worth-summary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

.summary-main {
    text-align: center;
    margin-bottom: 25px;
}

.summary-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.summary-amount {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
}

.summary-change {
    font-size: 14px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wealth-breakdown {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.wealth-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .wealth-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .wealth-item.net-worth {
        border-top: 2px solid rgba(255, 255, 255, 0.3);
        padding-top: 20px;
        font-size: 18px;
    }

    .wealth-item span {
        font-size: 15px;
        opacity: 0.9;
    }

    .wealth-item strong {
        font-size: 18px;
        font-weight: 700;
    }

    .wealth-item.net-worth strong {
        font-size: 22px;
        color: #00d09c;
    }

    .wealth-item.liabilities strong {
        color: #f56565;
    }

/* Allocation Section */
.allocation-section {
    margin-bottom: 25px;
}

.allocation-chart {
    height: 300px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

/* Debt Analysis */
.debt-analysis {
    margin-bottom: 25px;
}

.debt-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.debt-metric {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 14px;
    color: #666;
}

/* Financial Ratios */
.financial-ratios {
    margin-bottom: 25px;
}

.ratios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.ratio-item {
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.ratio-name {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.ratio-value {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.ratio-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .ratio-status.excellent {
        background: #00d09c;
        color: white;
    }

    .ratio-status.good {
        background: #4a5568;
        color: white;
    }

    .ratio-status.fair {
        background: #ed8936;
        color: white;
    }

    .ratio-status.poor {
        background: #f56565;
        color: white;
    }

/* Wealth Comparison */
.wealth-comparison {
    margin-bottom: 25px;
}

.comparison-chart {
    height: 300px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

/* Recommendations */
.recommendations-section {
    margin-bottom: 25px;
}

.recommendation-card {
    background: #fff8e1;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #ffd54f;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.recommendation-icon {
    width: 50px;
    height: 50px;
    background: #ffd54f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 24px;
    flex-shrink: 0;
}

.recommendation-content {
    flex: 1;
}

    .recommendation-content h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 18px;
    }

    .recommendation-content ul {
        list-style: none;
        padding: 0;
        margin: 0 0 20px 0;
    }

    .recommendation-content li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
        color: #666;
        font-size: 14px;
        line-height: 1.5;
    }

        .recommendation-content li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

.recommendation-action {
    margin-top: 15px;
}

.action-btn {
    background: #00d09c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background 0.3s;
}

    .action-btn:hover {
        background: #00b386;
    }

/* History Section */
.history-section {
    margin-top: 25px;
}

.history-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .history-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .history-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .history-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .history-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .history-table tbody tr:last-child td {
        border-bottom: none;
    }

    .history-table .positive {
        color: #00d09c;
        font-weight: 600;
    }

    .history-table .negative {
        color: #f56565;
        font-weight: 600;
    }

/* Assets Grid */
.assets-grid,
.liabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.asset-type-card,
.liability-type-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.asset-header,
.liability-header {
    padding: 15px;
    color: white;
}

    .asset-header.liquid,
    .liability-header.secured {
        background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    }

    .asset-header.investment,
    .liability-header.unsecured {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }

    .asset-header.real {
        background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
    }

    .asset-header.personal,
    .liability-header.other {
        background: linear-gradient(135deg, #ed8936 0%, #ed64a6 100%);
    }

    .asset-header h4,
    .liability-header h4 {
        font-size: 16px;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.asset-content,
.liability-content {
    padding: 15px;
}

    .asset-content ul,
    .liability-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .asset-content li,
    .liability-content li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 13px;
        line-height: 1.4;
    }

        .asset-content li:before,
        .liability-content li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Benchmarks Table */
.benchmarks-table {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .benchmarks-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }

    .benchmarks-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e0e0;
    }

    .benchmarks-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
    }

    .benchmarks-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .benchmarks-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .asset-item,
    .liability-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .asset-input,
    .liability-input {
        align-self: stretch;
    }

        .asset-input .text-input,
        .liability-input .text-input {
            width: 100%;
        }

    .save-options {
        flex-direction: column;
    }

    .wealth-breakdown .wealth-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

        .wealth-breakdown .wealth-item strong {
            align-self: flex-end;
        }

    .debt-metrics,
    .ratios-grid {
        grid-template-columns: 1fr;
    }

    .recommendation-card {
        flex-direction: column;
        text-align: center;
    }

    .recommendation-icon {
        margin: 0 auto;
    }

    .assets-grid,
    .liabilities-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .summary-amount {
        font-size: 32px;
    }

    .metric-value {
        font-size: 20px;
    }

    .ratio-value {
        font-size: 18px;
    }
}

/* =========================================== */
/* Inheritance Planning Specific */
/* =========================================== */

/* Distribution Inputs */
.distribution-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.distribution-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

    .distribution-input label {
        flex: 1;
        font-weight: 500;
        color: #333;
    }

    .distribution-input input {
        width: 80px;
        padding: 8px;
        border: 2px solid #e0e0e0;
        border-radius: 6px;
        text-align: center;
    }

    .distribution-input span {
        font-weight: 600;
        color: #666;
        min-width: 30px;
    }

/* Distribution Grid */
.distribution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.heir-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.heir-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

    .heir-header i {
        color: #00d09c;
        font-size: 20px;
    }

    .heir-header h4 {
        margin: 0;
        font-size: 16px;
        color: #222;
    }

.heir-amount {
    font-size: 20px;
    font-weight: 700;
    color: #00d09c;
    margin-bottom: 5px;
}

.heir-percentage {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.heir-yearly {
    font-size: 12px;
    color: #888;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Tax Implications Grid */
.implications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.implication-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e0e0e0;
}

.implication-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 24px;
}

.implication-content {
    flex: 1;
}

.implication-value {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.implication-label {
    font-size: 14px;
    color: #666;
}

/* Recommendations */
.recommendation-card {
    background: #fff8e1;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #ffd54f;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.recommendation-icon {
    width: 50px;
    height: 50px;
    background: #ffd54f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 24px;
    flex-shrink: 0;
}

.recommendation-content {
    flex: 1;
}

    .recommendation-content h4 {
        color: #222;
        margin-bottom: 8px;
        font-size: 18px;
    }

    .recommendation-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

.recommendation-action {
    margin-top: 10px;
}

/* =========================================== */
/* Estate Planning Specific */
/* =========================================== */

/* Section Titles */
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 20px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

    .section-title i {
        color: #00d09c;
    }

/* Net Worth Summary */
.net-worth-summary {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

.net-worth-main {
    text-align: center;
    margin-bottom: 25px;
}

.net-worth-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.net-worth-amount {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
}

.net-worth-breakdown {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .breakdown-item:last-child {
        border-bottom: none;
    }

    .breakdown-item span {
        font-size: 15px;
        opacity: 0.9;
    }

    .breakdown-item strong {
        font-size: 18px;
        font-weight: 700;
    }

/* Asset Distribution */
.distribution-chart-container {
    height: 300px;
    margin-bottom: 20px;
}

.distribution-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

    .detail-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.detail-label {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.detail-value {
    width: 60px;
    text-align: center;
    font-weight: 600;
    color: #00d09c;
}

.detail-amount {
    width: 120px;
    text-align: right;
    font-weight: 600;
    color: #222;
}

/* Beneficiary Allocation */
.allocation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.beneficiary-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.beneficiary-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

    .beneficiary-header i {
        color: #00d09c;
        font-size: 20px;
    }

    .beneficiary-header h4 {
        margin: 0;
        font-size: 16px;
        color: #222;
    }

.beneficiary-amount {
    font-size: 20px;
    font-weight: 700;
    color: #00d09c;
    margin-bottom: 5px;
}

.beneficiary-percentage {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.beneficiary-advice {
    font-size: 12px;
    color: #888;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Planning Recommendations */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.recommendation-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.recommendation-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 24px;
    margin-bottom: 15px;
}

.recommendation-content h4 {
    color: #222;
    margin-bottom: 10px;
    font-size: 16px;
}

.recommendation-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.recommendation-priority {
    font-size: 13px;
    color: #666;
}

    .recommendation-priority strong {
        color: #00d09c;
    }

/* Next Steps */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #00d09c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content h4 {
    color: #222;
    margin-bottom: 5px;
    font-size: 16px;
}

.step-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* =========================================== */
/* College Planning Specific */
/* =========================================== */

/* Years Display */
.years-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.years-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
}

.years-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* College Type Options */
.college-type-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.college-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

    .college-type-btn:hover {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .college-type-btn.active {
        border-color: #00d09c;
        background: #f0f9f6;
    }

    .college-type-btn i {
        font-size: 24px;
        color: #666;
        margin-bottom: 8px;
    }

    .college-type-btn.active i {
        color: #00d09c;
    }

    .college-type-btn span {
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .college-type-btn small {
        font-size: 12px;
        color: #888;
    }

/* Cost Summary */
.cost-summary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

.cost-main {
    text-align: center;
    margin-bottom: 25px;
}

.cost-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.cost-amount {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
}

.cost-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.cost-breakdown {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

/* Savings Requirements */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.requirement-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e0e0e0;
}

.requirement-icon {
    width: 50px;
    height: 50px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d09c;
    font-size: 24px;
}

.requirement-content {
    flex: 1;
}

.requirement-value {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.requirement-label {
    font-size: 14px;
    color: #666;
}

/* Projection Chart */
.projection-chart-container {
    height: 300px;
    margin-top: 15px;
}

/* College Timeline */
.timeline-container {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 15px 0;
    margin-top: 15px;
}

.timeline-year {
    min-width: 150px;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

    .timeline-year.college-year {
        border-color: #00d09c;
        background: #f0f9f6;
    }

.year-label {
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    font-size: 15px;
}

.year-amount {
    font-size: 16px;
    font-weight: 700;
    color: #00d09c;
    margin-bottom: 5px;
}

.year-desc {
    font-size: 12px;
    color: #666;
}

/* Funding Strategies */
.strategies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.strategy-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.strategy-header {
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .strategy-header i {
        color: #00d09c;
        font-size: 24px;
    }

    .strategy-header h4 {
        margin: 0;
        font-size: 16px;
        color: #222;
    }

.strategy-content {
    padding: 20px;
}

    .strategy-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .strategy-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .strategy-content li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 13px;
        line-height: 1.4;
    }

        .strategy-content li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Action Plan */
.plan-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.plan-step {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid #00d09c;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #00d09c;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content h4 {
    color: #222;
    margin-bottom: 5px;
    font-size: 16px;
}

.step-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.step-deadline {
    font-size: 12px;
    color: #888;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* =========================================== */
/* Information Section Components */
/* =========================================== */

/* Components Grid */
.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.component-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #00d09c;
}

    .component-card h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .component-card h4 i {
            color: #00d09c;
        }

    .component-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .component-card li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .component-card li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Tax Rates Table */
.tax-rates-table {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .tax-rates-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .tax-rates-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 2px solid #e0e0e0;
    }

    .tax-rates-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
        color: #555;
    }

    .tax-rates-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .tax-rates-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.document-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.document-header {
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 15px;
}

    .document-header i {
        color: #00d09c;
        font-size: 24px;
    }

    .document-header h4 {
        margin: 0;
        font-size: 16px;
        color: #222;
    }

.document-content {
    padding: 20px;
}

    .document-content p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .document-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .document-content li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 13px;
        line-height: 1.4;
    }

        .document-content li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Mistakes List */
.mistakes-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.mistake-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #fff8e1;
    border-radius: 8px;
    border-left: 4px solid #ffd54f;
}

.mistake-icon {
    width: 40px;
    height: 40px;
    background: #ffd54f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 20px;
    flex-shrink: 0;
}

.mistake-content h4 {
    color: #222;
    margin-bottom: 5px;
    font-size: 16px;
}

.mistake-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Checklist */
.checklist-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

    .checklist-item:last-child {
        margin-bottom: 0;
    }

    .checklist-item input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 12px;
        cursor: pointer;
    }

    .checklist-item label {
        font-size: 15px;
        color: #333;
        cursor: pointer;
        flex: 1;
    }

    .checklist-item input[type="checkbox"]:checked + label {
        text-decoration: line-through;
        color: #888;
    }

/* Cost Components */
.cost-components {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Savings Options Table */
.savings-options-table {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .savings-options-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }

    .savings-options-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        color: #444;
        border-bottom: 2px solid #e0e0e0;
    }

    .savings-options-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
        color: #555;
    }

    .savings-options-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .savings-options-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Loan Options */
.loan-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.loan-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.loan-header {
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 15px;
}

    .loan-header i {
        color: #00d09c;
        font-size: 24px;
    }

    .loan-header h4 {
        margin: 0;
        font-size: 16px;
        color: #222;
    }

.loan-content ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.loan-content li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: #555;
    font-size: 14px;
}

    .loan-content li:before {
        content: "•";
        position: absolute;
        left: 0;
        color: #00d09c;
        font-weight: bold;
        font-size: 16px;
    }

/* Scholarship Info */
.scholarship-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.scholarship-tips {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #00d09c;
}

    .scholarship-tips h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .scholarship-tips h4 i {
            color: #00d09c;
        }

    .scholarship-tips ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .scholarship-tips li {
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        color: #555;
        font-size: 14px;
    }

        .scholarship-tips li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #00d09c;
            font-weight: bold;
            font-size: 16px;
        }

/* Responsive adjustments */
@media (max-width: 768px) {
    .type-options,
    .college-type-options,
    .implications-grid,
    .recommendations-grid,
    .strategies-grid,
    .plan-steps {
        grid-template-columns: 1fr;
    }

    .distribution-grid,
    .allocation-grid,
    .requirements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .components-grid,
    .documents-grid,
    .loan-options,
    .scholarship-info {
        grid-template-columns: 1fr;
    }

    .timeline-container {
        flex-direction: column;
    }

    .timeline-year {
        min-width: 100%;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .distribution-grid,
    .allocation-grid,
    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .net-worth-amount,
    .cost-amount {
        font-size: 32px;
    }

    .heir-amount,
    .beneficiary-amount {
        font-size: 18px;
    }

    .implication-card,
    .requirement-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .implication-icon,
    .requirement-icon {
        margin: 0 auto;
    }

    .tax-rates-table,
    .savings-options-table {
        font-size: 12px;
    }

        .tax-rates-table th,
        .tax-rates-table td,
        .savings-options-table th,
        .savings-options-table td {
            padding: 8px 10px;
        }
}


/* =========================================== */
/* Contact Page Styles */
/* =========================================== */

.contact-hero {
    text-align: center;
    padding: 60px 0 40px;
}

    .contact-hero h1 {
        font-size: 42px;
        color: #222;
        margin-bottom: 15px;
    }

    .contact-hero p {
        font-size: 18px;
        color: #666;
        max-width: 700px;
        margin: 0 auto 20px;
    }

.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.contact-method-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #00d09c;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .contact-method-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

.contact-method-icon {
    width: 70px;
    height: 70px;
    background: #f0f9f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

    .contact-method-icon i {
        color: #00d09c;
        font-size: 30px;
    }

.contact-method-card h3 {
    color: #222;
    margin-bottom: 15px;
    font-size: 22px;
}

.contact-method-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-email {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #00d09c;
    text-decoration: none;
    margin-bottom: 10px;
}

    .contact-email:hover {
        text-decoration: underline;
    }

.response-time {
    font-size: 14px;
    color: #888;
    font-style: italic;
}

.contact-form-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 25px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #444;
        font-size: 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 16px;
        background: #fafafa;
        transition: all 0.3s;
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #00d09c;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(0, 208, 156, 0.1);
        }

    .form-group select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 15px center;
        background-size: 16px;
        padding-right: 40px;
    }

.form-note {
    font-size: 13px;
    color: #888;
    margin-top: 20px;
    text-align: center;
}

.contact-faq-section {
    margin: 60px 0;
}

    .contact-faq-section .faq-item {
        background: #fff;
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 15px;
        border-left: 4px solid #00d09c;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

        .contact-faq-section .faq-item h3 {
            color: #222;
            margin-bottom: 10px;
            font-size: 18px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

            .contact-faq-section .faq-item h3 i {
                color: #00d09c;
            }

.additional-contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.info-block {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid #00d09c;
}

    .info-block h3 {
        color: #222;
        margin-bottom: 15px;
        font-size: 18px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .info-block h3 i {
            color: #00d09c;
        }

    .info-block p {
        color: #666;
        margin-bottom: 10px;
        font-size: 15px;
        line-height: 1.6;
    }

/* =========================================== */
/* Terms & Disclaimer Page Styles */
/* =========================================== */

.terms-hero, .disclaimer-hero {
    text-align: center;
    padding: 60px 0 40px;
}

    .terms-hero h1, .disclaimer-hero h1 {
        font-size: 42px;
        color: #222;
        margin-bottom: 15px;
    }

    .terms-hero p, .disclaimer-hero p {
        font-size: 18px;
        color: #666;
        max-width: 800px;
        margin: 0 auto 10px;
    }

.last-updated {
    font-size: 14px;
    color: #888;
    margin-top: 20px;
}

.terms-content, .disclaimer-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.terms-section, .disclaimer-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

    .terms-section:last-child, .disclaimer-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .terms-section h2, .disclaimer-section h2 {
        color: #222;
        margin-bottom: 20px;
        font-size: 24px;
        display: flex;
        align-items: center;
        gap: 15px;
    }

        .terms-section h2 i, .disclaimer-section h2 i {
            color: #00d09c;
        }

    .terms-section p, .disclaimer-section p {
        color: #444;
        line-height: 1.7;
        margin-bottom: 15px;
        font-size: 16px;
    }

.terms-list, .disclaimer-list {
    margin: 20px 0 20px 30px;
    padding: 0;
}

    .terms-list li, .disclaimer-list li {
        margin-bottom: 12px;
        color: #555;
        line-height: 1.6;
        font-size: 15px;
        padding-left: 5px;
    }

.terms-acknowledgment, .disclaimer-final {
    background: #f0f9f6;
    border-radius: 10px;
    padding: 25px;
    margin-top: 40px;
    border-left: 4px solid #00d09c;
}

    .terms-acknowledgment h3, .disclaimer-final h3 {
        color: #222;
        margin-bottom: 15px;
        font-size: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .terms-acknowledgment h3 i, .disclaimer-final h3 i {
            color: #00d09c;
        }

.disclaimer-warning {
    margin: 30px 0;
}

.warning-banner {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.warning-icon {
    color: #ffc107;
    font-size: 30px;
}

.warning-content h3 {
    color: #856404;
    margin-bottom: 8px;
    font-size: 20px;
}

.warning-content p {
    color: #856404;
    margin: 0;
    font-size: 15px;
}

.disclaimer-section.critical {
    border-left: 4px solid #dc3545;
    padding-left: 20px;
    background: #fff5f5;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.disclaimer-note {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid #00d09c;
}

    .disclaimer-note.warning {
        border-left-color: #ffc107;
        background: #fff3cd;
    }

    .disclaimer-note.critical {
        border-left-color: #dc3545;
        background: #fff5f5;
    }

    .disclaimer-note p {
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        color: #444;
    }

        .disclaimer-note p i {
            font-size: 18px;
        }

.final-acknowledgement {
    margin: 20px 0 20px 20px;
    padding: 0;
}

    .final-acknowledgement li {
        margin-bottom: 12px;
        color: #444;
        line-height: 1.6;
        font-size: 15px;
        padding-left: 5px;
    }

.contact-disclaimer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

    .contact-disclaimer h4 {
        color: #222;
        margin-bottom: 15px;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

        .contact-disclaimer h4 i {
            color: #00d09c;
        }

    .contact-disclaimer p {
        color: #666;
        margin-bottom: 10px;
        font-size: 15px;
    }

    .contact-disclaimer a {
        color: #00d09c;
        text-decoration: none;
        font-weight: 500;
    }

        .contact-disclaimer a:hover {
            text-decoration: underline;
        }

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-hero h1, .terms-hero h1, .disclaimer-hero h1 {
        font-size: 32px;
    }

    .contact-methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form-container {
        padding: 25px;
    }

    .terms-content, .disclaimer-content {
        padding: 25px;
    }

    .terms-section h2, .disclaimer-section h2 {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .warning-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}


/* =========================================== */
/* All Tools Page Styles */
/* =========================================== */

.all-tools-hero {
    text-align: center;
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f0f9f6 0%, #e6f4f1 100%);
    border-radius: 0 0 20px 20px;
}

    .all-tools-hero h1 {
        font-size: 42px;
        color: #222;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .all-tools-hero p {
        font-size: 18px;
        color: #666;
        max-width: 800px;
        margin: 0 auto 30px;
        line-height: 1.6;
    }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #00d09c;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    text-align: center;
    max-width: 120px;
}

.tools-search-section {
    margin: 40px 0;
}

.search-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.search-box {
    position: relative;
    margin-bottom: 30px;
}

    .search-box i {
        position: absolute;
       /* left: 20px;*/
        top: 50%;
        transform: translateY(-50%);
        color: #fff;
        font-size: 18px;
    }

#tools-search {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s;
    background: #fafafa;
}

    #tools-search:focus {
        outline: none;
        border-color: #00d09c;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(0, 208, 156, 0.1);
    }

.search-hint {
    font-size: 14px;
    color: #888;
    margin-top: 8px;
    text-align: center;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-filter {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

    .category-filter:hover {
        border-color: #00d09c;
        color: #00d09c;
        background: #f0f9f6;
    }

    .category-filter.active {
        background: #00d09c;
        border-color: #00d09c;
        color: white;
    }

.all-tools-section {
    margin: 40px 0 60px;
}

.tools-category {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
}

    .tools-category:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.category-header {
    margin-bottom: 30px;
    text-align: center;
}

    .category-header h2 {
        font-size: 32px;
        color: #222;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

        .category-header h2 i {
            color: #00d09c;
        }

    .category-header p {
        font-size: 16px;
        color: #666;
        max-width: 700px;
        margin: 0 auto;
        line-height: 1.6;
    }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.tool-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

    .tool-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: #00d09c;
        transform: translateY(-100%);
        transition: transform 0.3s;
    }

    .tool-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        border-color: #00d09c;
    }

        .tool-card:hover::before {
            transform: translateY(0);
        }

.tool-icon {
    width: 60px;
    height: 60px;
    background: #f0f9f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

    .tool-icon i {
        color: #00d09c;
        font-size: 28px;
    }

.tool-card h3 {
    color: #222;
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.3;
}

.tool-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tool-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    align-self: flex-start;
}

.tools-cta {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    border-radius: 20px;
    padding: 60px 40px;
    margin: 60px 0;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: white;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.tools-cta .btn-primary {
    background: white;
    color: #00d09c;
    padding: 16px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

    .tools-cta .btn-primary:hover {
        background: #f8f9fa;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

/* Responsive Styles */
@media (max-width: 768px) {
    .all-tools-hero h1 {
        font-size: 32px;
    }

    .all-tools-hero p {
        font-size: 16px;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 28px;
    }

    .category-header h2 {
        font-size: 26px;
        flex-direction: column;
        gap: 10px;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .tool-card {
        padding: 20px;
    }

    .tools-cta {
        padding: 40px 20px;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .cta-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .category-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .category-filter {
        width: 100%;
        text-align: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
}



/* =========================================== */
/* Privacy Policy Page Styles */
/* =========================================== */

.privacy-hero {
    text-align: center;
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f0f9f6 0%, #e6f4f1 100%);
    border-radius: 0 0 20px 20px;
}

    .privacy-hero h1 {
        font-size: 42px;
        color: #222;
        margin-bottom: 20px;
    }

    .privacy-hero p {
        font-size: 18px;
        color: #666;
        max-width: 800px;
        margin: 0 auto 20px;
        line-height: 1.6;
    }

.privacy-summary {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

    .summary-item i {
        font-size: 28px;
        color: #00d09c;
        background: white;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .summary-item span {
        font-size: 14px;
        color: #555;
        text-align: center;
        font-weight: 500;
    }

.privacy-overview {
    margin: 40px 0;
}

.overview-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 30px;
    border-left: 5px solid #00d09c;
}

.overview-icon {
    flex-shrink: 0;
}

    .overview-icon i {
        font-size: 48px;
        color: #00d09c;
        background: #f0f9f6;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.overview-content h3 {
    color: #222;
    margin-bottom: 15px;
    font-size: 24px;
}

.overview-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.privacy-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.privacy-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

    .privacy-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .privacy-section.important {
        border-left: 4px solid #00d09c;
        padding-left: 20px;
        background: #f8f9fa;
        padding: 25px;
        border-radius: 8px;
        margin-bottom: 30px;
    }

    .privacy-section h2 {
        color: #222;
        margin-bottom: 20px;
        font-size: 28px;
        display: flex;
        align-items: center;
        gap: 15px;
    }

        .privacy-section h2 i {
            color: #00d09c;
        }

    .privacy-section h3 {
        color: #333;
        margin: 25px 0 15px;
        font-size: 20px;
        font-weight: 600;
    }

    .privacy-section h4 {
        color: #444;
        margin: 20px 0 10px;
        font-size: 18px;
    }

    .privacy-section p {
        color: #555;
        line-height: 1.7;
        margin-bottom: 15px;
        font-size: 16px;
    }

.privacy-list {
    margin: 15px 0 15px 30px;
    padding: 0;
}

    .privacy-list li {
        margin-bottom: 12px;
        color: #555;
        line-height: 1.6;
        font-size: 15px;
        padding-left: 5px;
    }

        .privacy-list li strong {
            color: #333;
        }

.privacy-note {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid #00d09c;
}

    .privacy-note.warning {
        border-left-color: #ffc107;
        background: #fff3cd;
    }

    .privacy-note p {
        margin: 0;
        display: flex;
        align-items: center;
        gap: 12px;
        color: #444;
        font-size: 15px;
    }

        .privacy-note p i {
            font-size: 20px;
            flex-shrink: 0;
        }

    .privacy-note.warning p i {
        color: #ffc107;
    }

.cookie-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.cookie-type {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #00d09c;
    transition: transform 0.3s;
}

    .cookie-type:hover {
        transform: translateY(-3px);
    }

    .cookie-type h4 {
        color: #222;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .cookie-type h4 i {
            color: #00d09c;
        }

    .cookie-type p {
        color: #666;
        margin: 0;
        font-size: 14px;
        line-height: 1.5;
    }

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #00d09c;
}

    .contact-method i {
        font-size: 32px;
        color: #00d09c;
        background: white;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .contact-method h4 {
        color: #222;
        margin-bottom: 5px;
        font-size: 18px;
    }

    .contact-method p {
        margin: 0;
        color: #555;
    }

    .contact-method a {
        color: #00d09c;
        text-decoration: none;
        font-weight: 500;
    }

        .contact-method a:hover {
            text-decoration: underline;
        }

.contact-note {
    font-size: 13px;
    color: #888;
    margin-top: 5px;
}

.privacy-acknowledgment {
    background: #f0f9f6;
    border-radius: 10px;
    padding: 25px;
    margin-top: 40px;
    border-left: 4px solid #00d09c;
}

    .privacy-acknowledgment h3 {
        color: #222;
        margin-bottom: 15px;
        font-size: 20px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .privacy-acknowledgment h3 i {
            color: #00d09c;
        }

    .privacy-acknowledgment p {
        color: #444;
        margin-bottom: 10px;
    }

.related-documents {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

    .related-documents h4 {
        color: #222;
        margin-bottom: 20px;
        font-size: 18px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .related-documents h4 i {
            color: #00d09c;
        }

.document-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.doc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s;
    border: 2px solid transparent;
}

    .doc-link:hover {
        border-color: #00d09c;
        background: #f0f9f6;
        color: #00d09c;
        transform: translateY(-2px);
    }

    .doc-link i {
        font-size: 20px;
    }

    .doc-link span {
        font-weight: 500;
    }

/* Responsive Styles */
@media (max-width: 768px) {
    .privacy-hero h1 {
        font-size: 32px;
    }

    .privacy-hero p {
        font-size: 16px;
    }

    .privacy-summary {
        gap: 20px;
    }

    .summary-item {
        min-width: 120px;
    }

    .overview-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .privacy-content {
        padding: 25px;
    }

    .privacy-section h2 {
        font-size: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cookie-types {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .document-links {
        flex-direction: column;
    }

    .doc-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .summary-item {
        min-width: 100px;
    }

        .summary-item i {
            width: 50px;
            height: 50px;
            font-size: 24px;
        }

    .privacy-summary span {
        font-size: 13px;
    }

    .privacy-section h2 {
        font-size: 22px;
    }

    .privacy-section h3 {
        font-size: 18px;
    }

    .privacy-list {
        margin-left: 20px;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* =========================================== */
/* Social Media Links */
/* =========================================== */

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #f5f7fa;
        color: #666;
        font-size: 18px;
        transition: all 0.3s ease;
        text-decoration: none;
    }

        .social-links a:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .social-links a[href*="youtube"]:hover {
            background-color: #ff0000;
            color: white;
        }

        .social-links a[href*="facebook"]:hover {
            background-color: #1877f2;
            color: white;
        }

        .social-links a[href*="instagram"]:hover {
            background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
            color: white;
        }

        .social-links a[href*="linkedin"]:hover {
            background-color: #0077b5;
            color: white;
        }

        .social-links a[href*="twitter"]:hover {
            background-color: #1da1f2;
            color: white;
        }

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-links {
        justify-content: center;
        margin-top: 15px;
    }

        .social-links a {
            width: 36px;
            height: 36px;
            font-size: 16px;
        }
}
/* =========================================== */
/* Search Box Styles */
/* =========================================== */

.search-container {
    max-width: 700px;
    margin: 40px auto;
    position: relative;
    z-index: 100;
}

.search-box {
    display: flex;
    border: 2px solid #00d09c;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 30px rgba(0, 208, 156, 0.15);
    transition: all 0.3s;
}

    .search-box:focus-within {
        box-shadow: 0 12px 40px rgba(0, 208, 156, 0.25);
        transform: translateY(-2px);
    }

#toolSearch {
    flex: 1;
    padding: 18px 25px;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background: transparent;
}

    #toolSearch::placeholder {
        color: #999;
        font-weight: 400;
    }

#searchButton {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    color: white;
    border: none;
    padding: 0 35px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

    #searchButton:hover {
        background: linear-gradient(135deg, #00b386 0%, #009975 100%);
    }

    #searchButton i {
        transition: transform 0.3s;
    }

    #searchButton:hover i {
        transform: scale(1.1);
    }

#searchResults {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 450px;
    overflow-y: auto;
    display: none;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results-list {
    padding: 0;
}

.search-result-item {
    display: block;
    padding: 18px 25px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
    font-size: 15px;
}

    .search-result-item:hover {
        background: #f8fdfb;
        padding-left: 30px;
        color: #00d09c;
        border-bottom-color: #00d09c;
    }

    .search-result-item:last-child {
        border-bottom: none;
    }

.search-result-title {
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

    .search-result-title i {
        color: #00d09c;
        font-size: 16px;
        width: 20px;
        text-align: center;
    }

.search-result-item:hover .search-result-title {
    color: #00d09c;
}

.search-result-url {
    font-size: 13px;
    color: #888;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-item:hover .search-result-url {
    color: #00b386;
}

.no-results {
    padding: 40px 30px;
    text-align: center;
    color: #666;
}

    .no-results i {
        font-size: 48px;
        color: #ddd;
        margin-bottom: 20px;
        display: block;
    }

    .no-results p {
        margin-bottom: 10px;
        font-size: 16px;
    }

        .no-results p:last-child {
            font-size: 14px;
            color: #999;
        }

.search-loading {
    padding: 30px;
    text-align: center;
    color: #666;
}

    .search-loading i {
        animation: spin 1s linear infinite;
        margin-right: 12px;
        font-size: 20px;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.search-stats {
    padding: 15px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
    color: #666;
    text-align: right;
    font-weight: 500;
}

    .search-stats strong {
        color: #00d09c;
        font-weight: 600;
    }

/* Popular Searches */
.popular-searches {
    margin-top: 25px;
    text-align: center;
}

    .popular-searches h4 {
        color: #666;
        font-size: 14px;
        margin-bottom: 15px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.popular-tag {
    background: #f0f9f6;
    color: #00b386;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #d4f2e8;
}

    .popular-tag:hover {
        background: #00d09c;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 208, 156, 0.2);
        border-color: #00d09c;
    }

/* Highlight matches */
.highlight-match {
    color: #00d09c;
    font-weight: 700;
    background: #f0f9f6;
    padding: 2px 4px;
    border-radius: 4px;
}

/* Search categories */
.search-category {
    padding: 12px 25px;
    background: #f8f9fa;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #e0e0e0;
}

    .search-category:first-child {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-container {
        margin: 30px auto;
    }

    .search-box {
        flex-direction: column;
        border-radius: 12px;
    }

    #toolSearch {
        padding: 15px 20px;
        font-size: 16px;
    }

    #searchButton {
        padding: 15px;
        width: 100%;
        min-width: auto;
    }

    .search-result-item {
        padding: 15px 20px;
    }

    .popular-tags {
        gap: 8px;
    }

    .popular-tag {
        padding: 6px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    #toolSearch {
        font-size: 15px;
        padding: 12px 15px;
    }

    .search-result-item {
        padding: 12px 15px;
    }

    .search-result-title {
        font-size: 15px;
    }

    .popular-tags {
        gap: 6px;
    }

    .popular-tag {
        padding: 5px 12px;
        font-size: 12px;
    }
}

/*end search style*/