@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --lavender: #E6D7FF;
    --amethyst: #9B5DE5;
    --deep-indigo: #4A235A;
    --dark-purple: #1a0a2e;
    --darker-purple: #0f0518;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, 
        var(--dark-purple) 0%, 
        var(--darker-purple) 25%, 
        #16082a 50%, 
        var(--dark-purple) 75%, 
        #2d1b4e 100%);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}

/* ========== Loading Screen ========== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--dark-purple);
    z-index: 9999;
}

.loading-spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(155, 93, 229, 0.1);
    border-top: 4px solid var(--amethyst);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ========== Cursor Particles ========== */
.cursor-particle {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, var(--amethyst) 0%, transparent 70%);
    animation: particleFade 1s ease-out forwards;
    z-index: 9998;
}

@keyframes particleFade {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0); }
}

/* ========== Background Particles ========== */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.bg-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(155, 93, 229, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: bgFloat 20s infinite ease-in-out;
}

@keyframes bgFloat {
    0%, 100% { transform: translateY(100vh) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-100vh) translateX(100px) rotate(720deg); opacity: 0; }
}

/* ========== Layout ========== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ========== Sidebar ========== */
.sidebar {
    width: 280px;
    min-height: 100vh;
    background: linear-gradient(180deg, 
        rgba(155, 93, 229, 0.08) 0%, 
        rgba(74, 35, 90, 0.12) 50%, 
        rgba(155, 93, 229, 0.08) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(155, 93, 229, 0.2);
    padding: 24px 16px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 24px;
    border-bottom: 1px solid rgba(155, 93, 229, 0.2);
    margin-bottom: 24px;
}

.sidebar-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--amethyst) 0%, var(--deep-indigo) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(155, 93, 229, 0.3);
}

.sidebar-logo-icon i {
    font-size: 24px;
    background: linear-gradient(135deg, var(--lavender), var(--amethyst), var(--deep-indigo));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: holographic 3s ease infinite;
}

@keyframes holographic {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.sidebar-logo-text h1 {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, white, var(--lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-logo-text p {
    font-size: 11px;
    color: rgba(155, 93, 229, 0.7);
}

/* ========== Navigation ========== */
.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    color: rgba(155, 93, 229, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 4px;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(155, 93, 229, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item:hover::before {
    opacity: 1;
}

.nav-item:hover {
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(155, 93, 229, 0.2) 0%, rgba(74, 35, 90, 0.3) 100%);
    border: 1px solid rgba(155, 93, 229, 0.3);
    box-shadow: 0 4px 20px rgba(155, 93, 229, 0.2);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--amethyst);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--amethyst);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: rgba(155, 93, 229, 0.7);
    transition: color 0.3s ease;
}

.nav-item.active i,
.nav-item:hover i {
    color: var(--amethyst);
    text-shadow: 0 0 10px var(--amethyst);
}

.nav-item span {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.nav-item.active span,
.nav-item:hover span {
    color: white;
}

.nav-item .badge {
    margin-left: auto;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
}

/* ========== Main Content ========== */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 24px;
    min-height: 100vh;
}

/* ========== Header ========== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 24px;
    background: linear-gradient(135deg, 
        rgba(155, 93, 229, 0.08) 0%, 
        rgba(74, 35, 90, 0.12) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(155, 93, 229, 0.2);
    border-radius: 16px;
}

.header-left h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.header-left p {
    font-size: 14px;
    color: rgba(155, 93, 229, 0.7);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-search {
    position: relative;
}

.header-search input {
    width: 300px;
    padding: 12px 16px 12px 44px;
    background: rgba(155, 93, 229, 0.05);
    border: 1px solid rgba(155, 93, 229, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.header-search input:focus {
    background: rgba(155, 93, 229, 0.1);
    border-color: rgba(155, 93, 229, 0.4);
    box-shadow: 0 0 20px rgba(155, 93, 229, 0.2);
    outline: none;
}

.header-search input::placeholder {
    color: rgba(155, 93, 229, 0.5);
}

.header-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(155, 93, 229, 0.5);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(155, 93, 229, 0.1);
    border: 1px solid rgba(155, 93, 229, 0.2);
    border-radius: 12px;
    color: rgba(155, 93, 229, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.header-btn:hover {
    background: rgba(155, 93, 229, 0.2);
    color: var(--amethyst);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(155, 93, 229, 0.3);
}

.header-btn .notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 8px;
    background: rgba(155, 93, 229, 0.1);
    border: 1px solid rgba(155, 93, 229, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-menu:hover {
    background: rgba(155, 93, 229, 0.2);
    transform: translateY(-2px);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--amethyst) 0%, var(--deep-indigo) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-info {
    text-align: left;
}

.user-info .name {
    font-size: 13px;
    font-weight: 600;
}

.user-info .role {
    font-size: 11px;
    color: rgba(155, 93, 229, 0.7);
}

/* ========== Glass Card ========== */
.glass-card {
    background: linear-gradient(135deg, 
        rgba(155, 93, 229, 0.08) 0%, 
        rgba(74, 35, 90, 0.12) 50%, 
        rgba(155, 93, 229, 0.08) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(155, 93, 229, 0.2);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(155, 93, 229, 0.1);
    border-color: rgba(155, 93, 229, 0.3);
}

/* ========== Stats Cards ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    position: relative;
    padding: 24px;
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    position: relative;
}

.stat-card .stat-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, var(--amethyst), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover .stat-icon::after {
    opacity: 1;
    animation: neonPulse 2s infinite;
}

@keyframes neonPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.stat-card.users .stat-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.3) 100%);
    color: #60a5fa;
}

.stat-card.posts .stat-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.3) 100%);
    color: #34d399;
}

.stat-card.reports .stat-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.3) 100%);
    color: #fbbf24;
}

.stat-card.revenue .stat-icon {
    background: linear-gradient(135deg, rgba(155, 93, 229, 0.2) 0%, rgba(124, 58, 237, 0.3) 100%);
    color: var(--amethyst);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(135deg, white, var(--lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 8px;
}

.stat-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.stat-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

/* ========== Charts ========== */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    padding: 24px;
}

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

.chart-title {
    font-size: 18px;
    font-weight: 600;
}

.chart-actions {
    display: flex;
    gap: 8px;
}

.chart-btn {
    padding: 8px 16px;
    background: rgba(155, 93, 229, 0.1);
    border: 1px solid rgba(155, 93, 229, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-btn:hover,
.chart-btn.active {
    background: rgba(155, 93, 229, 0.2);
    color: white;
    border-color: rgba(155, 93, 229, 0.4);
}

/* ========== Tables ========== */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: rgba(155, 93, 229, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 16px;
    background: rgba(155, 93, 229, 0.05);
    border-top: 1px solid rgba(155, 93, 229, 0.1);
    border-bottom: 1px solid rgba(155, 93, 229, 0.1);
    transition: all 0.3s ease;
}

.data-table tr td:first-child {
    border-left: 1px solid rgba(155, 93, 229, 0.1);
    border-radius: 12px 0 0 12px;
}

.data-table tr td:last-child {
    border-right: 1px solid rgba(155, 93, 229, 0.1);
    border-radius: 0 12px 12px 0;
}

.data-table tbody tr:hover td {
    background: rgba(155, 93, 229, 0.1);
    border-color: rgba(155, 93, 229, 0.2);
}

/* ========== Badges & Status ========== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

.badge.active,
.badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge.blocked,
.badge.error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge.pending,
.badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge.info {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge.purple {
    background: rgba(155, 93, 229, 0.1);
    color: var(--amethyst);
    border: 1px solid rgba(155, 93, 229, 0.2);
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--amethyst) 0%, #7B2CBF 50%, #5A189A 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(155, 93, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(155, 93, 229, 0.4);
}

.btn-secondary {
    background: rgba(155, 93, 229, 0.1);
    border: 1px solid rgba(155, 93, 229, 0.3);
    color: var(--amethyst);
}

.btn-secondary:hover {
    background: rgba(155, 93, 229, 0.2);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.4);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(155, 93, 229, 0.05);
    border: 1px solid rgba(155, 93, 229, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    background: rgba(155, 93, 229, 0.1);
    border-color: rgba(155, 93, 229, 0.4);
    box-shadow: 0 0 20px rgba(155, 93, 229, 0.2);
    outline: none;
}

.form-input::placeholder {
    color: rgba(155, 93, 229, 0.4);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239B5DE5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-select option {
    background: var(--dark-purple);
    color: white;
}

/* ========== Modal ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, 
        rgba(26, 10, 46, 0.95) 0%, 
        rgba(15, 5, 24, 0.98) 100%);
    border: 1px solid rgba(155, 93, 229, 0.3);
    border-radius: 24px;
    padding: 32px;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(155, 93, 229, 0.2);
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(155, 93, 229, 0.1);
    border: 1px solid rgba(155, 93, 229, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(155, 93, 229, 0.2);
}

/* ========== User Avatar ========== */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amethyst) 0%, var(--deep-indigo) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.avatar.large {
    width: 80px;
    height: 80px;
    font-size: 28px;
    border-radius: 20px;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-cell-info {
    display: flex;
    flex-direction: column;
}

.user-cell-name {
    font-weight: 500;
    color: white;
}

.user-cell-email {
    font-size: 12px;
    color: rgba(155, 93, 229, 0.7);
}

/* ========== Quick Actions ========== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    cursor: pointer;
    text-align: center;
}

.quick-action:hover {
    transform: translateY(-4px);
}

.quick-action-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, rgba(155, 93, 229, 0.2) 0%, rgba(74, 35, 90, 0.3) 100%);
    color: var(--amethyst);
    transition: all 0.3s ease;
}

.quick-action:hover .quick-action-icon {
    background: linear-gradient(135deg, var(--amethyst) 0%, var(--deep-indigo) 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(155, 93, 229, 0.4);
}

.quick-action span {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(155, 93, 229, 0.1);
    border: 1px solid rgba(155, 93, 229, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--amethyst);
    border-color: var(--amethyst);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== Filter Bar ========== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(155, 93, 229, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(155, 93, 229, 0.1);
}

.filter-bar .form-input,
.filter-bar .form-select {
    width: auto;
    min-width: 180px;
}

/* ========== Tabs ========== */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    padding: 4px;
    background: rgba(155, 93, 229, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(155, 93, 229, 0.1);
}

.tab {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab:hover {
    color: white;
}

.tab.active {
    background: linear-gradient(135deg, rgba(155, 93, 229, 0.3) 0%, rgba(74, 35, 90, 0.4) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(155, 93, 229, 0.2);
}

/* ========== Toast Notifications ========== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(26, 10, 46, 0.95) 0%, rgba(15, 5, 24, 0.98) 100%);
    border: 1px solid rgba(155, 93, 229, 0.3);
    border-radius: 12px;
    min-width: 300px;
    animation: toastSlide 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.toast.success {
    border-left: 4px solid #34d399;
}

.toast.error {
    border-left: 4px solid #f87171;
}

.toast.warning {
    border-left: 4px solid #fbbf24;
}

.toast.info {
    border-left: 4px solid #60a5fa;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast.success .toast-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.toast-close {
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.3s ease;
}

.toast-close:hover {
    color: white;
}

/* ========== Empty State ========== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(155, 93, 229, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: rgba(155, 93, 229, 0.5);
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    max-width: 300px;
}

/* ========== Responsive ========== */
@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        gap: 16px;
    }
    
    .header-search input {
        width: 100%;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    .filter-bar .form-input,
    .filter-bar .form-select {
        width: 100%;
    }
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(155, 93, 229, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(155, 93, 229, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(155, 93, 229, 0.5);
}

/* ========== Priority Colors ========== */
.priority-urgent {
    color: #ef4444;
}

.priority-high {
    color: #f97316;
}

.priority-medium {
    color: #fbbf24;
}

.priority-low {
    color: #34d399;
}

/* ========== Activity Heatmap ========== */
.heatmap-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.heatmap-cell {
    aspect-ratio: 1;
    border-radius: 4px;
    background: rgba(155, 93, 229, 0.1);
    transition: all 0.3s ease;
}

.heatmap-cell.level-1 { background: rgba(155, 93, 229, 0.2); }
.heatmap-cell.level-2 { background: rgba(155, 93, 229, 0.4); }
.heatmap-cell.level-3 { background: rgba(155, 93, 229, 0.6); }
.heatmap-cell.level-4 { background: rgba(155, 93, 229, 0.8); }
.heatmap-cell.level-5 { background: var(--amethyst); }

/* ========== Dropdown Menu ========== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    margin-top: 8px;
    background: linear-gradient(135deg, rgba(26, 10, 46, 0.98) 0%, rgba(15, 5, 24, 0.98) 100%);
    border: 1px solid rgba(155, 93, 229, 0.3);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(155, 93, 229, 0.2);
    color: white;
}

.dropdown-item i {
    width: 16px;
    color: rgba(155, 93, 229, 0.7);
}

.dropdown-divider {
    height: 1px;
    background: rgba(155, 93, 229, 0.2);
    margin: 8px 0;
}
