:root {
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --background: #dae5f0;
    --text: #333;
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --danger: #c62828;
}

/* Global Styles */
body {
    font-family: 'Figtree', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--background);
    color: var(--text);
    font-size: 16px;
}

/* Shared Components */
.btn {
    padding: 15px 40px;
    font-size: 18px;
    border: none;
    border-radius: 50px;
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Header */
header {
    background: var(--card-bg);
    box-shadow: 0 2px 8px var(--card-shadow);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a,
nav a {
    text-decoration: none;
    color: var(--text);
}

header img {
    height: 40px;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dropbtn:hover {
    background-color: var(--primary-dark);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1;
    right: 0;
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    display: block;
    border-bottom: 1px solid #eee;
    font-weight: 500;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Main Containers */
.container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 8px var(--card-shadow);
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.page-title p {
    color: #555;
    font-size: 16px;
}


/* Calculator Cards Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.calculator-card {
    background: #fff;
    padding: 40px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    color: #333;
    border: 2px solid transparent;
    transition: 0.3s ease;
    line-height: 1.6;
}

.calculator-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
}

.card-sub {
    margin-top: 12px;
    font-weight: 400;
    font-size: 14px;
    color: #666;
}

/* ================= CALCULATOR-SPECIFIC STYLES ================= */

/* Budget Planner */
.budget-container {
    background: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.budget-container label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.budget-container input[type="number"] {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 100%;
    margin-bottom: 25px;
    background: #f9f9f9;
}

.budget-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 12px;
}

.budget-table th {
    background: #e0f2e9;
    color: #2e7d32;
    font-weight: 700;
    padding: 8px 10px;
    border: 1px solid #ddd;
}

.budget-table td {
    padding: 4px 8px;
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
}

.budget-table input[type="text"],
.budget-table input[type="number"] {
    border: none;
    background: transparent;
    font-size: 16px;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    outline: none;
}

.remove-btn {
    background: var(--danger);
    color: white;
    border-radius: 50%;
    padding: 3px 8px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    font-size: 12px;
}

/* Investment Growth Calculator - Updated to Match Design System */
.investment-growth-container {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 30px auto;
}

.investment-growth-header {
    text-align: center;
    margin-bottom: 30px;
}

.investment-growth-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.investment-growth-header p {
    color: #555;
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
}

.investment-growth-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.investment-growth-field {
    display: flex;
    flex-direction: column;
}

.investment-growth-field label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.investment-growth-field input {
    padding: 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
}

.investment-growth-field input:focus {
    outline: 2px solid var(--primary);
    background: #fff;
}

.investment-growth-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.investment-growth-btn {
    padding: 15px 40px;
    font-size: 18px;
    border: none;
    border-radius: 50px;
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.investment-growth-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Results Section */
.investment-growth-results {
    background: #e8f5e9;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #cce0d0;
}

.investment-growth-results h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary-dark);
    text-align: center;
}

.result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.summary-item h4 {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 16px;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* Growth Chart Container */
.growth-chart-container {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Detailed Results Table */
.detailed-results {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.detailed-results th {
    background: #e0f2e9;
    color: var(--primary-dark);
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
}

.detailed-results td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.detailed-results tr:last-child td {
    border-bottom: none;
}

.detailed-results tr:hover {
    background-color: #f5f5f5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .investment-growth-form {
        grid-template-columns: 1fr;
    }

    .result-summary {
        grid-template-columns: 1fr;
    }

    .investment-growth-container {
        padding: 25px;
    }
}

/* Net Salary Calculator */
.net-salary-container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}

/* Results Sections (Shared) */
.result-box,
.results-box {
    background: #e8f5e9;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.result-box h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary-dark);
    text-align: center;
}

.result-line,
.result-row {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 10px 0;
    border-top: 1px solid #d0e2d9;
    font-size: 18px;
}

.total-row {
    font-weight: 700;
    color: var(--primary-dark);
    border-top: 2px solid var(--primary);
}

.warning-box {
    margin-top: 10px;
    color: var(--danger);
    font-weight: bold;
    text-align: center;
}

/* Hero Sections */
.homepage-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom right, #f0f7fa, #ffffff);
    padding: 60px 40px;
    margin: 40px auto;
    max-width: 1100px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.hero-text {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.hero-text h1 {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    color: #444;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-illustration img {
    max-width: 400px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.hero-btn {
    padding: 15px 40px;
    font-size: 18px;
    border: none;
    border-radius: 50px;
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
    margin-right: 20px;
    transition: 0.3s;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.hero-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Analytics Page */
.summary-card {
    background: #e8f5e9;
    border-radius: 12px;
    padding: 20px 30px;
    flex: 1 1 200px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.summary-title {
    font-weight: 600;
    color: #1b5e20;
    font-size: 15px;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 26px;
    font-weight: 700;
    color: #333;
}

/* Footer */
footer {
    margin-top: 60px;
    padding: 15px;
    background: #eee;
    text-align: center;
    font-size: 13px;
    color: #777;
}

/* Add these to maintain consistency with other calculators */
:root {
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #81c784;
    --danger: #c62828;
}

/* Loading Indicator */
.loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 16px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Error States */
.input-wrapper.invalid {
    border-color: var(--danger);
}

.error-message {
    color: var(--danger);
    font-size: 13px;
    margin-top: 5px;
    min-height: 18px;
    display: none;
}

/* ===== Homepage Styles ===== */
.homepage {
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f0f7fa 0%, #e3f2fd 100%);
    padding: 80px 20px 120px;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary);
}

.hero-text .lead {
    font-size: 20px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
}

.feature i {
    color: var(--primary);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--primary);
    font-size: 24px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: #666;
}

/* Calculator Showcase */
.calculator-showcase {
    padding: 80px 20px;
    background: #fff;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.calculator-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 28px;
}

.calculator-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.calculator-card p {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
}

.card-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--primary);
    color: white;
    padding: 3px 30px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
    width: 120px;
    text-align: center;
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: #f9fbfe;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 24px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 20px;
    background: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.testimonial-content {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 60px;
    color: rgba(46, 125, 50, 0.1);
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info strong {
    display: block;
    font-weight: 600;
    color: #333;
}

.author-info span {
    font-size: 14px;
    color: #777;
}

/* Final CTA */
.final-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.final-cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.final-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.primary-btn {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.4);
}

.secondary-btn {
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 40px;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 36px;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .final-cta h2 {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text .lead {
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .testimonial-card {
        padding: 20px;
    }
}

/* ================= CALCULATOR-SPECIFIC STYLES ================= */

/* Budget Planner - UPDATED */
.budget-container {
    background: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
    overflow-x: auto;
    /* NEW: Allow horizontal scrolling on mobile */
}

.budget-container label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.budget-container input[type="number"] {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 100%;
    margin-bottom: 25px;
    background: #f9f9f9;
}

.budget-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    /* Increased from 12px for better readability */
    min-width: 700px;
    /* NEW: Ensures table has minimum width */
}

.budget-table th {
    background: #e0f2e9;
    color: #2e7d32;
    font-weight: 700;
    padding: 12px 15px;
    /* Increased padding */
    border: 1px solid #ddd;
    text-align: left;
    /* Changed from default */
}

.budget-table td {
    padding: 10px 15px;
    /* Increased padding */
    border: 1px solid #ddd;
    text-align: left;
    /* Changed from center */
    vertical-align: middle;
}

.budget-table tr:nth-child(even) {
    background-color: #f9f9f9;
    /* NEW: Zebra striping for readability */
}

.budget-table tr:hover {
    background-color: #f0f7f1;
    /* NEW: Hover effect */
}

.budget-table input[type="text"],
.budget-table input[type="number"] {
    border: 1px solid #ddd;
    /* Added border for inputs */
    background: #fff;
    font-size: 14px;
    padding: 8px 10px;
    margin: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    outline: none;
    border-radius: 4px;
}

.budget-table input[type="text"]:focus,
.budget-table input[type="number"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

.remove-btn {
    background: var(--danger);
    color: white;
    border-radius: 4px;
    /* Changed from circle to rectangle */
    padding: 6px 12px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    font-size: 13px;
    transition: background-color 0.2s;
}

.remove-btn:hover {
    background: #b71c1c;
}

/* NEW: Responsive table styles */
@media (max-width: 768px) {
    .budget-container {
        padding: 20px 15px;
        margin: 15px -15px;
        border-radius: 0;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .budget-table {
        font-size: 13px;
        min-width: 600px;
        /* Smaller minimum width for mobile */
    }

    .budget-table th,
    .budget-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .budget-table {
        min-width: 500px;
        /* Even smaller for very small screens */
        font-size: 12px;
    }

    .budget-table th,
    .budget-table td {
        padding: 6px 8px;
    }

    .remove-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}