/* ===== MODERN, PREMIUM STYLING WITH MONOCHROME ICONS ===== */

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary: #6b7280;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-900);
    line-height: 1.5;
    background-color: var(--gray-50);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

/* ===== LAYOUT ===== */
.min-h-screen {
    min-height: 100vh;
}

.flex {
    display: flex;
}

.flex-1 {
    flex: 1;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

/* ===== CONTAINERS ===== */
.max-w-7xl {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

/* ===== DASHBOARD LAYOUT - FIXED ===== */
.dashboard-layout {
    background-color: var(--gray-50);
    height: 100vh;
    overflow: hidden;
}

.dashboard-container {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: var(--gray-50);
}

/* Modern Sidebar - Fixed width, no gaps */
.modern-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
    color: white;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    z-index: 50;
}

/* Main Content - Takes remaining space */
.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--gray-50);
    width: calc(100% - 280px);
}

/* Dashboard Header */
.dashboard-header {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
}

/* Scrollable Content */
.dashboard-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

/* ===== SIDEBAR COMPONENTS ===== */
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-light);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo-badge {
    font-size: 0.625rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    width: fit-content;
    margin-top: 0.125rem;
}

/* User Profile */
.user-profile {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-image {
    position: relative;
}

.avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    color: white;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #312e81;
}

.status-indicator.online { background: var(--success); }
.status-indicator.away { background: var(--warning); }
.status-indicator.busy { background: var(--danger); }

.profile-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.profile-info p {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1rem;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    margin: 0.125rem 0;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    position: relative;
}

.nav-item i {
    width: 20px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item:hover i {
    color: white;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-item.active i {
    color: var(--primary-light);
}

.nav-badge {
    margin-left: auto;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
}

.nav-badge.warning { background: var(--warning); color: white; }
.nav-badge.success { background: var(--success); color: white; }
.nav-badge.danger { background: var(--danger); color: white; }

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.5rem;
}

.footer-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-link.logout:hover {
    background: var(--danger);
    color: white;
}

/* ===== STATS CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid var(--gray-200);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.revenue { background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: white; }
.stat-icon.users { background: linear-gradient(135deg, #34d399, var(--success)); color: white; }
.stat-icon.events { background: linear-gradient(135deg, #fbbf24, var(--warning)); color: white; }
.stat-icon.tickets { background: linear-gradient(135deg, #f87171, var(--danger)); color: white; }

.stat-details {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin: 0.25rem 0;
}

.stat-change {
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-change.positive { color: var(--success); }
.stat-change.negative { color: var(--danger); }

/* ===== CHARTS ===== */
.charts-row {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.chart-card.main-chart { height: 400px; }
.chart-card.pie-chart { height: 400px; }

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.chart-title h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.chart-title p {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.chart-legend {
    display: flex;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.registrations { background: var(--primary); }
.legend-dot.revenue { background: var(--success); }

.chart-wrapper {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
}

.pie-wrapper { height: 200px; }

.category-list {
    margin-top: 1rem;
    display: grid;
    gap: 0.75rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.category-color {
    width: 8px;
    height: 8px;
    border-radius: 4px;
}

.category-name {
    flex: 1;
    color: var(--gray-600);
}

.category-count {
    font-weight: 600;
    color: var(--gray-900);
}

/* ===== TABLES ===== */
.tables-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.table-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    height: 450px;
}

.table-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.table-title h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.table-title p {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.view-all {
    font-size: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

.table-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

/* Activity Items */
.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 12px;
    transition: background 0.2s;
}

.activity-item:hover {
    background: var(--gray-50);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.activity-icon.registration { background: #ede9fe; color: var(--primary); }
.activity-icon.event { background: #fef3c7; color: var(--warning); }
.activity-icon.organizer { background: #dbeafe; color: var(--info); }
.activity-icon.user { background: #dcfce7; color: var(--success); }

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.625rem;
    color: var(--gray-400);
}

.activity-user {
    color: var(--gray-500);
}

.activity-status {
    margin-left: auto;
}

.activity-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--success);
    margin-left: 1rem;
}

/* Event Items */
.event-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 12px;
    transition: background 0.2s;
}

.event-item:hover {
    background: var(--gray-50);
}

.event-rank {
    width: 28px;
    height: 28px;
    background: var(--gray-100);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    flex-shrink: 0;
}

.event-info {
    flex: 1;
    min-width: 0;
}

.event-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.625rem;
    color: var(--gray-500);
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.event-stats {
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

.event-stats .stat {
    text-align: center;
    min-width: 50px;
}

.event-stats .stat-number {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
}

.event-stats .stat-label {
    font-size: 0.5rem;
    color: var(--gray-400);
    text-transform: uppercase;
}

/* ===== BOTTOM GRID ===== */
.bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    height: 450px;
}

.info-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.info-title h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.info-title p {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.info-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

/* Organizer Items */
.organizer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.organizer-item:last-child {
    border-bottom: none;
}

.organizer-rank {
    width: 28px;
    height: 28px;
    background: var(--gray-100);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    flex-shrink: 0;
}

.organizer-info {
    flex: 1;
    min-width: 0;
}

.organizer-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.organizer-name i {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.organizer-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.625rem;
    color: var(--gray-500);
}

.organizer-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.organizer-revenue {
    text-align: right;
}

.revenue-amount {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--success);
}

.revenue-label {
    font-size: 0.5rem;
    color: var(--gray-400);
    text-transform: uppercase;
}

/* ===== QUICK STATS ===== */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quick-stat-item {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.quick-stat-item .stat-label {
    font-size: 0.625rem;
    color: var(--gray-500);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25rem;
}

.quick-stat-item .stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* ===== PROGRESS METRICS ===== */
.progress-metrics {
    margin-bottom: 1.5rem;
}

.metric {
    margin-bottom: 1rem;
}

.metric-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.metric-value {
    font-weight: 600;
    color: var(--gray-900);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ===== SYSTEM STATUS ===== */
.system-status h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.status-list {
    display: grid;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.status-name {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status-badge.healthy { background: #dcfce7; color: var(--success); }
.status-badge.warning { background: #fef3c7; color: var(--warning); }
.status-badge.danger { background: #fee2e2; color: var(--danger); }

/* ===== BADGES ===== */
.badge {
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge.success { background: #dcfce7; color: var(--success); }
.badge.warning { background: #fef3c7; color: var(--warning); }
.badge.danger { background: #fee2e2; color: var(--danger); }
.badge.info { background: #dbeafe; color: var(--info); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

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

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

.btn-outline {
    border: 1px solid var(--gray-300);
    background-color: transparent;
    color: var(--gray-700);
}

.btn-outline:hover {
    background-color: var(--gray-50);
}

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

.btn-danger:hover {
    background-color: #dc2626;
}

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

.btn-success:hover {
    background-color: #059669;
}

/* ===== FORMS ===== */
.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.form-error {
    color: var(--danger);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* ===== EVENT CARDS ===== */
.event-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    overflow: hidden;
    background: white;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.event-card .event-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.event-card .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 0.75rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ===== QR CODE ===== */
.qr-container {
    display: flex;
    justify-content: center;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
}

/* ===== MAP ===== */
.map-container {
    height: 400px;
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

/* ===== CALENDAR ===== */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: var(--gray-200);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    overflow: hidden;
}

.calendar-day {
    background: white;
    min-height: 120px;
    padding: 0.5rem;
}

.calendar-day.today {
    background-color: var(--gray-50);
}

/* ===== FILTER SECTION ===== */
.filter-section {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

/* ===== EVENT HERO ===== */
.event-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 0;
    position: relative;
}

.event-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8), transparent);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: white;
    border-left: 4px solid var(--primary);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

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

.spinner {
    border: 2px solid var(--gray-200);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* ===== UTILITY CLASSES ===== */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hide footer on dashboard pages */
.dashboard-layout footer,
.dashboard-container + footer,
.modern-sidebar + footer {
    display: none !important;
}

/* Cookie consent remains visible */
#cookieConsent {
    z-index: 9999;
}

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

@media (max-width: 1024px) {
    .charts-row,
    .tables-row,
    .bottom-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-sidebar {
        position: fixed;
        left: -280px;
        transition: left 0.3s ease;
        z-index: 100;
    }
    
    .modern-sidebar.show {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .dashboard-main {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header-right {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dashboard-content {
        padding: 1rem;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .toast {
        left: 1rem;
        right: 1rem;
        min-width: auto;
    }
}

/* ===== PREMIUM ADMIN DASHBOARD STYLES ===== */

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.metric-card.gradient-blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.metric-card.gradient-green::before { background: linear-gradient(90deg, #10b981, #34d399); }
.metric-card.gradient-orange::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.metric-card.gradient-purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.metric-content {
    flex: 1;
}

.metric-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.metric-trend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.trend-up {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.trend-down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.trend-neutral {
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.trend-detail {
    color: var(--gray-500);
}

/* Secondary Metrics */
.secondary-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.stat-chip {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 30px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--gray-700);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.stat-chip:hover {
    border-color: var(--primary);
    background: var(--gray-50);
    transform: translateY(-1px);
}

.stat-chip i {
    font-size: 1rem;
}

.stat-chip strong {
    font-weight: 600;
    color: var(--gray-900);
}

/* Performance Section */
.performance-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.performance-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.performance-card.main-chart {
    height: 400px;
}

.performance-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.performance-card .card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.performance-card .card-header p {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.performance-card .chart-container {
    height: 300px;
    position: relative;
}

/* Metrics Panel */
.metrics-panel {
    display: flex;
    flex-direction: column;
}

.metrics-panel h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.metric-item {
    margin-bottom: 1.25rem;
}

.metric-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.metric-name {
    color: var(--gray-700);
    font-weight: 500;
}

.metric-percentage {
    font-weight: 600;
    color: var(--gray-900);
}

.metric-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
    font-size: 0.7rem;
    color: var(--gray-500);
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 0.85rem;
    transition: all 0.2s ease;
    position: relative;
}

.quick-action-item:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.quick-action-item i {
    font-size: 1rem;
}

.quick-action-item .action-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.insights-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.insights-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.insights-card .card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.view-link {
    font-size: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    background: rgba(79, 70, 229, 0.1);
    transition: all 0.2s ease;
}

.view-link:hover {
    background: var(--primary);
    color: white;
}

/* Categories List */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.category-row:hover {
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.category-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-rank {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    width: 24px;
}

.category-icon {
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.85rem;
}

.category-name {
    font-weight: 500;
    color: var(--gray-800);
    font-size: 0.9rem;
}

.category-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    background: white;
    border-radius: 30px;
    color: var(--gray-600);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-badge.revenue {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-weight: 500;
}

/* Organizers List */
.organizers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.organizer-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.organizer-row:hover {
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.organizer-rank {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    width: 28px;
    text-align: center;
    padding-top: 0.2rem;
}

.organizer-info {
    flex: 1;
}

.organizer-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.organizer-name i {
    margin-left: 0.25rem;
    font-size: 0.75rem;
}

.organizer-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    color: var(--gray-500);
}

.organizer-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.organizer-revenue {
    text-align: right;
}

.revenue-amount {
    font-size: 0.9rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 0.1rem;
}

.revenue-conversion {
    font-size: 0.6rem;
    color: var(--gray-500);
}

/* Activity Feed */
.activity-feed {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    margin-bottom: 1.5rem;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.feed-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.feed-item:hover {
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.feed-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.feed-icon.registration { background: rgba(79, 70, 229, 0.1); color: var(--primary); }
.feed-icon.event { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.feed-icon.user { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.feed-content {
    flex: 1;
}

.feed-text {
    font-size: 0.9rem;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.feed-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.7rem;
}

.feed-time {
    color: var(--gray-500);
}

.feed-value {
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 30px;
}

.feed-status {
    margin-left: auto;
}

.status-badge.paid,
.status-badge.published,
.status-badge.verified {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 500;
}

.status-badge.pending,
.status-badge.draft {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* System Health Footer */
.system-health-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    justify-content: center;
}

.health-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--gray-50);
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--gray-700);
}

.health-item i {
    font-size: 0.9rem;
}

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

@media (max-width: 1024px) {
    .performance-section,
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .performance-card.main-chart {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .secondary-metrics {
        flex-direction: column;
    }
    
    .stat-chip {
        width: 100%;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .organizer-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .organizer-revenue {
        text-align: left;
        width: 100%;
        margin-top: 0.5rem;
    }
}

.metrics-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.metric-card {
    flex: 1 1 calc(25% - 1.25rem);
    min-width: 200px; /* Prevents cards from getting too small */
}

@media (max-width: 1279px) {
    .metric-card {
        flex: 1 1 calc(50% - 1.25rem);
    }
}

@media (max-width: 767px) {
    .metric-card {
        flex: 1 1 100%;
    }
}

/* ===== ULTRA COMPACT METRIC CARDS ===== */
.metrics-grid-ultra {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}

.metric-card-ultra {
    background: white;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.metric-card-ultra:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
    border-color: var(--gray-300);
}

.metric-icon-ultra {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.metric-content-ultra {
    flex: 1;
    min-width: 0;
}

.metric-label-ultra {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.1rem;
}

.metric-value-ultra {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-stats-ultra {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.6rem;
}

.metric-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    color: var(--gray-600);
    background: var(--gray-50);
    padding: 0.15rem 0.4rem;
    border-radius: 30px;
    white-space: nowrap;
}

.metric-stat-item i {
    font-size: 0.55rem;
}

.metric-stat-item.positive {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.metric-stat-item.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.metric-stat-item.neutral {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* Responsive */
@media (max-width: 1280px) {
    .metrics-grid-ultra {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .metrics-grid-ultra {
        grid-template-columns: 1fr;
    }
    
    .metric-card-ultra {
        padding: 0.75rem 0.875rem;
    }
}
/* ===== ADVANCED ANALYTICS STYLES ===== */

/* Ultra Compact Metric Cards */
.metrics-grid-ultra {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card-ultra {
    background: white;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.metric-card-ultra:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
    border-color: var(--gray-300);
}

.metric-icon-ultra {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.metric-content-ultra {
    flex: 1;
    min-width: 0;
}

.metric-label-ultra {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.1rem;
}

.metric-value-ultra {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-stats-ultra {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.6rem;
}

.metric-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.5rem;
    background: var(--gray-50);
    border-radius: 30px;
    color: var(--gray-700);
    white-space: nowrap;
}

.metric-stat-item.positive {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.metric-stat-item i {
    font-size: 0.55rem;
}

/* Performance Chips */
.performance-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.performance-chip {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 15px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.chip-label {
    color: var(--gray-500);
    font-weight: 500;
}

.chip-value {
    font-weight: 700;
    color: var(--gray-900);
}

.chip-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.5rem;
    border-radius: 30px;
    font-size: 0.65rem;
    background: var(--gray-100);
    color: var(--gray-700);
}

.chip-trend.positive {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* Analytics Select */
.analytics-select {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 30px;
    padding: 0.5rem 1.5rem 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--gray-700);
    cursor: pointer;
    outline: none;
}

.analytics-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Growth Stats Grid */
.growth-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.growth-stat-item {
    text-align: center;
    padding: 0.5rem;
    background: var(--gray-50);
    border-radius: 10px;
}

.growth-stat-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.growth-stat-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 0.1rem;
}

.growth-stat-change {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.55rem;
    padding: 0.1rem 0.4rem;
    border-radius: 30px;
    background: var(--gray-100);
    color: var(--gray-700);
}

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

/* Payment Stats */
.payment-stats {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 0.8rem;
}

.payment-method-name {
    font-weight: 500;
    color: var(--gray-700);
}

.payment-method-value {
    font-weight: 700;
    color: var(--gray-900);
}

.payment-method-count {
    font-size: 0.65rem;
    color: var(--gray-500);
}

/* Device Stats */
.device-stats {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.device-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.device-color {
    width: 8px;
    height: 8px;
    border-radius: 4px;
}

.device-name {
    flex: 1;
    font-size: 0.8rem;
    color: var(--gray-700);
}

.device-percentage {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 0.8rem;
}

/* Analytics Tables */
.analytics-table {
    width: 100%;
    border-collapse: collapse;
}

.analytics-table th {
    text-align: left;
    padding: 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid var(--gray-200);
}

.analytics-table td {
    padding: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.analytics-table tr:last-child td {
    border-bottom: none;
}

.category-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-icon-small {
    width: 24px;
    height: 24px;
    background: var(--gray-100);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.7rem;
}

.revenue-cell {
    font-weight: 600;
    color: #10b981;
}

.org-cell {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.verified-icon {
    color: #3b82f6;
    font-size: 0.7rem;
}

.conv-badge {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 500;
}

.conv-badge.high {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.conv-badge.medium {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* Analytics Footer */
.analytics-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    margin-top: 1.5rem;
    justify-content: center;
}

.footer-stat {
    text-align: center;
}

.footer-stat-label {
    display: block;
    font-size: 0.6rem;
    color: var(--gray-500);
    text-transform: uppercase;
    margin-bottom: 0.1rem;
}

.footer-stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-900);
}

/* Responsive */
@media (max-width: 1280px) {
    .metrics-grid-ultra {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .growth-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .charts-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .metrics-grid-ultra {
        grid-template-columns: 1fr;
    }
    
    .performance-chips {
        flex-direction: column;
    }
    
    .performance-chip {
        width: 100%;
    }
    
    .analytics-table {
        display: block;
        overflow-x: auto;
    }
    
    .analytics-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

