/* Modern Financial Dashboard Styles */

/* CSS Custom Properties */
:root {
    /* Background Colors */
    --card-bg: rgba(255, 255, 255, 0.05);
    --bg-secondary: rgba(255, 255, 255, 0.08);
    --bg-primary: #0a0a0a;
    --bg-tertiary: rgba(255, 255, 255, 0.03);
    
    /* Border Colors */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    --border-primary: rgba(59, 130, 246, 0.3);
    --border-secondary: rgba(255, 255, 255, 0.08);
    
    /* Text Colors */
    --text-primary: #e0e0e0;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Accent Colors */
    --primary-color: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #3b82f6, #1d4ed8);
    --accent-primary: #3b82f6;
    --accent-secondary: #1d4ed8;
    --accent-hover: #2563eb;
    --accent-light: rgba(59, 130, 246, 0.1);
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-accent: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    backdrop-filter: blur(20px);
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    font-size: 1.875rem;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Menu */
.nav-menu {
    padding: 1rem 0;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section h3 {
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 1.5rem;
    margin-bottom: 0.75rem;
}

.nav-section ul {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    gap: 0.75rem;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-left-color: #3b82f6;
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-left-color: #3b82f6;
    font-weight: 600;
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.nav-item span:first-of-type {
    flex: 1;
}

.badge {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}

.count-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    margin-left: 0.5rem;
    display: inline-block;
}

/* Horizontal Navigation Icons - Removed as requested */

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    transition: filter 0.3s ease;
}

/* Notification backdrop overlay */
.notification-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notification-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.main-content.blurred {
    filter: blur(3px);
    pointer-events: none;
    transition: filter 0.3s ease;
}

/* Top Header */
.top-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle {
    display: none;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #e0e0e0;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
    transform: translateY(-2px);
}

#page-title {
    color: white;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Enhanced Financial Overview Header */
.financial-overview-header {
    position: relative;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.financial-overview-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.05));
}

.financial-overview-toggle:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(29, 78, 216, 0.08));
}

.financial-overview-toggle i:first-child {
    color: #60a5fa;
    font-size: 1.1rem;
}

.overview-summary {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.9rem;
}

.toggle-icon {
    color: #9ca3af;
    font-size: 0.8rem;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.financial-overview-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

.financial-overview-panel {
    display: none;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 10, 0.5);
}

.financial-overview-panel.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.financial-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.financial-inputs .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.financial-inputs .input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 500;
}

.financial-inputs .input-group label i {
    color: #60a5fa;
    font-size: 0.9rem;
}

.financial-inputs .input-group input {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.75rem;
    color: #e0e0e0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.financial-inputs .input-group input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.financial-summary {
    margin-bottom: 1.5rem;
}

.summary-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.summary-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.summary-item .label {
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.summary-item .value {
    color: #e0e0e0;
    font-size: 1.1rem;
    font-weight: 600;
}

.summary-item.income .value {
    color: #10b981;
}

.summary-item.bills .value {
    color: #f59e0b;
}

.summary-item.remaining .value {
    color: #60a5fa;
}

.summary-item.remaining.negative .value {
    color: #ef4444;
}

.payment-status {
    text-align: center;
    margin-bottom: 1rem;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.status-indicator.can-pay {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.status-indicator.cannot-pay {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.status-indicator.neutral {
    background: rgba(156, 163, 175, 0.1);
    border: 1px solid rgba(156, 163, 175, 0.3);
    color: #9ca3af;
}

.status-indicator i {
    font-size: 0.7rem;
}

.upcoming-bills-preview {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.bills-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.bills-header h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 600;
}

.bills-header h4 i {
    color: #60a5fa;
    font-size: 0.8rem;
}

.bills-count {
    color: #9ca3af;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.bills-list {
    max-height: 200px;
    overflow-y: auto;
}

.bill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.bill-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.bill-item:last-child {
    margin-bottom: 0;
}

.bill-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bill-name {
    color: #e0e0e0;
    font-size: 0.85rem;
    font-weight: 500;
}

.bill-due {
    color: #9ca3af;
    font-size: 0.75rem;
}

.bill-amount {
    color: #f59e0b;
    font-size: 0.85rem;
    font-weight: 600;
}

.bill-item.overdue .bill-amount {
    color: #ef4444;
}

.bill-item.due-soon .bill-amount {
    color: #f59e0b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .financial-inputs {
        grid-template-columns: 1fr;
    }
    
    .summary-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    /* Financial Overview Table Styles */
.financial-overview-table {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.financial-overview-table th {
    background: rgba(59, 130, 246, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.financial-overview-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

.financial-overview-table .bill-row {
    transition: all 0.2s ease;
}

.financial-overview-table .bill-row:hover {
    background: rgba(59, 130, 246, 0.05);
}

.financial-overview-table .bill-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.financial-overview-table .bill-due-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.financial-overview-table .bill-due-date.overdue {
    color: #ef4444;
    font-weight: 600;
}

.financial-overview-table .bill-due-date.due-soon {
    color: #f59e0b;
    font-weight: 600;
}

.financial-overview-table .bill-amount {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.financial-overview-table .bill-amount.overdue {
    color: #ef4444;
}

.financial-overview-table .bill-amount.due-soon {
    color: #f59e0b;
}

.financial-overview-table .bill-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.financial-overview-table .bill-status.overdue {
    color: #ef4444;
}

.financial-overview-table .bill-status.due-soon {
    color: #f59e0b;
}

.financial-overview-table .bill-status.upcoming {
    color: #10b981;
}

.financial-overview-table .bill-status i {
    font-size: 0.7rem;
}

/* Mobile responsive adjustments for financial overview table */
@media screen and (max-width: 768px) {
    .financial-overview-table {
        font-size: 0.75rem;
    }
    
    .financial-overview-table th,
    .financial-overview-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .financial-overview-table th {
        font-size: 0.7rem;
    }
    
    .financial-overview-table .bill-name {
        font-size: 0.75rem;
    }
    
    .financial-overview-table .bill-due-date {
        font-size: 0.7rem;
    }
    
    .financial-overview-table .bill-amount {
        font-size: 0.75rem;
    }
    
    .financial-overview-table .bill-status {
        font-size: 0.65rem;
    }
}

@media screen and (max-width: 480px) {
    .financial-overview-table th:last-child,
    .financial-overview-table td:last-child {
        display: none; /* Hide status column on very small screens */
    }
    
    .financial-overview-table th,
    .financial-overview-table td {
        padding: 0.4rem 0.2rem;
    }
}

.financial-overview-panel {
    padding: 1rem;
}

/* Financial Overview Widget - Summary Cards */
.widget-summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.widget-summary-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget-summary-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.widget-summary-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.income-card .card-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(74, 222, 128, 0.2));
    color: #22c55e;
}

.bills-card .card-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(248, 113, 113, 0.2));
    color: #ef4444;
}

.remaining-card .card-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(34, 211, 238, 0.2));
    color: #3b82f6;
}

.remaining-card.negative .card-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(248, 113, 113, 0.2));
    color: #ef4444;
}

.widget-summary-card .card-content {
    flex: 1;
    min-width: 0;
}

.widget-summary-card .card-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.25rem 0;
}

.widget-summary-card .card-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

.income-card .card-amount {
    color: #22c55e;
}

.bills-card .card-amount {
    color: #ef4444;
}

.remaining-card .card-amount {
    color: #3b82f6;
}

.remaining-card.negative .card-amount {
    color: #ef4444;
}

/* Financial Widget Layout */
.financial-widget-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.financial-widget-inputs {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
}

.widget-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.widget-input-group {
    display: flex;
    flex-direction: column;
}

.widget-input-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-input-group label i {
    color: #6b7280;
    font-size: 0.875rem;
}

.widget-input-group input {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: #fff;
}

.widget-input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.widget-input-group input::placeholder {
    color: #9ca3af;
}

/* Financial Widget Status */
.financial-widget-status {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
}

.financial-widget-status .status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.financial-widget-status .status-indicator.neutral {
    color: #6b7280;
}

.financial-widget-status .status-indicator.can-pay {
    color: #059669;
}

.financial-widget-status .status-indicator.cannot-pay {
    color: #dc2626;
}

.financial-widget-status .status-indicator i {
    font-size: 1rem;
}

/* Financial Widget Bills */
.financial-widget-bills {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.widget-bills-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.widget-bills-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-bills-header h4 i {
    color: #3b82f6;
    font-size: 0.875rem;
}

.widget-bills-count {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    background: #e5e7eb;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.widget-table-container {
    overflow-x: auto;
}

.widget-bills-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.widget-bills-table thead {
    background: #f8fafc;
}

.widget-bills-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
}

.widget-bills-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.widget-bills-table tbody tr:hover {
    background: #f8fafc;
}

.widget-bills-table tbody tr:last-child td {
    border-bottom: none;
}

/* Widget Bill Row Styles */
.widget-bills-table .bill-name {
    font-weight: 500;
    color: #1f2937;
}

.widget-bills-table .bill-due-date {
    font-size: 0.8125rem;
    color: #6b7280;
}

.widget-bills-table .bill-due-date.overdue {
    color: #dc2626;
    font-weight: 600;
}

.widget-bills-table .bill-due-date.due-soon {
    color: #d97706;
    font-weight: 600;
}

.widget-bills-table .bill-amount {
    font-weight: 600;
    color: #1f2937;
}

.widget-bills-table .bill-amount.overdue {
    color: #dc2626;
}

.widget-bills-table .bill-amount.due-soon {
    color: #d97706;
}

.widget-bills-table .bill-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.widget-bills-table .bill-status.overdue {
    color: #dc2626;
}

.widget-bills-table .bill-status.due-soon {
    color: #d97706;
}

.widget-bills-table .bill-status.upcoming {
    color: #059669;
}

.widget-bills-table .bill-status i {
    font-size: 0.75rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s ease;
}

.financial-overview-widget:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    border-bottom: none;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title i {
    color: #3b82f6;
}

.widget-actions {
    display: flex;
    gap: 0.5rem;
}

.widget-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
    font-size: 0.875rem;
}

.widget-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.widget-btn i {
    font-size: 0.875rem;
}

.widget-content {
    display: block;
}

/* Widget Input Section */
.widget-input-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.widget-input-group {
    display: flex;
    flex-direction: column;
}

.widget-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.widget-input-group input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.widget-input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Widget Financial Summary */
.widget-financial-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.widget-summary-item {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.widget-summary-item.available {
    background: #ecfdf5;
    border-color: #d1fae5;
}

.widget-summary-item.due {
    background: #fef3c7;
    border-color: #fde68a;
}

.widget-summary-item.remaining {
    background: #eff6ff;
    border-color: #dbeafe;
}

.widget-summary-item.remaining.negative {
    background: #fef2f2;
    border-color: #fecaca;
}

.widget-summary-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.widget-summary-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.widget-summary-item.available .widget-summary-value {
    color: #059669;
}

.widget-summary-item.due .widget-summary-value {
    color: #d97706;
}

.widget-summary-item.remaining .widget-summary-value {
    color: #2563eb;
}

.widget-summary-item.remaining.negative .widget-summary-value {
    color: #dc2626;
}

/* Widget Payment Status */
.widget-payment-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.widget-payment-status .status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.widget-payment-status .status-indicator.can-pay {
    background: #10b981;
}

.widget-payment-status .status-indicator.cannot-pay {
    background: #ef4444;
}

.widget-payment-status .status-indicator.neutral {
    background: #6b7280;
}

.widget-payment-status .status-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.widget-payment-status .status-icon {
    font-size: 1rem;
    color: #6b7280;
}

.widget-payment-status.can-pay .status-icon {
    color: #10b981;
}

.widget-payment-status.cannot-pay .status-icon {
    color: #ef4444;
}

.widget-payment-status .status-text {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

/* Widget Bills Preview */
.widget-bills-preview h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-bills-preview h4 i {
    color: #3b82f6;
    font-size: 0.875rem;
}

.widget-table-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.widget-bills-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.widget-bills-table thead {
    background: #f8fafc;
}

.widget-bills-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
}

.widget-bills-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.widget-bills-table tbody tr:hover {
    background: #f8fafc;
}

.widget-bills-table tbody tr:last-child td {
    border-bottom: none;
}

/* Widget Bill Row Styles */
.widget-bills-table .bill-name {
    font-weight: 500;
    color: #1f2937;
}

.widget-bills-table .bill-due-date {
    font-size: 0.8125rem;
    color: #6b7280;
}

.widget-bills-table .bill-due-date.overdue {
    color: #dc2626;
    font-weight: 600;
}

.widget-bills-table .bill-due-date.due-soon {
    color: #d97706;
    font-weight: 600;
}

.widget-bills-table .bill-amount {
    font-weight: 600;
    color: #1f2937;
}

.widget-bills-table .bill-amount.overdue {
    color: #dc2626;
}

.widget-bills-table .bill-amount.due-soon {
    color: #d97706;
}

.widget-bills-table .bill-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.widget-bills-table .bill-status.overdue {
    color: #dc2626;
}

.widget-bills-table .bill-status.due-soon {
    color: #d97706;
}

.widget-bills-table .bill-status.upcoming {
    color: #059669;
}

.widget-bills-table .bill-status i {
    font-size: 0.75rem;
}

/* Mobile Responsiveness for Widget */
@media (max-width: 768px) {
    .financial-overview-widget {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .widget-input-section {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .widget-financial-summary {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .widget-summary-item {
        padding: 0.75rem;
    }
    
    .widget-summary-value {
        font-size: 1rem;
    }
    
    .widget-payment-status {
        padding: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .widget-bills-table th,
    .widget-bills-table td {
        padding: 0.5rem;
    }
    
    .widget-bills-table th:last-child,
    .widget-bills-table td:last-child {
        display: none;
    }
}

@media (max-width: 480px) {
    .widget-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .widget-title {
        font-size: 1.125rem;
    }
    
    .widget-financial-summary {
        grid-template-columns: 1fr;
    }
    
    .widget-bills-table {
        font-size: 0.8125rem;
    }
    
    .widget-bills-table th:nth-child(3),
    .widget-bills-table td:nth-child(3) {
        display: none;
    }
}
}

.search-box {
    position: relative;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #e0e0e0;
    font-size: 0.95rem;
    width: 200px;
}

.search-box input::placeholder {
    color: #9ca3af;
}

.search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Place UIT/IN buttons side-by-side aligned with other actions */
.header-actions .inout-stack {
    display: flex;
    flex-direction: row;
    gap: 6px;
}
.header-actions .inout-stack .btn {
    margin-left: 0;
    padding: 0.2rem 0.5rem;
    line-height: 1.1;
    height: 36px; /* Match compact icon buttons height */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Compact icon-only header buttons */
#ing-connect-status-btn,
#toggle-privacy-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#ing-connect-status-btn i,
#toggle-privacy-btn i {
  margin: 0;
  font-size: 18px;
}

#ing-connect-status-btn { position: relative; }
#ing-connect-status-btn .ing-label {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 8px;
  height: 8px;
  padding: 0;
  font-size: 0; /* hide any label text */
}
#ing-connect-status-btn .ing-label::before {
  left: 0;
  top: 0;
  transform: none;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.notification-btn, .user-btn {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #e0e0e0;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn:hover, .user-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b6b;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    font-weight: 600;
}

/* Ensure badge overlays correctly when inside user-switcher current user */
.user-switcher .current-user { position: relative; }
.user-switcher .current-user .notification-badge { top: -5px; right: -5px; }

/* User Switcher Styles */
.user-switcher {
    position: relative;
    display: inline-block;
}

.current-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 25px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.current-user:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
    transform: translateY(-2px);
}

.current-user i:first-child {
    font-size: 1.2rem;
}

.current-user i:last-child {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-switcher:hover .current-user i:last-child {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info strong {
    display: block;
    color: #e0e0e0;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.user-info small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
}

.user-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.user-option:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.user-option.logout {
    color: #ef4444;
}

.user-option.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.user-option i {
    width: 16px;
    text-align: center;
}

/* Page Content */
.page-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background: rgba(10, 10, 10, 0.5);
    min-height: 100vh;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-content h3 {
    color: white;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

/* Pie Chart Widget Styles */
.pie-chart-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 350px;
}

.pie-chart-card .stat-icon {
    margin-bottom: 1rem;
}

.pie-chart-container {
    width: 200px;
    height: 200px;
    margin: 1rem auto;
    position: relative;
}

.pie-chart-container canvas {
    max-width: 100%;
    max-height: 100%;
}

.pie-chart-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.legend-text {
    color: rgba(255, 255, 255, 0.8);
}

.stat-change {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    display: inline-block;
}

.stat-change.positive {
    background: rgba(72, 187, 120, 0.2);
    color: #68d391;
}

.stat-change.negative {
    background: rgba(245, 101, 101, 0.2);
    color: #fc8181;
}

.stat-change.neutral {
    background: rgba(160, 174, 192, 0.2);
    color: #a0aec0;
}

/* Dashboard Widgets */
.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.widget {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(20, 20, 20, 0.95);
}

.widget h3 {
    color: #3b82f6;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-content {
    color: var(--text-secondary);
}

.widget-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin: 0.5rem 0;
}

.widget-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Chart Section */
.chart-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-container {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.chart-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
}

.chart-container h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-container h3 i {
    color: #4facfe;
}

.chart-container canvas {
    max-width: 100%;
    height: auto;
}

.widget {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.widget-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-header h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.widget-action {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.widget-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.widget-content {
    padding: 1.5rem;
    min-height: 200px;
}



/* Widget Items Styles */
.widget-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.widget-item.overdue {
    border-left-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.05);
}

/* Overdue styles for Due tab tables */
.bill-row.overdue,
.task-row.overdue,
.installment-row.overdue {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #dc3545;
}

.overdue-text {
    color: #dc3545;
    font-weight: bold;
    font-size: 0.9em;
}

.item-info {
    flex: 1;
}

.item-title {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    color: white;
}

.item-date {
    display: block;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
}

.item-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffd43b;
}

.status-in-progress {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.status-voltooid {
    background: rgba(81, 207, 102, 0.2);
    color: #51cf66;
}

/* Chart Styles */
.category-chart {
    margin-top: 15px;
}

.category-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.category-info {
    min-width: 120px;
    display: flex;
    flex-direction: column;
}

.category-name {
    font-weight: 500;
    font-size: 0.9em;
    color: white;
}

.category-amount {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
}

.category-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.category-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #4facfe);
    transition: width 0.3s ease;
}

.category-percentage {
    min-width: 40px;
    text-align: right;
    font-size: 0.8em;
    font-weight: 500;
    color: #3b82f6;
}

/* Trends Chart Styles */
.trends-chart {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 120px;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.trend-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.trend-bar {
    position: relative;
    width: 20px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.trend-total {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(59, 130, 246, 0.3);
    transition: height 0.3s ease;
}

.trend-paid {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #51cf66;
    transition: height 0.3s ease;
}

.trend-month {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.trends-legend {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.8);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.total {
    background: rgba(59, 130, 246, 0.3);
}

.legend-color.paid {
    background: #51cf66;
}

.no-data {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    padding: 20px;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.page-header h2 {
    color: white;
    font-size: 1.875rem;
    font-weight: 600;
}

.page-actions {
    display: flex;
    gap: 1rem;
}

/* Content Card */
.content-card {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.content-card:hover {
    background: rgba(20, 20, 20, 0.95);
    border-color: rgba(59, 130, 246, 0.3);
}

.dashboard-card {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(20, 20, 20, 0.95);
}

.dashboard-card h3 {
    color: #3b82f6;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-card .card-content {
    color: var(--text-secondary);
}

.dashboard-card .card-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin: 0.5rem 0;
}

.dashboard-card .card-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

/* Table Styles */
.table-container {
    background: rgba(20, 20, 20, 0.6);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.1);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.data-table th {
    background: rgba(20, 20, 20, 0.8);
    color: #3b82f6;
    padding: 0.5rem 0.5rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    height: 32px;
    vertical-align: middle;
    line-height: 1.2;
}

.data-table td {
    padding: 0.5rem 0.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    color: #e0e0e0;
    vertical-align: middle;
    height: 48px;
}

.data-table tbody tr {
    transition: all 0.3s ease;
    min-height: 48px;
}

.data-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: scale(1.01);
}

/* First column for action buttons */
.data-table th:first-child,
.data-table td:first-child {
    width: 160px;
    min-width: 160px;
    padding: 0.5rem 0.5rem;
}

/* Sortable table headers */
.data-table th[data-sort] {
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all 0.2s ease;
}

.data-table th[data-sort]:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.data-table th[data-sort]::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.data-table th[data-sort]:hover::after {
    opacity: 1;
}

.data-table th[data-sort].sort-asc::after {
    border-bottom: 6px solid #3b82f6;
    border-top: none;
    opacity: 1;
}

.data-table th[data-sort].sort-desc::after {
    border-top: 6px solid #3b82f6;
    border-bottom: none;
    opacity: 1;
}

/* Period table sections */
.period-section {
    margin-bottom: 2rem;
}

.period-section h3 {
    color: #3b82f6;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    text-transform: capitalize;
}

.period-section .table-container {
    margin-bottom: 1rem;
}

/* Bill name with actions layout */
.bill-name-with-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.bill-name {
    flex: 1;
    font-weight: 500;
    color: white !important;
}

.bill-name:hover,
.bill-name:active,
.bill-name:focus,
.bill-name-with-actions:hover .bill-name,
.bill-name-with-actions:active .bill-name {
    color: white !important;
}

.bill-name-with-actions .action-buttons {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    justify-content: flex-start;
    min-width: 160px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: auto;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.action-buttons .status-toggle {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: auto;
    background: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-buttons .status-toggle:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Status-specific colors */
.action-buttons .status-toggle[data-status="PENDING"] {
    background: #ff9500;
    color: white;
}

.action-buttons .status-toggle[data-status="PENDING"]:hover {
    background: #e6850e;
}

.action-buttons .status-toggle[data-status="COMPLETED"] {
    background: #28a745;
    color: white;
}

.action-buttons .status-toggle[data-status="COMPLETED"]:hover {
    background: #218838;
}

/* Strikethrough for completed tasks */
tr:has(.status-toggle[data-status="COMPLETED"]) td:nth-child(2) {
    text-decoration: line-through;
    opacity: 0.7;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Filter buttons */
.filter-buttons {
    display: inline-flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.filter-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.btn-danger {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-success {
    background: linear-gradient(45deg, #51cf66, #40c057);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(81, 207, 102, 0.4);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal > div {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.modal-footer-left {
    display: flex;
    gap: 1rem;
}

.modal-footer-right {
    display: flex;
    gap: 1rem;
}

/* Delete Modal Specific Styles */
.delete-confirmation-content {
    text-align: center;
}

.delete-confirmation-content p {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Badge style for modern delete modal headers */
.badge {
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
}

.warning-box i {
    color: var(--error);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.warning-box span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.delete-modal-footer {
    justify-content: flex-end;
    gap: 1rem;
}

.delete-modal-footer .btn {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-delete {
    background: var(--error);
    color: white;
    border: 1px solid var(--error);
}

.btn-delete:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.modal-header .text-warning {
    color: var(--warning);
}

/* Transaction History Styles */
.transactions-header {
    margin-bottom: 2rem;
}

.transactions-title h2 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.transactions-title p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.transactions-filters {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.filter-group label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

.filter-select,
.filter-input {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.transactions-summary {
    margin-bottom: 2rem;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.summary-content h4 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.summary-content span {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.transaction-table {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.transaction-header {
    display: none; /* Hide on mobile, show on larger screens */
}

.transaction-body {
    max-height: 600px;
    overflow-y: auto;
}

.transaction-row {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease;
    gap: 0.5rem;
}

/* Desktop layout */
@media (min-width: 768px) {
    .transaction-header {
        display: grid;
        grid-template-columns: 100px 1fr 120px 120px 120px 150px;
        gap: 1rem;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-weight: 600;
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.875rem;
    }
    
    .transaction-row {
        display: grid;
        grid-template-columns: 100px 1fr 120px 120px 120px 150px;
        gap: 1rem;
        padding: 0.5rem;
        flex-direction: row;
    }
}

.transaction-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.transaction-row:last-child {
    border-bottom: none;
}

.transaction-type-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.transaction-type-badge.bill {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

/* Mobile transaction layout */
.transaction-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.transaction-main-info {
    margin-bottom: 0.5rem;
}

.transaction-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
}

.transaction-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.transaction-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.transaction-amount {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.transaction-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.transaction-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Hide desktop columns on mobile */
.col-type, .col-name, .col-amount, .col-date, .col-status, .col-actions {
    display: none;
}

/* Desktop layout */
@media (min-width: 768px) {
    /* Hide mobile layout on desktop */
    .transaction-mobile-header,
    .transaction-main-info,
    .transaction-details,
    .transaction-actions {
        display: none;
    }
    
    /* Show desktop columns */
    .col-type, .col-name, .col-amount, .col-date, .col-status, .col-actions {
        display: block;
    }
    
    .col-actions .action-buttons {
        display: flex;
        gap: 0.5rem;
    }
}

/* Enhanced Payment Arrangements Page Styles */
.arrangements-summary {
    margin-bottom: 2rem;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4ade80, #22d3ee, #a855f7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.summary-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(34, 211, 238, 0.2));
    color: #4ade80;
    transition: all 0.3s ease;
}

.active-arrangements .card-icon {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(34, 197, 94, 0.2));
    color: #4ade80;
}

.monthly-total .card-icon {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(59, 130, 246, 0.2));
    color: #22d3ee;
}

.next-payment .card-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(139, 92, 246, 0.2));
    color: #a855f7;
}

.progress-overview .card-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
    color: #fbbf24;
}

.card-badge {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-trend {
    color: #4ade80;
    font-size: 1.2rem;
}

.card-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.card-content {
    margin-top: 1rem;
}

.card-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.2;
}

.card-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0.5rem 0 0 0;
    font-weight: 500;
}

/* Arrangements Container */
.arrangements-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.container-header h3 {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.container-header h3 i {
    margin-right: 0.5rem;
    color: #4ade80;
}

.view-controls {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.view-btn.active {
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    color: #000;
    border-color: transparent;
}

/* Grid View Styles */
.arrangements-grid {
    padding: 1.5rem;
}

#payment-arrangements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.arrangement-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.arrangement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.arrangement-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.arrangement-creditor {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.arrangement-card-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.arrangement-card-body {
    margin-bottom: 1.5rem;
}

.arrangement-amount-large {
    font-size: 1.75rem;
    font-weight: 700;
    color: #4ade80;
    margin: 0.5rem 0;
}

.arrangement-amount-edit-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 0.15rem 0.4rem;
    cursor: pointer;
}

.arrangement-amount-sub {
    transition: color 0.2s ease;
}

.arrangement-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.arrangement-detail {
    text-align: center;
}

.arrangement-detail-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.arrangement-detail-value {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.arrangement-progress {
    margin: 1rem 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22d3ee);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Installment list redesign */
.installment-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.installment-item {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.installment-item.paid { border-color: rgba(74, 222, 128, 0.35); }
.installment-item.overdue { border-color: rgba(244, 63, 94, 0.35); }
.installment-item.pending { border-color: rgba(250, 204, 21, 0.35); }

.installment-col.left { display: flex; flex-direction: column; gap: 0.15rem; }
.installment-col.center { text-align: center; }
.installment-col.right { display: flex; justify-content: flex-end; align-items: center; gap: 0.5rem; }

.installment-number { font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.installment-amount { font-weight: 700; color: #4ade80; }
.due-date, .paid-date { font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); }

.installment-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
}
.installment-status-badge.paid { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.installment-status-badge.overdue { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }
.installment-status-badge.pending { background: rgba(250, 204, 21, 0.15); color: #facc15; }

.inline-edit { display: inline-flex; align-items: center; gap: 0.35rem; }
.inline-edit-input {
    width: 90px;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0,0,0,0.2);
    color: rgba(255, 255, 255, 0.95);
}

.arrangement-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Enhanced Table Styles */
.arrangements-table-container {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.arrangements-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.arrangements-table th {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.arrangements-table th i {
    margin-right: 0.5rem;
    color: #4ade80;
}

.arrangements-table td {
    padding: 1rem;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.arrangements-table tbody tr {
    transition: all 0.3s ease;
}

.arrangements-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.01);
}

.arrangements-table tbody tr:last-child td {
    border-bottom: none;
}

.arrangement-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.arrangement-status.active {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.arrangement-status.completed {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

.arrangement-status.overdue {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.arrangement-amount {
    font-weight: 600;
    color: #4ade80;
    font-size: 1.1rem;
}

.arrangement-next-payment {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.arrangement-progress-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-bar-small {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill-small {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22d3ee);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    min-width: 35px;
}

/* Installment Visual Progress Styles */
.installment-visual-progress {
    margin-top: 0.75rem;
}

.installment-dots {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.installment-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: help;
    position: relative;
}

.installment-dot.paid {
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    border-color: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.installment-dot.overdue {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
    animation: pulse-overdue 2s infinite;
}

.installment-dot.pending {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.installment-dot:hover {
    transform: scale(1.2);
    z-index: 10;
}

@keyframes pulse-overdue {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Header Enhancements */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-title h2 {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.75rem;
    font-weight: 700;
}

.header-title h2 i {
    margin-right: 0.75rem;
    color: #4ade80;
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
}

.primary-btn {
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    color: #000;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(74, 222, 128, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .summary-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .container-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    #payment-arrangements-grid {
        grid-template-columns: 1fr;
    }
    
    .arrangements-table {
        font-size: 0.875rem;
    }
    
    .arrangements-table th,
    .arrangements-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Enhanced Settings Page Styles */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.settings-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.settings-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: rgba(79, 172, 254, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.settings-section:hover::before {
    opacity: 1;
}

.settings-section h3 {
    margin: 0 0 2rem 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
    letter-spacing: -0.025em;
}

.settings-section h3 i {
    color: #4facfe;
    font-size: 1.75rem;
    background: rgba(79, 172, 254, 0.1);
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(79, 172, 254, 0.2);
}

.settings-group {
    margin-bottom: 2rem;
    position: relative;
}

.settings-group:last-child {
    margin-bottom: 0;
}

.settings-group label {
    display: block;
    margin-bottom: 0.875rem;
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.settings-group .form-control {
    width: 100%;
    max-width: 500px;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.settings-group .form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: #4facfe;
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.15), 0 8px 25px rgba(79, 172, 254, 0.1);
    transform: translateY(-2px);
}

.settings-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.settings-group .form-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.75rem;
    line-height: 1.5;
    padding-left: 0.25rem;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    margin-bottom: 0 !important;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.checkbox-label:hover {
    background: rgba(79, 172, 254, 0.08);
    border-color: rgba(79, 172, 254, 0.2);
    color: #4facfe;
    transform: translateX(4px);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border-color: #4facfe;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
    transform: scale(1.05);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    animation: checkmarkPop 0.3s ease;
}

@keyframes checkmarkPop {
    0% {
        transform: rotate(45deg) scale(0);
    }
    50% {
        transform: rotate(45deg) scale(1.2);
    }
    100% {
        transform: rotate(45deg) scale(1);
    }
}

.settings-actions {
    display: flex;
    gap: 1.5rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    justify-content: flex-end;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.settings-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 172, 254, 0.5), transparent);
}

.settings-actions .btn {
    min-width: 140px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.settings-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.settings-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.settings-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(79, 172, 254, 0.15);
    border-color: rgba(79, 172, 254, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.settings-card:hover::before {
    transform: scaleX(1);
}

.settings-card h4 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.settings-card h4 i {
    color: #4facfe;
    font-size: 1.25rem;
    background: rgba(79, 172, 254, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(79, 172, 254, 0.2);
}

@media (max-width: 768px) {
    .settings-section {
        padding: 2rem;
    }
    
    .settings-group .form-control {
        max-width: 100%;
    }
    
    .settings-actions {
        flex-direction: column;
        padding: 2rem;
    }
    
    .settings-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-section h3 {
        font-size: 1.25rem;
    }
    
    .checkbox-label {
        padding: 0.75rem;
    }
}

/* Reports Page Styles */
.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reports-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.reports-controls select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.report-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.report-card-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.report-card-header h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-content {
    padding: 1.5rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.stat-value {
    font-weight: 700;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.stat-value.positive {
    color: #4ade80;
}

.stat-value.negative {
    color: #f87171;
}

.completion-stats {
    text-align: center;
}

.completion-rate {
    margin-bottom: 1rem;
}

.rate-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #4ade80;
    margin-bottom: 0.5rem;
}

.rate-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.reports-insights {
    margin-top: 2rem;
}

.insight-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.insight-card h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insights-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    color: rgba(255, 255, 255, 0.5);
}

.loading-spinner::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments for reports */
@media (max-width: 768px) {
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .reports-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .reports-controls {
        justify-content: center;
    }
}

.transaction-type-badge.task {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.transaction-name {
    color: white;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.transaction-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.paid {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.status-badge.unpaid {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

.status-badge.due {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.status-badge.new {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.status-badge.unknown {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.status-badge.onbetaald {
    background: rgba(220, 38, 38, 0.2);
    color: #ef4444;
}

.status-badge.overdue {
    background: rgba(220, 38, 38, 0.2);
    color: #ef4444;
}

.no-transactions {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.no-transactions-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.3);
}

.no-transactions h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.loading-spinner i {
    font-size: 1.25rem;
}

/* Bills Table Improvements */
.bill-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bill-info strong {
    color: white;
    font-weight: 600;
}

.bill-amount {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Widget Improvements */
.widget-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.widget-footer small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.widget-item {
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.widget-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.widget-item.overdue {
    border-left: 4px solid #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.item-title {
    color: white;
    font-weight: 500;
}

.item-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.no-data {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 2rem;
    font-style: italic;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-section {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h4 {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h4 i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.input-with-currency {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    z-index: 1;
    pointer-events: none;
}

.input-with-currency input {
    padding-left: 2rem !important;
}

.form-group label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: white;
    min-width: 300px;
    animation: toastSlideIn 0.3s ease;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #4facfe;
}

.toast.success::before {
    background: #51cf66;
}

.toast.error::before {
    background: #ff6b6b;
}

.toast.warning::before {
    background: #ffd43b;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Days Remaining Styles */
.days-remaining {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.25rem;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    text-align: center;
    display: inline-block;
    min-width: 80px;
}

.days-overdue {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.days-today {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    animation: pulse 2s infinite;
}

.days-soon {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.days-urgent {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.days-warning {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.days-paid,
.paid {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.days-future {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Placeholder Content Styles */
.placeholder-content {
    text-align: center;
    padding: 3rem 2rem;
    color: #9ca3af;
}

.placeholder-content i {
    display: block;
    margin: 0 auto 1rem;
    opacity: 0.7;
}

.placeholder-content p {
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 1rem;
    }
    
    .top-header {
        padding: 1rem;
    }
    
    .header-right {
        gap: 0.5rem;
    }
    
    .search-box {
        display: none;
    }
    
    .action-btn span {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .modal {
        width: 95%;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }
    
    #page-title {
        font-size: 1.25rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .toast {
        min-width: auto;
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Calendar Styles */
.calendar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-controls h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.calendar-grid {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: rgba(59, 130, 246, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.day-header {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #3b82f6;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.day-header:last-child {
    border-right: none;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    min-height: 120px;
    padding: 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    transition: background-color 0.2s ease;
    cursor: pointer;
    position: relative;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.05);
}

.calendar-day:last-child {
    border-right: none;
}

.calendar-day.empty {
    background: rgba(255, 255, 255, 0.01);
    cursor: default;
}

.calendar-day.today {
    background: rgba(59, 130, 246, 0.2);
    border: 2px solid #3b82f6;
}

.day-number {
    display: block;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.calendar-day.today .day-number {
    color: #3b82f6;
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.event {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.event.overdue {
    background: #ef4444;
}

.event.due {
    background: #f59e0b;
}

.event.paid {
    background: #10b981;
}

.event.task {
    background: #8b5cf6;
}

.event.completed {
    background: #6b7280;
    text-decoration: line-through;
}

.event-more {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
}

.calendar-legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
    font-size: 0.875rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* Settings Styles */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.settings-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.settings-section h3 {
    margin: 0 0 1.5rem 0;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.settings-section h3 i {
    color: #4facfe;
    font-size: 1.5rem;
}

.settings-group {
    margin-bottom: 1.5rem;
}

.settings-group:last-child {
    margin-bottom: 0;
}

.settings-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
}

.settings-group .form-control {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.settings-group .form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}

.settings-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.settings-group .form-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    margin-bottom: 0 !important;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    color: #4facfe;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    border-color: #4facfe;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.settings-actions {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    justify-content: flex-end;
    margin-top: 2rem;
}

.settings-actions .btn {
    min-width: 120px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.settings-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.settings-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.settings-card h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-card h4 i {
    color: #4facfe;
}

@media (max-width: 768px) {
    .settings-section {
        padding: 1.5rem;
    }
    
    .settings-group .form-control {
        max-width: 100%;
    }
    
    .settings-actions {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .settings-actions .btn {
        width: 100%;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* Add New Modal Styles */
.add-new-options {
    display: grid;
    gap: 1rem;
    padding: 1rem 0;
}

.add-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-option:hover {
    background: #3a3a3a;
    border-color: #4facfe;
    transform: translateY(-2px);
}

.add-option.highlighted {
    background: linear-gradient(135deg, #1a3a5c 0%, #2a2a2a 100%);
    border-color: #4facfe;
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

.add-option.highlighted .option-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.4);
}

.option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 8px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.option-icon i {
    font-size: 1.2rem;
    color: white;
}

.option-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e0e0e0;
}

.option-content p {
    margin: 0;
    font-size: 0.875rem;
    color: #999;
    line-height: 1.4;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.hidden { display: none; }
.visible { display: block; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Empty State Styles */
.empty-state {
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem;
}

.empty-state i {
    opacity: 0.6;
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: #a0a0a0;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.empty-state p {
    color: #808080;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.empty-state .btn {
    margin: 0.25rem;
}

.no-data {
    text-align: center;
    padding: 2rem;
    color: #a0a0a0;
    font-style: italic;
}

/* Hide bottom navigation on desktop */
.bottom-nav {
    display: none !important;
}

/* Show bottom navigation only on mobile */
@media screen and (max-width: 768px) {
    .bottom-nav {
        display: block !important;
    }
}

/* Mail Actions Styling */
.mail-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
}

.mail-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mail-actions .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: white;
}

.mail-actions .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.mail-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.mail-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Modern Mail Layout Styles */
/* Modern Mail Interface Styles */
.mail-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mail-title h2 {
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mail-title p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

.mail-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.mail-filters {
    margin-bottom: 1.5rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.filter-tab.active {
    background: #3b82f6;
    color: #ffffff;
    font-weight: 600;
}

.modern-mail-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modern-mail-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    color: #e0e0e0;
}

.modern-mail-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.modern-mail-item.unread {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
}

.modern-mail-item.unread:hover {
    background: rgba(59, 130, 246, 0.15);
}

/* Modern Mail Avatar and Content */
.mail-avatar {
    margin-right: 1rem;
    flex-shrink: 0;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.2s ease;
}

.avatar-circle.unread-avatar {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.5);
}

.mail-content {
    flex: 1;
    min-width: 0;
}

.mail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.mail-sender-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.sender-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.2;
}

.mail-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.unread-indicator {
    color: #3b82f6;
    font-size: 0.5rem;
    margin-left: 0.5rem;
}

.mail-subject {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

.modern-mail-item.read .mail-subject {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.mail-preview {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* Standard property for compatibility */
    -webkit-box-orient: vertical;
}

.mail-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modern-mail-item:hover .mail-actions {
    opacity: 1;
}

.mail-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.mail-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.1);
}

.mail-action-btn:first-child:hover {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.mail-action-btn:nth-child(2):hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.mail-action-btn:last-child:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

/* Mobile responsiveness for mail interface */
@media (max-width: 768px) {
    .mail-header-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mail-stats {
        align-self: stretch;
        justify-content: space-around;
    }
    
    .filter-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .filter-tab {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .modern-mail-item {
        padding: 0.75rem;
    }
    
    .avatar-circle {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .mail-actions {
        opacity: 1;
        margin-top: 0.5rem;
    }
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: scale(1.05);
}

.btn-icon.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.icon-green { color: #10b981; }
.icon-orange { color: #f59e0b; }
.icon-red { color: #ef4444; }
.icon-blue { color: #2563eb; }
.icon-gray { color: #6b7280; }

.no-mails {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.no-mails i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.mail-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.mail-error i {
    color: #ef4444;
    margin-bottom: 16px;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Responsive Design for Mail */
@media (max-width: 768px) {
    .mail-item {
        padding: 12px 16px;
    }
    
    .mail-header {
        flex-direction: column;
        gap: 4px;
    }
    
    .mail-date {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .avatar-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .mail-actions {
        opacity: 1;
        margin-left: 8px;
    }
}



/* Modern Widget Styles - Dark Theme */
.modern-widget {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1), 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.modern-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(20, 20, 20, 0.95);
}

.modern-widget .widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
    border-bottom: none;
}

.modern-widget .widget-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-widget .widget-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.modern-widget .widget-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
    letter-spacing: -0.01em;
}

.modern-widget .widget-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-widget .widget-action:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    transform: scale(1.05);
}

.modern-widget .widget-content {
    padding: 20px 24px 24px;
    color: var(--text-primary);
}

/* Overview Stats Styles - Dark Theme */
.overview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-item {
    text-align: center;
    padding: 16px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.stat-item:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Budget Calculator Widget Styles */
.budget-calculator-section {
    margin-bottom: 2rem;
}

.budget-widget {
    max-width: 1200px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.budget-widget .widget-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.budget-icon {
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    color: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.widget-title-text h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.widget-subtitle {
    margin: 4px 0 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.budget-content {
    padding: 32px !important;
}

.budget-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Input Panel Styles */
.budget-input-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.panel-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-header i {
    color: var(--primary-color);
}

.input-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.input-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.input-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.input-card.primary-input {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.05);
}

.input-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.input-header i {
    color: var(--primary-color);
    width: 16px;
}

.input-header label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin: 0;
}

.budget-input-section {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
}

.income-input-group {
    margin-bottom: 16px;
}

.income-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.input-with-currency {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    z-index: 2;
}

.input-with-currency input {
    width: 100%;
    padding: 12px 12px 12px 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.input-with-currency input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.calculate-btn {
    width: 100%;
    padding: 12px 24px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.calculate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.budget-results {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.budget-summary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.budget-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.budget-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.budget-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.budget-label i {
    width: 16px;
    text-align: center;
}

.budget-amount {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.budget-amount.positive {
    color: var(--success);
}

.budget-amount.negative {
    color: var(--error);
}

.budget-amount:not(.positive):not(.negative) {
    color: var(--text-primary);
}

.budget-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    margin: 16px 0;
}

.budget-item.remaining {
    padding-top: 16px;
    font-size: 16px;
}

.budget-item.remaining .budget-amount {
    font-size: 24px;
}

.budget-breakdown {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
}

.budget-breakdown h4 {
    margin: 0 0 16px 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bills-list {
    max-height: 300px;
    overflow-y: auto;
}

.bill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.bill-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

.bill-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bill-name {
    font-weight: 600;
    color: white !important;
    font-size: 14px;
}

.bill-name:hover,
.bill-name:active,
.bill-name:focus,
.bill-item:hover .bill-name,
.bill-item:active .bill-name,
.bill-item.clicked .bill-name {
    color: white !important;
}

.bill-due-date {
    font-size: 12px;
    color: var(--text-muted);
}

.bill-amount {
    font-weight: 700;
    color: #9ca3af;
    font-size: 14px;
}

.no-bills-message {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-style: italic;
}

/* Responsive Design for Budget Calculator */
@media (max-width: 768px) {
    .budget-widget {
        max-width: 100%;
    }
    
    .budget-content {
        padding: 16px !important;
    }
    
    .budget-input-section {
        padding: 16px;
    }
    
    .budget-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .budget-amount {
        font-size: 16px;
    }
    
    .budget-item.remaining .budget-amount {
        font-size: 20px;
    }
    
    .bill-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Loading State Styles */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    color: #666;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(0, 122, 255, 0.2);
    border-top: 2px solid #007AFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    margin: 0;
    font-size: 14px;
    color: #666;
}



/* Mobile Responsive for Modern Widgets */
@media (max-width: 768px) {
    .modern-widget .widget-header {
        padding: 16px 20px 12px;
    }
    
    .modern-widget .widget-content {
        padding: 16px 20px 20px;
    }
    
    .modern-widget .widget-title h3 {
        font-size: 16px;
    }
    
    .overview-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 20px;
    }
}

/* Floating Action Button (FAB) Styles */
.fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007AFF 0%, #0056CC 100%);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 122, 255, 0.4), 0 6px 16px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #0056CC 0%, #003D99 100%);
}

.fab:active {
    transform: scale(0.95);
    transition: all 0.1s ease;
}

.fab i {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fab:hover i {
    transform: rotate(90deg);
}

/* Mobile FAB adjustments */
@media (max-width: 768px) {
    .fab {
        bottom: 90px; /* Above bottom navigation */
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* Notification Panel Styles */
.notifications-dropdown {
    position: relative;
}

.notification-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 400px;
    max-height: 600px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    isolation: isolate;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
    /* Ensure no backdrop filter is applied */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

/* Ensure notification panel children are not blurred */
.notification-panel * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

.notification-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--primary-gradient);
    color: white;
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.close-panel {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.close-panel:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.notification-content {
    max-height: 450px;
    overflow-y: auto;
    padding: 0;
}

.notification-section {
    border-bottom: 1px solid var(--border-color);
}

.notification-section:last-child {
    border-bottom: none;
}

.notification-section h4 {
    margin: 0;
    padding: 12px 20px 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-section h4 i {
    font-size: 12px;
    color: var(--primary-color);
}

.notification-list {
    padding: 0;
}

.notification-mails-list { padding: 8px 0; }
.notification-mails-list .notification-mail-row {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 10px 12px;
    margin: 10px 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 6px 12px;
}
.notification-mails-list .notification-mail-row .mail-from { color: #374151; font-weight: 600; }
.notification-mails-list .notification-mail-row .mail-date { color: #6b7280; }
.notification-mails-list .notification-mail-row .mail-subject { grid-column: 1 / span 2; color: #111827; }
.dark-mode .notification-mails-list .notification-mail-row { background: rgba(20,20,20,0.95); border-color: rgba(255,255,255,0.12); box-shadow: 0 8px 24px rgba(0,0,0,0.45); }
.dark-mode .notification-mails-list .notification-mail-row .mail-from { color: #e5e7eb; }
.dark-mode .notification-mails-list .notification-mail-row .mail-date { color: #9ca3af; }
.dark-mode .notification-mails-list .notification-mail-row .mail-subject { color: #f3f4f6; }

.dashboard-mail-list { padding: 8px 0; }
.dashboard-mail-list .mail-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 10px 12px;
    margin: 10px 16px;
}
.mail-row-grid { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; }
.dashboard-mail-list .mail-actions { display: flex; gap: 6px; flex-wrap: nowrap; }
.dashboard-mail-list .mail-actions .btn { padding: 4px 6px; font-size: 12px; }
.dashboard-mail-list .mail-card .mail-from { color: #374151; font-weight: 600; }
.dashboard-mail-list .mail-card .mail-date { color: #6b7280; }
.dashboard-mail-list .mail-card .mail-subject { color: #111827; margin-top: 6px; }
.mail-row-grid .mail-content { min-width: 0; }
.dashboard-mail-list .mail-subject { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dashboard-mail-list .mail-avatar { width: 36px; height: 36px; border-radius: 50%; background: #6366f1; color: #fff; display:flex; align-items:center; justify-content:center; font-weight:700; }
.dashboard-mail-list .mail-card.swipe-left { border-left: 4px solid #ef4444; background: #fff5f5; }
.dashboard-mail-list .mail-card.swipe-right { border-right: 4px solid #10b981; background: #f0fff7; }
.dark-mode .dashboard-mail-list .mail-card { background: rgba(20,20,20,0.95); border-color: rgba(255,255,255,0.12); box-shadow: 0 8px 24px rgba(0,0,0,0.45); }
.dark-mode .dashboard-mail-list .mail-card .mail-from { color: #e5e7eb; }
.dark-mode .dashboard-mail-list .mail-card .mail-date { color: #9ca3af; }
.dark-mode .dashboard-mail-list .mail-card .mail-subject { color: #f3f4f6; }
.dark-mode .dashboard-mail-list .mail-avatar { background: #4b5563; }
.dark-mode .dashboard-mail-list .mail-card.swipe-left { background: rgba(239,68,68,0.08); }
.dark-mode .dashboard-mail-list .mail-card.swipe-right { background: rgba(16,185,129,0.08); }

@media (max-width: 640px) {
  .dashboard-mail-list .mail-card { padding: 8px 10px; margin: 8px 12px; }
  .mail-row-grid { grid-template-columns: 40px 1fr; }
  .dashboard-mail-list .mail-actions { grid-column: 1 / -1; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
  .dashboard-mail-list .mail-subject { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .dashboard-mail-list .mail-from { font-size: 0.95rem; }
  .dashboard-mail-list .mail-avatar { width: 32px; height: 32px; font-size: 0.9rem; }
}

.notification-item {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: var(--bg-secondary);
}

.notification-item.loading {
    justify-content: center;
    color: var(--text-secondary);
    font-style: italic;
}

.notification-item.empty {
    justify-content: center;
    color: var(--text-secondary);
    font-style: italic;
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.notification-icon.mail {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.notification-icon.bill {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.notification-icon.task {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.notification-details {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.notification-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.notification-footer .btn-secondary {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    padding: 8px 12px;
    white-space: nowrap;
}

/* Mobile responsive for notification panel */
@media (max-width: 768px) {
    .notification-panel {
        width: 320px;
        max-width: calc(100vw - 40px);
        right: -10px;
    }
    
    .notification-footer {
        flex-direction: column;
    }
    
    .notification-footer .btn-secondary {
        flex: none;
    }
}

/* ========================================
   REDESIGNED FINANCIAL OVERVIEW STYLES
   ======================================== */

/* Redesigned Financial Overview Widget */
.redesigned-financial {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(25, 25, 25, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.redesigned-financial:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.redesigned-financial .widget-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(29, 78, 216, 0.1) 100%);
    border-bottom: none;
    padding: 1.5rem 1.5rem 0;
    margin-bottom: 0;
}

.redesigned-financial .financial-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.redesigned-financial .widget-title-text h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.redesigned-financial .widget-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0;
    font-weight: 500;
}

.redesigned-financial .widget-action {
    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: 8px;
    transition: all 0.2s ease;
}

.redesigned-financial .widget-action:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}

/* Redesigned Content */
.redesigned-content {
    padding: 1.5rem;
}

/* Quick Input Section */
.financial-quick-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.input-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.input-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

.input-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.875rem;
}

.input-header i {
    color: #3b82f6;
    font-size: 1rem;
}

.input-card input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.input-card input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(0, 0, 0, 0.4);
}

.input-card input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Financial Metrics Grid */
.financial-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.available-funds .metric-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.bills-due .metric-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.remaining-balance .metric-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.metric-trend {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.metric-trend.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.metric-trend.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.metric-content h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.metric-amount {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.metric-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    margin: 0;
}

/* Financial Status Banner */
.financial-status-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(29, 78, 216, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    transition: all 0.2s ease;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

.status-text h5 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.status-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0;
}

/* Upcoming Bills Section */
.upcoming-bills-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.section-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-weight: 600;
}

.section-title i {
    color: #3b82f6;
    font-size: 1.125rem;
}

.section-title h4 {
    margin: 0;
    font-size: 1rem;
}

.bills-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.counter-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

.counter-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.bills-list-container {
    padding: 1rem;
}

.bills-table-wrapper {
    overflow-x: auto;
}

.modern-bills-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-bills-table th {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-bills-table th i {
    color: #3b82f6;
    margin-right: 0.25rem;
}

.modern-bills-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.modern-bills-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.empty-bills-message {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.empty-bills-message i {
    font-size: 2rem;
    color: rgba(59, 130, 246, 0.5);
    margin-bottom: 0.5rem;
    display: block;
}

.empty-bills-message p {
    margin: 0;
    font-size: 0.875rem;
}

/* ========================================
   ENHANCED DARK MODE SUPPORT
   ======================================== */

/* Dark mode enhancements for existing elements */
body.dark-mode {
    background: #0a0a0a;
    color: #e0e0e0;
}

.dark-mode .widget {
    background: rgba(15, 15, 15, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .widget-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .widget-title h3 {
    color: #ffffff;
}

.dark-mode .widget-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.dark-mode .btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.dark-mode .btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}

.dark-mode .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    color: white;
}

.dark-mode .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-color: #2563eb;
}

/* Dark mode card base */
.dark-mode .bill-card,
.dark-mode .task-card,
.dark-mode .installment-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Dark mode due colors */
.dark-mode .bill-card.overdue,
.dark-mode .task-card.overdue,
.dark-mode .installment-card.overdue {
    background: rgba(239, 68, 68, 0.18) !important;
    border-color: #ef4444 !important;
    border-left: 3px solid #ef4444 !important;
}

.dark-mode .bill-card.due-soon,
.dark-mode .task-card.due-soon,
.dark-mode .installment-card.due-soon {
    background: rgba(245, 158, 11, 0.20) !important;
    border-color: #f59e0b !important;
    border-left: 3px solid #f59e0b !important;
}

.dark-mode .bill-card.due-warning,
.dark-mode .task-card.due-warning,
.dark-mode .installment-card.due-warning {
    background: rgba(245, 158, 11, 0.14) !important;
    border-color: #f59e0b !important;
    border-left: 3px solid #f59e0b !important;
}

.dark-mode .bill-card.upcoming,
.dark-mode .task-card.upcoming,
.dark-mode .installment-card.upcoming {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: #10b981 !important;
    border-left: 3px solid #10b981 !important;
}

.dark-mode input,
.dark-mode select,
.dark-mode textarea {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.dark-mode input:focus,
.dark-mode select:focus,
.dark-mode textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dark-mode input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.dark-mode table {
    background: rgba(15, 15, 15, 0.95);
}

.dark-mode th {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-mode td {
    color: rgba(255, 255, 255, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.dark-mode tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Responsive Design for Redesigned Financial Overview */
@media (max-width: 1024px) {
    .financial-metrics-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .metric-card {
        padding: 1rem;
    }
    
    .metric-amount {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .financial-quick-inputs {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .input-card {
        padding: 0.75rem;
    }
    
    .redesigned-content {
        padding: 1rem;
    }
    
    .redesigned-financial .widget-header {
        padding: 1rem;
    }
    
    .section-header {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .modern-bills-table th,
    .modern-bills-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .modern-bills-table th:nth-child(3),
    .modern-bills-table td:nth-child(3),
    .modern-bills-table th:nth-child(4),
    .modern-bills-table td:nth-child(4) {
        display: none;
    }
}

/* Visual Indicator Utility Classes */
.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-danger {
    color: var(--error) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Enhanced Visual Indicators for Due Bills */
.bill-due-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.bill-due-indicator.due-soon {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.bill-due-indicator.due-warning {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.bill-due-indicator.overdue {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.bill-due-indicator.paid {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.bill-due-indicator.unpaid {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
/* Category button group for Add Uitgave modal */
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.btn.btn-chip {
    background: #1f2937;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 18px;
    padding: 6px 12px;
    font-size: 0.9rem;
    cursor: pointer;
}
.task-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.tag-chip .remove-tag { cursor: pointer; color: #6b7280; }
.dark-mode .tag-chip { background: rgba(59, 130, 246, 0.18); color: #93c5fd; border-color: rgba(59,130,246,0.4); }
.btn.btn-chip.active {
    background: #2563eb;
    border-color: #2563eb;
}
/* Bills card overview styles */
.cards-container { margin-top: 0.5rem; }
.sort-controls { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.sort-controls .btn.sort-asc::after { content: " ▲"; font-size: 0.85em; color: #6b7280; }
.sort-controls .btn.sort-desc::after { content: " ▼"; font-size: 0.85em; color: #6b7280; }

.bill-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.bill-card,
.task-card,
.installment-card {
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.bill-card.overdue,
.task-card.overdue,
.installment-card.overdue {
  background: #fee2e2 !important; /* red-200 */
  border-color: #ef4444 !important;
  border-left: 3px solid #ef4444 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06) !important;
}

.bill-card.due-soon,
.task-card.due-soon,
.installment-card.due-soon {
  background: #fef3c7 !important; /* amber-100 */
  border-color: #f59e0b !important;
  border-left: 3px solid #f59e0b !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06) !important;
}

.bill-card.due-warning,
.task-card.due-warning,
.installment-card.due-warning {
  background: #fde68a !important; /* amber-300 */
  border-color: #f59e0b !important;
  border-left: 3px solid #f59e0b !important;
}

.bill-card.upcoming,
.task-card.upcoming,
.installment-card.upcoming {
  background: #ecfdf5 !important; /* emerald-50 */
  border-color: #10b981 !important;
  border-left: 3px solid #10b981 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06) !important;
}

.bill-card-header { display: flex; align-items: center; justify-content: space-between; gap: 0.375rem; }
.bill-card-title { display: flex; align-items: center; gap: 0.375rem; }
.bill-card-actions { display: flex; gap: 0.375rem; }
.bill-card-actions { opacity: 0.9; transition: opacity 120ms ease; }
.bill-card:hover .bill-card-actions { opacity: 1; }
.bill-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 0.375rem; }
.bill-due-date { font-weight: 500; }
.bill-card-meta .bill-due-date { color: #6b7280; }
.bill-days-remaining { font-size: 0.8em; color: #9ca3af; }
/* Title and dates styling for redesigned bill cards */
.bill-title-text { text-transform: uppercase; font-weight: 700; }
.bill-card .bill-amount { font-weight: 600; color: #2563eb; }
.bill-dates .bill-last-payment, .bill-dates .bill-next-payment { font-size: 0.85em; color: #6b7280; }

.no-data { text-align: center; }
/* Compact variant for filter buttons */
.filter-btn.compact {
  padding: 0.25rem 0.5rem;
}

/* Privacy mode: blur monetary amounts across the app */
body.privacy-mode .bill-amount,
body.privacy-mode .installment-amount,
body.privacy-mode .arrangement-amount,
body.privacy-mode .arrangement-amount-large,
body.privacy-mode .arrangement-amount-sub,
body.privacy-mode .transaction-amount,
body.privacy-mode .category-amount,
body.privacy-mode .card-amount,
body.privacy-mode .stat-number,
body.privacy-mode .stat-value,
body.privacy-mode .col-amount,
body.privacy-mode .amount,
body.privacy-mode .amount-column {
  filter: blur(8px);
}

/* Blur currency symbol and amount inputs in forms */
body.privacy-mode .currency-symbol,
body.privacy-mode .input-with-currency input {
  filter: blur(8px);
}

/* Payment arrangements: ensure detail values are blurred */
body.privacy-mode .arrangement-detail-value {
  filter: blur(8px);
}

/* Additional coverage: IDs and attribute selectors for amounts across widgets and tabs */
body.privacy-mode [id$='amount'],
body.privacy-mode [id*='amount'],
/* Dashboard stat amounts in index.html */
body.privacy-mode #due-this-month,
body.privacy-mode #available-funds,
body.privacy-mode #remaining-after-bills,
/* Monthly budget widget values */
body.privacy-mode #monthly-budget-amount,
body.privacy-mode #monthly-budget-income,
body.privacy-mode #monthly-budget-expense,
body.privacy-mode #monthly-budget-credited,
body.privacy-mode #monthly-budget-debited,
/* Uitgaven & Inkomsten totals */
body.privacy-mode #uitgaven-total-month,
body.privacy-mode #inkomsten-total-month {
  filter: blur(8px);
}

/* Extend privacy mode coverage */
/* What-if results cards */
body.privacy-mode #whatif-expense,
body.privacy-mode #whatif-income,
body.privacy-mode #whatif-net,
body.privacy-mode #whatif-results .card-info h3 {
  filter: blur(8px);
}

/* Income vs Expenses Year chart */
body.privacy-mode #incomeExpensesYearChart {
  filter: blur(6px);
  pointer-events: none;
}

/* Arrangements summary totals */
body.privacy-mode #total-arrangements,
body.privacy-mode #total-arrangement-amount,
body.privacy-mode #total-installments-count {
  filter: blur(8px);
}

body.privacy-mode #monthly-installments-total,
body.privacy-mode #next-payment-date {
  filter: blur(8px);
}

/* Ensure bills tab header totals are fully hidden while preserving layout */
body.privacy-mode #total-due-bills-amount,
body.privacy-mode #total-due-installments-amount,
body.privacy-mode #total-due-installments-amount-due-page {
  visibility: hidden;
}

/* Blur installment totals computed in calculator.js */
body.privacy-mode #total-installments-amount,
body.privacy-mode #installments-due-month {
  filter: blur(8px);
}

/* In/Out stacked bar chart and its totals */
body.privacy-mode #inoutTotals {
  filter: blur(8px);
}
body.privacy-mode #inoutStackedBarChart {
  filter: blur(6px);
  pointer-events: none; /* disable hover tooltips */
}

/* Additional bills overview amounts */
body.privacy-mode #due-bills-total,
body.privacy-mode #due-in-7-days-amount {
  filter: blur(8px);
}

/* Uitgaven categories stacked chart */
body.privacy-mode #uitgavenCategoriesStackedChart {
  filter: blur(6px);
  pointer-events: none; /* disable hover tooltips */
}

/* Bills overview period headers (hide totals text in privacy mode) */
body.privacy-mode #monthly-bills-section h3,
body.privacy-mode #weekly-bills-section h3,
body.privacy-mode #quarterly-bills-section h3,
body.privacy-mode #semi-annual-bills-section h3,
body.privacy-mode #annual-bills-section h3,
body.privacy-mode #one-time-bills-section h3 {
  filter: blur(8px);
}

/* Unpaid bills pie chart and monthly budget description */
body.privacy-mode #unpaidBillsPieChart {
  filter: blur(6px);
  pointer-events: none; /* disable tooltips/hover */
}
body.privacy-mode #monthly-budget-desc {
  filter: blur(8px);
}


/* Compact button size */
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  line-height: 1.2;
}

/* Status variants for action buttons */
.btn-success {
  background-color: #10b981; /* green */
  color: #ffffff;
}
.btn-success i { color: #10b981; }
.btn-success:hover {
  background-color: #059669;
}

.btn-warning {
  background-color: #f59e0b; /* orange */
  color: #ffffff;
}
.btn-warning i { color: #f59e0b; }
.btn-warning:hover {
  background-color: #d97706;
}

/* Function-specific action button colors */
.btn-edit {
  background-color: #2563eb; /* blue */
  color: #ffffff;
}
.btn-edit i { color: #2563eb; }
.btn-edit:hover {
  background-color: #1d4ed8;
}

.btn-delete,
.btn-danger {
  background-color: #ef4444; /* red */
  color: #ffffff;
}
.btn-danger i, .btn-delete i { color: #ef4444; }
.btn-delete:hover,
.btn-danger:hover {
  background-color: #dc2626;
}

.btn-view,
.btn-secondary {
  background-color: #6b7280; /* gray */
  color: #ffffff;
}
.btn-secondary i.fa-edit { color: #2563eb; }
.btn-view:hover,
.btn-secondary:hover {
  background-color: #4b5563;
}

/* Make Uitgaven/Inkomsten add buttons less wide */
#add-uitgave-btn,
#add-inkomsten-btn {
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  min-width: auto;
}

.bill-card-actions .btn,
.task-card .bill-card-actions .btn {
    background: transparent;
    border: none;
    color: #cbd5e1; /* muted action icons */
    padding: 4px 6px;
    border-radius: 8px;
}

.bill-card-actions .btn:hover,
.action-buttons .btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

#bills-page .action-buttons .btn-edit,
#bills-page .action-buttons .btn-delete,
#bills-page .bill-card-actions .btn-edit,
#bills-page .bill-card-actions .btn-delete {
  display: none;
}

.dark-mode .bill-card-actions .btn,
.dark-mode .task-card .bill-card-actions .btn { color: #94a3b8; }
.dark-mode .bill-card-actions .btn:hover,
.dark-mode .action-buttons .btn:hover { background: rgba(255,255,255,0.08); }

.notification-modal { position: fixed; inset: 0; z-index: 1000; }
.notification-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.notification-dialog { position: relative; max-width: 520px; margin: 5vh auto; padding: 0 1rem; }
.notification-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
    overflow: hidden;
}
.notification-list .notification-card { margin: 10px 16px; padding: 10px 12px; }
.notification-card.swipe-left { border-left: 4px solid #ef4444; background: #fff5f5; }
.notification-card.swipe-right { border-right: 4px solid #10b981; background: #f0fff7; }
.notification-card-header { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border-bottom: 1px solid #e5e7eb; }
.notification-card-title { font-weight: 700; font-size: 1rem; }
.notification-close { background: transparent; border: none; color: #6b7280; font-size: 1rem; }
.notification-card-content { padding: 1rem; }
.notification-email { border: 1px solid #e5e7eb; border-radius: 10px; background: #f9fafb; padding: 0.75rem; }
.notification-email .email-subject { font-weight: 600; margin-bottom: 0.5rem; }
.notification-email .email-meta { color: #6b7280; font-size: 0.85rem; margin-bottom: 0.5rem; }
.notification-email .email-body { color: #111827; line-height: 1.5; }
.notification-card-actions { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border-top: 1px solid #e5e7eb; }
.notification-card-actions .snooze-control { display: flex; align-items: center; gap: 0.5rem; }

.dark-mode .notification-card { background: rgba(20,20,20,0.95); border-color: rgba(255,255,255,0.12); box-shadow: 0 15px 40px rgba(0,0,0,0.55); }
.dark-mode .notification-card-header { border-color: rgba(255,255,255,0.12); }
.dark-mode .notification-card-title { color: #e5e7eb; }
.dark-mode .notification-card-content { color: #e5e7eb; }
.dark-mode .notification-email { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.dark-mode .notification-email .email-body { color: #f3f4f6; }
.dark-mode .notification-card.swipe-left { background: rgba(239,68,68,0.08); }
.dark-mode .notification-card.swipe-right { background: rgba(16,185,129,0.08); }
/* ING Connection Status Dot Label */
#ing-connect-status-btn .ing-label {
  position: relative;
  padding-left: 0.6rem; /* smaller spacing for status dot */
  font-size: 0; /* hide label text, keep dot */
}
#ing-connect-status-btn .ing-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #9ca3af; /* default neutral */
}
#ing-connect-status-btn.connected .ing-label::before {
  background: #16a34a; /* green */
}
#ing-connect-status-btn.disconnected .ing-label::before {
  background: #dc2626; /* red */
}

/* Income/Expense card amount emphasis */
.income-card .bill-amount { color: #10b981; }
.expense-card .bill-amount { color: #ef4444; }

/* No-data message style */
.no-data {
  text-align: center;
  color: #9ca3af;
  padding: 12px;
}

/* Dark mode adjustments for unified cards and helpers */
html.dark .bill-card, html.dark .task-card, html.dark .installment-card {
  background: #111827;
  border-color: #1f2937;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
html.dark .income-card .bill-amount { color: #34d399; }
html.dark .expense-card .bill-amount { color: #f87171; }
html.dark .no-data { color: #6b7280; }
