/* Futuristic Theme - Complete UI Change */
:root {
    /* Base colors */
    --body-bg: #080c14;
    --text-color: #7fd9ff;
    --header-bg: #0a1428;
    --panel-bg: #101830;
    --panel-header-bg: #1a2842;
    --panel-border: #2a4580;
    --income-header-bg: #0f3a4c;
    --expense-header-bg: #4c1a29;
    --button-primary: #00c3ff;
    --button-primary-hover: #33d6ff;
    --button-secondary: #7352c9;
    --button-secondary-hover: #8e6fde;
    --button-danger: #ff3366;
    --button-danger-hover: #ff5c85;
    --button-add: #00ffa3;
    --button-add-hover: #33ffb6;
    --balance-total-bg: #0d2b45;
    --balance-total-color: #00eaff;
    --chart-colors: #00c3ff;
    --footer-color: #4a6b8c;
    --input-border: #2a4580;
    --modal-overlay: rgba(0, 3, 15, 0.85);
    --chat-user-bubble: #1a2842;
    --chat-ai-bubble: #0f3a4c;
    --success-bg: #0a3b32;
    --success-color: #00ffa3;
    --error-bg: #4c1a29;
    --error-color: #ff3366;
    --helper-bg: #353120;
    --helper-color: #ffdb00;
    --scrollbar-thumb: #00c3ff;
    --scrollbar-track: #0a1428;
}

/* Futuristic theme specific styling */
body.theme-futuristic {
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    background: linear-gradient(135deg, #050914 0%, #0c1f3c 100%);
    position: relative;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    background: #000000; /* Set your desired background color here */
}

/* Add animated background grid */
body.theme-futuristic:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(rgba(0, 195, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 195, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    pointer-events: none;
}

/* Header styling - centered title with futuristic elements */
body.theme-futuristic header {
    border-radius: 0;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(90deg, rgba(10, 20, 40, 0.4) 0%, rgba(20, 40, 80, 0.9) 50%, rgba(10, 20, 40, 0.4) 100%);
    position: relative;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 195, 255, 0.1);
    border-bottom: 1px solid var(--panel-border);
    display: block; /* Override flex */
}

body.theme-futuristic h1 {
    font-weight: 600;
    font-size: 32px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 auto 15px;
    color: var(--button-primary);
    position: relative;
    display: inline-block;
}

body.theme-futuristic h1:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--button-primary), transparent);
}

body.theme-futuristic .date-time-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 15px;
}

body.theme-futuristic .date, 
body.theme-futuristic .time {
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-color);
    font-size: 16px;
    margin: 0;
    position: relative;
    padding-left: 20px;
}

body.theme-futuristic .date:before {
    content: "\f017";
    font-family: "Font Awesome 6 Free";
    position: absolute;
    left: 0;
    top: 0;
}

body.theme-futuristic .time:before {
    content: "\f073";
    font-family: "Font Awesome 6 Free";
    position: absolute;
    left: 0;
    top: 0;
}

/* Month navigation - unique hexagonal style */
body.theme-futuristic .month-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    gap: 30px;
    position: relative;
    height: 60px;
    border: 1px solid var(--panel-border);
    border-radius: 30px;
    padding: 0 20px;
    background: rgba(26, 40, 66, 0.5);
    box-shadow: 0 0 20px rgba(0, 195, 255, 0.1);
}

body.theme-futuristic #current-month {
    font-family: 'Share Tech Mono', monospace;
    font-size: 20px;
    color: var(--button-primary);
    text-align: center;
    min-width: 200px;
    position: relative;
}

body.theme-futuristic #current-month:before {
    content: "";
    position: absolute;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--button-primary), transparent);
    bottom: -8px;
    left: 0;
}

body.theme-futuristic .nav-arrow {
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    border: 1px solid var(--panel-border);
    background: linear-gradient(135deg, rgba(26, 40, 66, 0.7), rgba(10, 20, 40, 0.7));
}

body.theme-futuristic .nav-arrow:hover {
    color: var(--button-primary);
    border-color: var(--button-primary);
    box-shadow: 0 0 15px var(--button-primary);
}

body.theme-futuristic .this-month-btn {
    position: absolute;
    right: 15px;
    background: linear-gradient(135deg, var(--button-primary), #005e85);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border: none;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

body.theme-futuristic .this-month-btn:hover {
    box-shadow: 0 0 15px var(--button-primary);
    transform: translateY(-2px);
}

/* Dashboard layout - completely restructured */
body.theme-futuristic .dashboard {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

/* Panel styling */
body.theme-futuristic .panel {
    background: rgba(16, 24, 48, 0.7);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 195, 255, 0.05);
    position: relative;
}

body.theme-futuristic .panel:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--panel-border), transparent);
    opacity: 0.6;
}

body.theme-futuristic .panel h3 {
    font-weight: 600;
    font-size: 20px;
    padding: 15px 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--button-primary);
    background: linear-gradient(90deg, rgba(26, 40, 66, 0.7) 0%, rgba(42, 69, 128, 0.2) 100%);
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
}

body.theme-futuristic .panel h3 i {
    margin-right: 10px;
    color: var(--button-primary);
    font-size: 18px;
}

body.theme-futuristic .panel-content {
    padding: 20px;
}

/* Income and Expenses Panels - Full width with altered layout */
body.theme-futuristic .income-panel,
body.theme-futuristic .expenses-panel {
    width: 100%;
    margin-bottom: 30px;
}

/* Income panel - one box per row */
body.theme-futuristic .income-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.theme-futuristic .income-panel .category {
    margin-bottom: 20px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

body.theme-futuristic .income-panel .category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 195, 255, 0.1);
}

body.theme-futuristic .income-panel h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    padding: 15px;
    background: linear-gradient(90deg, rgba(15, 58, 76, 0.8) 0%, rgba(10, 20, 40, 0.5) 100%);
    cursor: pointer;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--panel-border);
}

/* Button styling */
body.theme-futuristic .btn {
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
}

body.theme-futuristic .btn:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

body.theme-futuristic .btn:hover:after {
    left: 0;
}

body.theme-futuristic .btn-primary {
    background: linear-gradient(135deg, var(--button-primary) 0%, #005e85 100%);
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.3);
}

body.theme-futuristic .btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 195, 255, 0.5);
    transform: translateY(-2px);
}

body.theme-futuristic .btn-secondary {
    background: linear-gradient(135deg, var(--button-secondary) 0%, #52397C 100%);
    box-shadow: 0 0 10px rgba(115, 82, 201, 0.3);
}

body.theme-futuristic .btn-secondary:hover {
    box-shadow: 0 0 20px rgba(115, 82, 201, 0.5);
    transform: translateY(-2px);
}

body.theme-futuristic .btn-danger {
    background: linear-gradient(135deg, var(--button-danger) 0%, #cc194d 100%);
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

body.theme-futuristic .btn-danger:hover {
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.5);
    transform: translateY(-2px);
}

body.theme-futuristic .btn-add {
    width: 28px;
    height: 28px;
    font-size: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--button-add) 0%, #00cc82 100%);
    box-shadow: 0 0 10px rgba(0, 255, 163, 0.3);
}

body.theme-futuristic .btn-add:hover {
    box-shadow: 0 0 20px rgba(0, 255, 163, 0.5);
    transform: scale(1.1);
}

/* Item styling */
body.theme-futuristic .item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(42, 69, 128, 0.3);
    transition: background-color 0.2s;
}

body.theme-futuristic .item:hover {
    background-color: rgba(42, 69, 128, 0.2);
}

body.theme-futuristic .item-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 500;
}

body.theme-futuristic .item-amount {
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    margin-right: 15px;
}

/* Balance panel - Special highlight */
body.theme-futuristic .balance-panel {
    width: 100%;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

body.theme-futuristic .balance-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(13, 43, 69, 0.8) 0%, rgba(10, 20, 40, 0.5) 100%);
    padding: 25px;
    border-radius: 8px;
    margin-top: 15px;
    position: relative;
    border: 1px solid var(--panel-border);
}

body.theme-futuristic .balance-total:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--balance-total-color), transparent);
    opacity: 0.6;
}

body.theme-futuristic .balance-total span {
    font-size: 32px;
    font-weight: bold;
    color: var(--balance-total-color);
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.5);
}

/* Chat panel */
body.theme-futuristic .chat-panel {
    width: 100%;
    margin-bottom: 20px;
}

body.theme-futuristic #chat-messages {
    background-color: rgba(10, 20, 40, 0.5);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 15px;
    max-height: 250px;
}

body.theme-futuristic .chat-bubble {
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    position: relative;
    max-width: 80%;
    font-family: 'Rajdhani', sans-serif;
}

body.theme-futuristic .user-bubble {
    background: linear-gradient(135deg, rgba(26, 40, 66, 0.9) 0%, rgba(26, 40, 66, 0.7) 100%);
    margin-left: auto;
    border-top-right-radius: 0;
    border-left: 2px solid var(--button-primary);
}

body.theme-futuristic .ai-bubble {
    background: linear-gradient(135deg, rgba(15, 58, 76, 0.9) 0%, rgba(15, 58, 76, 0.7) 100%);
    margin-right: auto;
    border-top-left-radius: 0;
    border-right: 2px solid var(--button-add);
}

body.theme-futuristic #chat-message {
    background-color: rgba(10, 20, 40, 0.7);
    border: 1px solid var(--panel-border);
    border-radius: 25px;
    padding: 12px 20px;
    height: auto;
    color: var(--text-color);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
}

body.theme-futuristic #chat-submit {
    border-radius: 25px;
    height: auto;
    padding: 12px 25px;
    width: auto;
    background: linear-gradient(135deg, var(--button-primary) 0%, #005e85 100%);
}

/* Expenses grid - one item per row for better visibility */
body.theme-futuristic .expenses-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.theme-futuristic .expense-category {
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    margin-bottom: 15px;
    position: relative;
}

body.theme-futuristic .expense-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 195, 255, 0.1);
}

body.theme-futuristic .expense-category h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    padding: 15px;
    background: linear-gradient(90deg, rgba(76, 26, 41, 0.8) 0%, rgba(10, 20, 40, 0.5) 100%);
    cursor: pointer;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--panel-border);
}

/* Form controls */
body.theme-futuristic input, 
body.theme-futuristic select {
    background-color: rgba(10, 20, 40, 0.7);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    padding: 12px 15px;
    color: var(--text-color);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    transition: all 0.3s;
}

body.theme-futuristic input:focus,
body.theme-futuristic select:focus {
    border-color: var(--button-primary);
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.3);
    outline: none;
}

body.theme-futuristic label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: var(--button-primary);
    letter-spacing: 0.5px;
}

/* Modal styling */
body.theme-futuristic #modal-overlay {
    background-color: var(--modal-overlay);
    backdrop-filter: blur(5px);
}

body.theme-futuristic #modal-content {
    background: linear-gradient(135deg, rgba(16, 24, 48, 0.95) 0%, rgba(10, 20, 40, 0.95) 100%);
    border-radius: 8px;
    border: 1px solid var(--panel-border);
    box-shadow: 0 0 30px rgba(0, 195, 255, 0.2);
    padding: 25px;
}

body.theme-futuristic #modal-close {
    color: var(--text-color);
    font-size: 28px;
    transition: all 0.3s;
}

body.theme-futuristic #modal-close:hover {
    color: var(--button-primary);
    transform: rotate(90deg);
}

/* Footer */
body.theme-futuristic footer {
    text-align: center;
    padding: 25px 0;
    color: var(--footer-color);
    font-size: 14px;
    letter-spacing: 0.5px;
    border-top: 1px solid var(--panel-border);
    margin-top: 30px;
    background: linear-gradient(180deg, rgba(10, 20, 40, 0) 0%, rgba(10, 20, 40, 0.5) 100%);
}

/* Scrollbar styling */
body.theme-futuristic ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body.theme-futuristic ::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 4px;
}

body.theme-futuristic ::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

body.theme-futuristic ::-webkit-scrollbar-thumb:hover {
    background: var(--button-primary-hover);
}

/* Payment status */
body.theme-futuristic .payment-status {
    width: 26px;
    height: 26px;
    line-height: 26px;
    margin-right: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 14px;
}

body.theme-futuristic .payment-status.paid {
    box-shadow: 0 0 10px rgba(0, 255, 163, 0.3);
}

/* Stacked layout for mobile */
@media (max-width: 768px) {
    body.theme-futuristic .date-time-container {
        flex-direction: column;
        gap: 10px;
    }
    
    body.theme-futuristic .date, 
    body.theme-futuristic .time {
        font-size: 14px;
    }
    
    body.theme-futuristic h1 {
        font-size: 24px;
    }
    
    body.theme-futuristic .balance-total span {
        font-size: 24px;
    }
    
    body.theme-futuristic .panel h3 {
        font-size: 18px;
    }
}