@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Courier+Prime:wght@400;700&family=Share+Tech+Mono&display=swap');

:root {
    --primary-color: #7a9b76;
    --primary-dark: #5a7a56;
    --secondary-color: #8b7355;
    --danger-color: #a84432;
    --warning-color: #d4a574;
    --success-color: #6b8e5f;
    --bg-color: #2a2d2e;
    --card-bg: rgba(45, 52, 54, 0.85);
    --text-primary: #d4d4d4;
    --text-secondary: #8a8a8a;
    --border-color: rgba(122, 155, 118, 0.4);
    --shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px 0 rgba(0, 0, 0, 0.7);
    --overlay-color: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] {
    --primary-color: #5f7a5b;
    --primary-dark: #4a5f47;
    --secondary-color: #6b5d4f;
    --danger-color: #8b3626;
    --warning-color: #b8935f;
    --success-color: #5a7350;
    --bg-color: #1a1d1e;
    --card-bg: rgba(30, 35, 36, 0.9);
    --text-primary: #c4c4c4;
    --text-secondary: #7a7a7a;
    --border-color: rgba(95, 122, 91, 0.5);
    --shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 8px 24px 0 rgba(0, 0, 0, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier Prime', monospace;
    background: #2a2d2e;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.4) 1px, transparent 1px);
    background-size: 20px 20px;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, rgba(122, 155, 118, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(139, 115, 85, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Header Styles */
header {
    background: linear-gradient(180deg, rgba(45, 52, 54, 0.95) 0%, rgba(42, 45, 46, 0.9) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 3px solid var(--primary-color);
    border-top: 1px solid rgba(122, 155, 118, 0.2);
    color: var(--text-primary);
    padding: 25px 0;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(122, 155, 118, 0.5) 50%, 
        transparent 100%);
}

header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        var(--primary-color) 0px,
        var(--primary-color) 10px,
        transparent 10px,
        transparent 20px
    );
    opacity: 0.3;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

h1 {
    font-family: 'Special Elite', cursive;
    font-size: 2.2rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(122, 155, 118, 0.3);
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0.5;
}

.header-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.5;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.7;
}

.stat-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.stat-value {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.stat-value.positive {
    color: var(--success-color);
}

.stat-value.negative {
    color: var(--danger-color);
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 0;
    box-shadow: var(--shadow), inset 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.nav-tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0.5;
}

.tab-btn {
    font-family: 'Share Tech Mono', monospace;
    padding: 10px 20px;
    border: 2px solid transparent;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tab-btn:hover {
    background: rgba(122, 155, 118, 0.2);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.tab-btn.active {
    background: rgba(122, 155, 118, 0.3);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: inset 0 0 10px rgba(122, 155, 118, 0.3);
}

.tab-btn.active::before {
    opacity: 1;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Styles */
.card {
    background: var(--card-bg);
    border-radius: 0;
    padding: 25px;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    margin-bottom: 25px;
    transition: all 0.2s ease;
    border: 2px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        transparent 100%);
    opacity: 0.5;
}

.card::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-top: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    opacity: 0.3;
}

.card:hover {
    border-left-width: 6px;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 1px;
    background: var(--primary-color);
}

.card-title {
    font-family: 'Special Elite', cursive;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

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

input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
    font-family: 'Courier Prime', monospace;
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 0;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.5);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--primary-color);
}

input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

label {
    font-family: 'Share Tech Mono', monospace;
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

label::before {
    content: '▸ ';
    color: var(--primary-color);
}

/* Button Styles */
.btn {
    font-family: 'Share Tech Mono', monospace;
    padding: 10px 24px;
    border: 2px solid;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.btn-primary {
    background: rgba(122, 155, 118, 0.3);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: rgba(122, 155, 118, 0.5);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(122, 155, 118, 0.3);
}

.btn-success {
    background: rgba(107, 142, 95, 0.3);
    color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background: rgba(107, 142, 95, 0.5);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(107, 142, 95, 0.3);
}

.btn-danger {
    background: rgba(168, 68, 50, 0.3);
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-danger:hover {
    background: rgba(168, 68, 50, 0.5);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(168, 68, 50, 0.3);
}

.btn-secondary {
    background: rgba(138, 138, 138, 0.2);
    color: var(--text-secondary);
    border-color: var(--text-secondary);
}

.btn-secondary:hover {
    background: rgba(138, 138, 138, 0.3);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-small {
    padding: 6px 14px;
    font-size: 0.75rem;
    clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

/* Category Pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.category-pill {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
}

.category-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.category-pill.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Transaction List */
.transaction-list {
    max-height: 500px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.transaction-item:hover {
    background: var(--bg-color);
}

.transaction-info {
    flex: 1;
}

.transaction-description {
    font-weight: 600;
    margin-bottom: 5px;
}

.transaction-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.transaction-amount {
    font-size: 1.25rem;
    font-weight: 700;
    margin-right: 15px;
}

.transaction-amount.income {
    color: var(--success-color);
}

.transaction-amount.expense {
    color: var(--danger-color);
}

/* Budget Progress Bars */
.budget-item {
    margin-bottom: 20px;
    padding: 18px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0;
    border: 2px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.budget-item:hover {
    background: rgba(0, 0, 0, 0.5);
    border-left-width: 6px;
}

.budget-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.budget-name {
    font-family: 'Share Tech Mono', monospace;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.budget-name::before {
    content: '▸ ';
}

.budget-amounts {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.progress-bar {
    height: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 0;
    overflow: hidden;
    border: 2px solid var(--border-color);
    position: relative;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: var(--success-color);
    transition: width 0.5s ease;
    border-radius: 0;
    position: relative;
    box-shadow: inset 0 0 10px rgba(107, 142, 95, 0.5);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
}

.progress-fill.warning {
    background: var(--warning-color);
    box-shadow: inset 0 0 10px rgba(212, 165, 116, 0.5);
}

.progress-fill.danger {
    background: var(--danger-color);
    box-shadow: inset 0 0 10px rgba(168, 68, 50, 0.5);
}

/* Savings Goals */
.goal-card {
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    padding: 22px;
    border-radius: 0;
    margin-bottom: 18px;
    border: 2px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg), inset 0 0 20px rgba(122, 155, 118, 0.1);
    transition: all 0.2s ease;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.goal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.goal-card::after {
    content: 'OBJECTIVE';
    position: absolute;
    top: 8px;
    right: 12px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: var(--primary-color);
    opacity: 0.4;
    letter-spacing: 1px;
}

.goal-card:hover {
    border-left-width: 7px;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.goal-name {
    font-family: 'Special Elite', cursive;
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.goal-progress {
    font-family: 'Share Tech Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--success-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

.goal-target {
    opacity: 0.8;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    font-family: 'Courier Prime', monospace;
}

/* Charts Container */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

/* Summary Cards */
.summary-card {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 0;
    border: 2px solid var(--border-color);
    border-left: 4px solid;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0.5;
}

.summary-card::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    opacity: 0.3;
}

.summary-card:hover {
    border-left-width: 6px;
}

.summary-card.income {
    border-left-color: var(--success-color);
}

.summary-card.expense {
    border-left-color: var(--danger-color);
}

.summary-card.savings {
    border-left-color: var(--warning-color);
}

.summary-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.summary-label::before {
    content: '// ';
    color: var(--primary-color);
}

.summary-amount {
    font-family: 'Share Tech Mono', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid;
    border-left: 5px solid;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-family: 'Courier Prime', monospace;
}

.alert::before {
    content: '!';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Special Elite', cursive;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0.3;
}

.alert-warning {
    color: var(--warning-color);
    border-color: var(--warning-color);
}

.alert-danger {
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.alert-success {
    color: var(--success-color);
    border-color: var(--success-color);
}

/* Modal */
.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: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 25px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg), var(--glow-primary);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(20px);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.close-modal {
    background: rgba(255, 0, 128, 0.2);
    border: 2px solid var(--danger-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--danger-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: var(--danger-color);
    color: white;
    transform: rotate(90deg);
    box-shadow: var(--glow-danger);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-stats {
        width: 100%;
        justify-content: space-between;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-tabs {
        overflow-x: auto;
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border: 2px solid rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0.5);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

.hidden {
    display: none;
}

/* Quick Actions Bar */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-primary);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    position: relative;
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.quick-action-btn:hover {
    background: rgba(122, 155, 118, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.quick-action-btn:hover::before {
    opacity: 1;
}

.quick-action-btn:active {
    transform: translateY(-1px);
}

.quick-action-icon {
    font-size: 2rem;
}

.quick-action-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Summary Trend */
.summary-trend {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    margin-top: 8px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 2px solid var(--primary-color);
    display: inline-block;
}

/* Dashboard Budgets */
#dashboardBudgets .budget-item {
    margin-bottom: 15px;
    padding: 15px;
}

/* Keyboard Shortcuts Hint */
.keyboard-hint {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--primary-color);
    padding: 15px;
    border-radius: 0;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    z-index: 999;
    display: none;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.keyboard-hint.show {
    display: block;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.keyboard-hint h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.keyboard-hint ul {
    list-style: none;
    padding: 0;
}

.keyboard-hint li {
    margin-bottom: 5px;
}

.keyboard-hint kbd {
    background: rgba(122, 155, 118, 0.2);
    border: 1px solid var(--primary-color);
    padding: 2px 6px;
    margin-right: 5px;
    font-family: 'Share Tech Mono', monospace;
}

/* Quick Transaction Modal */
.quick-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    border: 3px solid var(--primary-color);
    padding: 30px;
    z-index: 1001;
    min-width: 400px;
    box-shadow: var(--shadow-lg);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.quick-modal.active {
    display: block;
    animation: modalZoomIn 0.3s ease;
}

@keyframes modalZoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.quick-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.quick-modal-overlay.active {
    display: block;
}

/* Spending Predictions */
.prediction-card {
    background: rgba(122, 155, 118, 0.1);
    border: 2px solid var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-top: 15px;
}

.prediction-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.prediction-value {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }

    .quick-action-btn {
        padding: 15px 10px;
    }

    .quick-action-icon {
        font-size: 1.5rem;
    }

    .quick-action-label {
        font-size: 0.75rem;
    }

    .health-score-value {
        font-size: 3.5rem;
    }

    .summary-amount {
        font-size: 1.8rem;
    }

    .keyboard-hint {
        display: none !important;
    }

    .quick-modal {
        min-width: 90%;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .quick-actions {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }
}

/* Dark Mode Toggle */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow-lg), inset 0 0 10px rgba(122, 155, 118, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.2s ease;
    z-index: 1000;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.theme-toggle::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    border-top: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    opacity: 0.5;
}

.theme-toggle:hover {
    background: rgba(122, 155, 118, 0.2);
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Category Icons */
.category-icon {
    display: inline-block;
    width: 45px;
    height: 45px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-right: 12px;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
    border-radius: 0;
    border: 2px solid transparent;
    border-left: 3px solid var(--border-color);
}

.transaction-item:hover {
    background: rgba(0, 0, 0, 0.5);
    border-left-color: var(--primary-color);
    border-left-width: 5px;
}

.transaction-item:hover .category-icon {
    border-color: var(--primary-color);
}

.transaction-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.transaction-info {
    flex: 1;
}

.transaction-description {
    font-family: 'Share Tech Mono', monospace;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.transaction-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: 'Courier Prime', monospace;
}

.transaction-meta::before {
    content: '// ';
    color: var(--primary-color);
}

.transaction-amount {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    margin-right: 15px;
}

.transaction-amount.income {
    color: var(--success-color);
}

.transaction-amount.expense {
    color: var(--danger-color);
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    font-family: 'Courier Prime', monospace;
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 0;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.search-input:focus {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--primary-color);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Date Range Filter */
.date-range-filter {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.date-range-filter label {
    margin: 0;
    font-size: 0.875rem;
}

.date-range-filter input[type="date"] {
    padding: 8px 12px;
    font-size: 0.875rem;
}

/* Financial Health Score */
.health-score {
    text-align: center;
    padding: 35px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    border-radius: 0;
    margin-bottom: 25px;
    border: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg), inset 0 0 20px rgba(122, 155, 118, 0.1);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.health-score::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        var(--primary-color) 0px,
        var(--primary-color) 20px,
        transparent 20px,
        transparent 40px
    );
}

.health-score::after {
    content: 'STATUS';
    position: absolute;
    top: 10px;
    right: 15px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--primary-color);
    opacity: 0.5;
    letter-spacing: 2px;
}

.health-score-value {
    font-family: 'Special Elite', cursive;
    font-size: 5rem;
    font-weight: 400;
    margin: 20px 0;
    color: var(--primary-color);
    text-shadow: 
        3px 3px 0 rgba(0, 0, 0, 0.8),
        0 0 20px rgba(122, 155, 118, 0.5);
    position: relative;
    z-index: 1;
}

.health-score-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
}

.health-score-label::before {
    content: '[ ';
    color: var(--primary-color);
}

.health-score-label::after {
    content: ' ]';
    color: var(--primary-color);
}

.health-score-description {
    margin-top: 15px;
    font-size: 0.95rem;
    opacity: 0.8;
    position: relative;
    z-index: 1;
    font-family: 'Courier Prime', monospace;
}

/* Bill Reminders */
.reminder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    margin-bottom: 15px;
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reminder-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--warning-color);
    box-shadow: 0 0 10px var(--warning-color);
}

.reminder-item:hover {
    transform: translateX(5px);
    border-color: var(--warning-color);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.reminder-info {
    flex: 1;
}

.reminder-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reminder-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.reminder-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--danger-color);
    text-shadow: var(--glow-danger);
}

/* Comparison Cards */
.comparison-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comparison-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--glow-primary);
    border-color: var(--primary-color);
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comparison-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comparison-change {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.comparison-change.positive {
    color: var(--success-color);
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--success-color);
    box-shadow: var(--glow-success);
}

.comparison-change.negative {
    color: var(--danger-color);
    background: rgba(255, 0, 128, 0.1);
    border: 1px solid var(--danger-color);
    box-shadow: var(--glow-danger);
}

/* Export Options */
.export-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Spending Limit Badge */
.limit-badge {
    font-family: 'Orbitron', sans-serif;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid;
    backdrop-filter: blur(10px);
}

.limit-badge.safe {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success-color);
    border-color: var(--success-color);
    box-shadow: var(--glow-success);
}

.limit-badge.warning {
    background: rgba(255, 215, 0, 0.15);
    color: var(--warning-color);
    border-color: var(--warning-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.limit-badge.danger {
    background: rgba(255, 0, 128, 0.15);
    color: var(--danger-color);
    border-color: var(--danger-color);
    box-shadow: var(--glow-danger);
}

/* Enhanced Transaction Item */
.transaction-item:hover {
    background: var(--bg-color);
    transform: translateX(5px);
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--text-primary);
    color: var(--card-bg);
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Enhanced Modal */
.modal-content {
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Print Styles */
@media print {
    .theme-toggle,
    .nav-tabs,
    .btn,
    header {
        display: none;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}