/* Modern PayPal-style Budgeting Page Styles */

/* AI Advisory Tab Styling - Ensure it works on all pages */
#sidebar-menu ul li.ai-advisory-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
    border-radius: 8px !important;
    margin: 8px 12px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
    list-style: none !important;
}

#sidebar-menu ul li.ai-advisory-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

#sidebar-menu ul li.ai-advisory-premium:hover::before {
    left: 100%;
}

#sidebar-menu ul li.ai-advisory-premium > a {
    color: white !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    position: relative !important;
    z-index: 2 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
}

#sidebar-menu ul li.ai-advisory-premium > a:hover {
    background: transparent !important;
    color: white !important;
}

#sidebar-menu ul li.ai-advisory-premium > a i {
    color: white !important;
    font-size: 1.1em !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) !important;
    width: 20px !important;
    text-align: center !important;
}

#sidebar-menu ul li.ai-advisory-premium > a span {
    color: white !important;
    font-weight: 600 !important;
}

#sidebar-menu ul li.ai-advisory-premium:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
}

#sidebar-menu ul li.ai-advisory-premium .premium-badge {
    position: absolute !important;
    top: -3px !important;
    right: -3px !important;
    background: linear-gradient(45deg, #ff6b6b, #ffa500) !important;
    color: white !important;
    font-size: 0.65em !important;
    padding: 2px 6px !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4) !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 3 !important;
}

#sidebar-menu ul li.ai-advisory-premium .premium-badge::before {
    content: '✨';
    position: absolute;
    top: -1px;
    left: -1px;
    font-size: 0.7em;
    /* animation: sparkle 2s ease-in-out infinite; */
    opacity: 0.8;
}

#sidebar-menu ul li.ai-advisory-premium .premium-badge::after {
    content: '✨';
    position: absolute;
    bottom: -1px;
    right: -1px;
    font-size: 0.5em;
    /* animation: sparkle 2s ease-in-out infinite 1s; */
    opacity: 0.6;
}

/* Premium pulse animation */
@keyframes premium-pulse {
    0% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
}

#sidebar-menu ul li.ai-advisory-premium {
    /* animation: premium-pulse 3s ease-in-out infinite !important; */
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
}

/* Responsive adjustments for AI advisory tab */
@media (max-width: 768px) {
    #sidebar-menu ul li.ai-advisory-premium {
        margin: 6px 8px !important;
    }
    
    #sidebar-menu ul li.ai-advisory-premium > a {
        padding: 10px 12px !important;
    }
    
    #sidebar-menu ul li.ai-advisory-premium .premium-badge {
        font-size: 0.6em !important;
        padding: 1px 4px !important;
    }
}
.budgeting-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    padding: 0;
    padding-bottom: 0;
}

.budgeting-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 1200px) {
    .budgeting-content-wrapper {
        max-width: 1200px;
    }
}

@media (max-width: 992px) {
    .budgeting-content-wrapper {
        max-width: 100%;
        padding: 0 0.5rem;
    }
}

/* Modern Card Styles */
.modern-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    position: relative;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0070ba 0%, #009cde 50%, #00d4aa 100%);
}

.modern-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Loading State */
.loading-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    margin: auto;
}

/* CTA Container - Professional Centered Design */
.cta-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    margin-left: -240px; /* Compensate for main-content margin */
    margin-right: -240px; /* Ensure full width */
    margin-top: 0; /* Remove the negative margin since we're using padding */
}

.cta-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0070ba 0%, #009cde 50%, #00d4aa 100%);
}

.cta-card:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.25);
}

.cta-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0070ba 0%, #009cde 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 12px 30px rgba(0, 112, 186, 0.3);
    font-size: 32px;
    color: white;
}

.cta-title {
    color: white;
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.cta-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 400;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.cta-feature i {
    color: #00d4aa;
    font-size: 1.1rem;
    min-width: 20px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #0070ba 0%, #009cde 100%);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(0, 112, 186, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.cta-button:hover {
    box-shadow: 0 12px 35px rgba(0, 112, 186, 0.4);
    color: white;
    text-decoration: none;
}

.cta-button:hover::before {
    left: 100%;
}

@media (max-width: 768px) {
    .cta-container {
        margin-left: 0; /* Reset margin on mobile */
        margin-right: 0;
        margin-top: 0; /* Reset margin since you fixed the desktop positioning */
        padding: 2rem 1rem 0 1rem; /* Add horizontal padding for mobile */
    }
    
    .cta-card {
        padding: 2rem 1.5rem;
        margin: 0;
         /* Remove transform for natural positioning */
        max-width: 100%; /* Full width on mobile */
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .cta-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 1.5rem;
    }
    
    .cta-features {
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #0070ba;
    border-radius: 50%;
    /* animation: spin 1s linear infinite; */
}

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

/* Financial Overview Cards */
.financial-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.income-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.expense-icon {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.savings-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
}

.goals-icon {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0070ba 0%, #009cde 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 112, 186, 0.3);
    font-size: 28px;
}

.section-text h4 {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: -0.025em;
}

.section-text p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.95rem;
}

/* Action Buttons */
.add-budget-btn, .add-goal-btn {
    background: linear-gradient(135deg, #0070ba 0%, #009cde 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-budget-btn:hover, .add-goal-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 112, 186, 0.3);
    color: white;
}

.transaction-actions {
    display: flex;
    gap: 0.75rem;
}

/* Budget Management Section */
.budget-management-section {
    margin-bottom: 3rem !important;
    padding-bottom: 2rem;
}

/* Tab Styling */
.nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-tabs .nav-link {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 12px 12px 0 0;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.nav-tabs .nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.nav-tabs .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-bottom: 3px solid #0070ba;
}

.tab-content {
    padding-top: 1.5rem;
}

/* Budget Management Styles */
.budget-summary-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.budget-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.budget-summary-card h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.budget-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.metric:last-child {
    border-bottom: none;
}

.metric .label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.metric .value {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Transaction Styles */
.transaction-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.transaction-search {
    min-width: 250px;
}

/* Loading States */
.budget-loading, .category-loading, .transaction-loading, .income-loading, .expense-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Insights Section */
.insights-section {
    margin-bottom: 2rem;
}

.insights-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.insights-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.insights-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0070ba 0%, #009cde 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 112, 186, 0.3);
}

.insights-icon {
    font-size: 28px;
    color: white;
}

.insights-text h4 {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: -0.025em;
}

.insights-text p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.95rem;
}

.insights-badge {
    background: linear-gradient(135deg, #0070ba 0%, #009cde 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 0.75rem;
    
    cursor: pointer;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    
}

/* Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 8px;
}

.insights-grid::-webkit-scrollbar {
    width: 8px;
}

.insights-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.insights-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.insights-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.insight-card {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    backdrop-filter: blur(20px) !important;
    
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.insight-card.success::before {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.insight-card.warning::before {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.insight-card.info::before {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
}

.insight-card.danger::before {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.insight-card:hover {
    background: rgba(0, 0, 0, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
}

.insight-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.insight-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 20px;
    color: white;
}

.insight-icon.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.insight-icon.warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.insight-icon.info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
}

.insight-icon.danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.insight-title {
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
    color: white !important;
    letter-spacing: -0.025em !important;
}

.insight-content {
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
}

.insight-description {
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
}

/* Chart Cards - Modern Wealth Tracking Style */
.chart-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    
    height: 100%;
    position: relative;
    overflow: hidden;
}

.chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 25%, #06b6d4 50%, #10b981 75%, #f59e0b 100%);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.chart-card:hover {
    
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.chart-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.chart-title i {
    color: #3b82f6;
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Goals Section */
.goals-section {
    margin-top: 2rem;
}

.goals-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.goals-title {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
    letter-spacing: -0.025em;
}

.goals-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-summary {
    text-align: right;
}

.progress-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.progress-value {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Accordion Styling */
.accordion-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    backdrop-filter: blur(20px);
}

.accordion-button {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    padding: 1rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.2);
}

.accordion-body {
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

/* Form Styling */
.form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 0.75rem 1rem;
    
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #0070ba;
    box-shadow: 0 0 0 0.2rem rgba(0, 112, 186, 0.25);
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 0.75rem 1rem;
    
}

.form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #0070ba;
    box-shadow: 0 0 0 0.2rem rgba(0, 112, 186, 0.25);
    color: white;
}

.form-select option {
    background: rgba(40, 40, 40, 0.95);
    color: white;
}

.form-control-color {
    width: 60px;
    height: 40px;
    padding: 0.25rem;
}

/* Table Styling */
.table {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.table thead th {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    padding: 1rem;
}

.table tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, #0070ba 0%, #009cde 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    
}

.btn-primary:hover {
    
    box-shadow: 0 8px 20px rgba(0, 112, 186, 0.3);
}

.btn-outline-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline-primary {
    background: rgba(0, 112, 186, 0.1);
    border: 1px solid rgba(0, 112, 186, 0.3);
    color: #0070ba;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    
}

.btn-outline-primary:hover {
    background: rgba(0, 112, 186, 0.2);
    border-color: rgba(0, 112, 186, 0.5);
    color: #0070ba;
}

.btn-outline-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    
}

.btn-outline-warning:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffc107;
}

/* Dropdown Styling */
.dropdown-menu {
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    
}

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

.dropdown-header {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    padding: 0.75rem 1rem;
}

/* Chart Styling - Modern Wealth Tracking Style */
.apex-charts {
    border-radius: 16px;
    overflow: hidden;
    margin-top: 1rem;
}

#budget-progress-chart {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#budget-progress-chart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Enhanced chart container styling */
.chart-container {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

/* Chart legend styling */
.apexcharts-legend {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

.apexcharts-legend-text {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

/* Chart tooltip styling */
.apexcharts-tooltip {
    background: rgba(30, 41, 59, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.apexcharts-tooltip-title {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.apexcharts-tooltip-y-group {
    color: white !important;
    font-weight: 700 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .budgeting-content-wrapper {
        padding: 0 0.5rem;
    }

    .insights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-height: 250px;
    }

    .insight-card {
        padding: 1rem !important;
    }

    .chart-card {
        padding: 1.5rem;
    }

    .insights-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .goals-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .transaction-actions {
        flex-direction: column;
        width: 100%;
    }

    .transaction-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .transaction-search {
        min-width: auto;
    }
}

/* Animation for cards */
.insight-card,
.chart-card {
    animation: slideInUp 0.5s ease-out;
}

/* Prevent animations on chart instruction text */
.chart-instruction {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        
    }
    to {
        opacity: 1;
        
    }
}

/* Empty state styling */
.insight-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
}

.insight-empty-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.insight-empty h5 {
    color: white;
    font-weight: 600;
}

.insight-empty p {
    color: rgba(255, 255, 255, 0.7);
}

/* Loading state for insights */
.insight-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Modal Styling */
.modal-content {
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(20px);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-title {
    color: white;
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    color: rgba(255, 255, 255, 0.9);
}

/* Form Check Styling */
.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-check-input:checked {
    background-color: #0070ba;
    border-color: #0070ba;
}

.form-check-label {
    color: rgba(255, 255, 255, 0.9);
} 

/* --- PayPal-Style Budget Card: Dark Theme --- */
.budget-card-pro {
  background: linear-gradient(135deg, #181c24 60%, #232a36 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  padding: 28px 3vw;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.budget-card-header {
  display: flex;
  align-items: center;
  gap: 24px;
}
.budget-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0070ba, #00d4aa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 2px 8px rgba(0,112,186,0.18);
}
.budget-title-group {
  flex: 1;
}
.budget-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.budget-meta {
  font-size: 0.95rem;
  color: #b0b8c9;
  display: flex;
  gap: 10px;
  align-items: center;
}
.budget-period {
  background: #22304a;
  color: #00d4aa;
  border-radius: 8px;
  padding: 2px 10px;
  font-size: 0.85rem;
  font-weight: 600;
}
.budget-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn {
  border: none;
  border-radius: 20px;
  padding: 7px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  
  cursor: pointer;
}
.btn-view { background: linear-gradient(90deg, #0070ba 60%, #00d4aa 100%); color: #fff; }
.btn-edit { background: linear-gradient(90deg, #ffb347 60%, #ff6b35 100%); color: #232a36; }
.btn-delete { background: linear-gradient(90deg, #ff5a5f 60%, #ff1744 100%); color: #fff; }
.btn-analysis { background: linear-gradient(90deg, #6f42c1 60%, #e83e8c 100%); color: #fff; }
.btn:hover { box-shadow: 0 2px 12px rgba(0,112,186,0.25); filter: brightness(1.08); }
.budget-card-body {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}
.budget-label {
  font-size: 0.8rem;
  color: #7e8ba3;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 600;
}
.budget-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.budget-amount {
  color: #00d4aa;
  font-size: 1.25rem;
}
@media (max-width: 700px) {
  .budget-card-pro {
    padding: 18px 2vw;
    gap: 12px;
  }
  .budget-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .budget-card-body {
    flex-direction: column;
    gap: 12px;
  }
} 

/* --- Production-Ready Budget Modal --- */
.budget-modal-content {
  background: linear-gradient(135deg, #181c24 60%, #232a36 100%);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.25);
  border: none;
  padding: 0;
}
.budget-modal-content .modal-header {
  border-bottom: 1px solid #232a36;
  background: transparent;
  padding: 2rem 2.5rem 1rem 2.5rem;
}
.budget-modal-content .modal-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}
.budget-modal-content .btn-close {
  filter: invert(1) grayscale(1);
  opacity: 0.7;
}
.budget-modal-content .modal-body {
  padding: 2rem 2.5rem 1rem 2.5rem;
}
.budget-modal-content .modal-footer {
  border-top: 1px solid #232a36;
  background: transparent;
  padding: 1.5rem 2.5rem;
}
.budget-input {
  background: #232a36;
  color: #fff;
  border: 1.5px solid #2e3542;
  border-radius: 10px;
  font-size: 1rem;
  box-shadow: none;
  
}
.budget-input:focus {
  border-color: #00d4aa;
  box-shadow: 0 0 0 2px rgba(0,212,170,0.15);
  background: #232a36;
  color: #fff;
}
.budget-input::placeholder {
  color: #b0b8c1;
  opacity: 1;
}
.budget-progress-bar {
  background: #232a36;
  border-radius: 10px;
  overflow: hidden;
}
#budgetCategoryProgress {
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(90deg,#00d4aa,#0070ba);
  
}
#budget-categories-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.budget-category-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #20242e;
  border-radius: 12px;
  padding: 16px 20px;
  position: relative;
  
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.budget-category-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #0070ba, #00d4aa);
  border-radius: 2px;
}

.budget-category-row:hover {
  background: #232a36;
  border-color: rgba(255, 255, 255, 0.1);
  
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.budget-category-row .category-select {
  min-width: 180px;
  background: #232a36;
  color: #fff;
  border-radius: 8px;
  border: 1.5px solid #2e3542;
  font-size: 1rem;
}
.budget-category-row .category-select:focus {
  border-color: #00d4aa;
}
.budget-category-row .planned-amount {
  width: 120px;
  background: #232a36;
  color: #fff;
  border-radius: 8px;
  border: 1.5px solid #2e3542;
  font-size: 1rem;
}
.budget-category-row .planned-amount:focus {
  border-color: #00d4aa;
}
.budget-category-row .remove-category-row {
  background: none;
  border: none;
  color: #ff6b6b;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 8px;
  
}
.budget-category-row .remove-category-row:hover {
  color: #ff2e2e;
}
.budget-category-row .category-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-right: 8px;
  background: linear-gradient(135deg, #00d4aa, #0070ba);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,112,186,0.12);
}
.gradient-btn {
  background: linear-gradient(90deg,#00d4aa,#0070ba);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,112,186,0.12);
  
}
.gradient-btn:hover, .gradient-btn:focus {
  background: linear-gradient(90deg,#0070ba,#00d4aa);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,112,186,0.18);
}
@media (max-width: 900px) {
  .budget-modal-content .modal-body, .budget-modal-content .modal-header, .budget-modal-content .modal-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
} 

.category-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 14px;
  background: #232a36;
  border: 2px solid transparent;
  cursor: pointer;
  
  box-shadow: 0 2px 8px rgba(0,112,186,0.08);
  position: relative;
}
.category-card.selected {
  border-color: #00d4aa;
  background: linear-gradient(135deg, #00d4aa22 0%, #0070ba22 100%);
  box-shadow: 0 4px 16px rgba(0,212,170,0.12);
}
.category-card .category-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.category-card .category-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
}
.selected-category-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #20242e;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  position: relative;
}
.selected-category-row .category-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-right: 8px;
  background: linear-gradient(135deg, #00d4aa, #0070ba);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,112,186,0.12);
}
.selected-category-row .category-name {
  font-weight: 600;
  color: #fff;
  min-width: 100px;
}
.selected-category-row .planned-amount {
  width: 120px;
  background: #232a36;
  color: #fff;
  border-radius: 8px;
  border: 1.5px solid #2e3542;
  font-size: 1rem;
}
.selected-category-row .planned-amount:focus {
  border-color: #00d4aa;
}
.selected-category-row .notes-input {
  min-width: 140px;
  background: #232a36;
  color: #fff;
  border-radius: 8px;
  border: 1.5px solid #2e3542;
  font-size: 1rem;
}
.selected-category-row .remove-category-row {
  background: none;
  border: none;
  color: #ff6b6b;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 8px;
  
}
.selected-category-row .remove-category-row:hover {
  color: #ff2e2e;
} 