:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --action-edit: #10b981;
    --action-info: #0ea5e9;
    --action-delete: #f43f5e;
    --action-warning: #f59e0b;
    --action-save: #6366f1;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.15) 0px, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    padding-top: 100px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Navigation */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 15px 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

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

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

/* Tables */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 15px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--glass-border);
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.btn-info {
    background: #0ea5e9;
    color: white;
}

.btn-info:hover {
    background: #0284c7;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.btn-excel {
    background: #f59e0b !important;
    color: white !important;
}

.btn-excel:hover {
    background: #d97706 !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.btn-pdf {
    background: #06b6d4 !important;
    color: white !important;
}

.btn-pdf:hover {
    background: #0891b2 !important;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

/* Specific Action Buttons */
.btn-action-edit {
    background: var(--action-edit);
    color: white;
}

.btn-action-edit:hover {
    background: #059669;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.btn-action-info {
    background: var(--action-info);
    color: white;
}

.btn-action-info:hover {
    background: #0284c7;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
}

.btn-action-delete {
    background: var(--action-delete);
    color: white;
}

.btn-action-delete:hover {
    background: #e11d48;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.5);
}

.btn-action-warning {
    background: var(--action-warning);
    color: white;
}

.btn-action-warning:hover {
    background: #d97706;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.btn-action-save {
    background: var(--action-save);
    color: white;
}

.btn-action-save:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    background: rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.checkbox-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.checkbox-item input {
    width: auto;
    margin-right: 10px;
}

/* Animations */
.animate-in {
    animation: fadeIn 0.5s ease forwards;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Charts and Filters */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    align-items: end;
}

.chart-container {
    height: 400px;
    position: relative;
    margin-top: 20px;
}

footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}