:root {
    --primary-color: #00AEEF;
    --primary-hover: #0096ce;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --sidebar-bg: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border-color: #E2E8F0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --sidebar-width: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
    text-decoration: none;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    background-color: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

.sidebar-nav {
    flex: 1;
    padding: 0 16px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 30px;
}

.nav-title {
    font-size: 0.70rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 12px;
    padding-left: 12px;
    letter-spacing: 0.05em;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s;
}

.nav-item.active a {
    background-color: #E6F7FE;
    color: var(--primary-color);
}

.nav-item a:hover:not(.active a) {
    background-color: #F1F5F9;
    color: var(--text-main);
}

.nav-item i {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    padding: 20px 16px;
}

.upgrade-card {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #BAE6FD;
}

.upgrade-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0369A1;
}

.upgrade-desc {
    font-size: 0.75rem;
    color: #0C4A6E;
    margin-bottom: 16px;
    line-height: 1.4;
}

.btn {
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

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

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

.btn-outline {
    background-color: white;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Main Content Styling */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 0;
}

.top-header {
    height: 72px;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #F1F5F9;
    padding: 8px 16px;
    border-radius: 10px;
    width: 350px;
}

.search-bar i {
    color: var(--text-light);
    width: 18px;
    height: 18px;
}

.search-bar input {
    background: none;
    border: none;
    outline: none;
    font-size: 0.9rem;
    width: 100%;
}

.search-bar input::placeholder {
    color: #CBD5E1;
}

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

.icon-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    padding: 4px;
}

.icon-btn i {
    width: 22px;
    height: 22px;
}

.badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background-color: #EF4444;
    border-radius: 50%;
    border: 2px solid white;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* User Dropdown */
.user-profile {
    position: relative;
    cursor: pointer;
    padding-right: 8px;
}

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

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 180px;
    background-color: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 100;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background-color: white;
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background-color: #F8FAFC;
    color: var(--primary-color);
}

.dropdown-item i {
    width: 16px;
    height: 16px;
}

.dropdown-item.logout {
    color: #EF4444;
}

.dropdown-item.logout:hover {
    background-color: #FEF2F2;
    color: #EF4444;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}

/* Dashboard Wrapper */
.dashboard-wrapper {
    padding: 40px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.header-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.header-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.header-buttons {
    display: flex;
    gap: 12px;
}

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

.stat-card {
    background-color: white;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-label {
    font-size: 0.70rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 4px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    width: 24px;
    height: 24px;
}

.stat-icon.registrations {
    background-color: #F0F9FF;
    color: #0EA5E9;
}

.stat-icon.revenue {
    background-color: #F0FDF4;
    color: #22C55E;
}

.stat-icon.check-in {
    background-color: #FEF2F2;
    color: #EF4444;
}

.stat-icon.sessions {
    background-color: #F5F3FF;
    color: #8B5CF6;
}

.stat-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
}

.trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.trend i {
    width: 14px;
    height: 14px;
}

.trend.positive {
    color: #22C55E;
}

.trend.negative {
    color: #EF4444;
}

.stat-period {
    color: var(--text-light);
}

/* Content Row (Chart + Top Events) */
.content-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.chart-container,
.top-events-container,
.activity-container {
    background-color: white;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    padding: 24px;
}

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

.chart-title h3,
.card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.chart-title p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.chart-filters {
    display: flex;
    background-color: #F8FAFC;
    padding: 4px;
    border-radius: 8px;
}

.filter-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
    color: var(--text-muted);
}

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

.chart-body {
    height: 300px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 20px;
}

.bar-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
}

.bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    height: 100%;
    justify-content: flex-end;
}

.bar {
    width: 60%;
    background: linear-gradient(180deg, #E0F2FE 0%, #0EA5E9 100%);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s;
}

.bar-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Top Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.event-thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
}

.event-thumb.tech {
    background-color: #DBEAFE;
    color: #2563EB;
}

.event-thumb.design {
    background-color: #FDF2F8;
    color: #DB2777;
}

.event-thumb.mktg {
    background-color: #FFF7ED;
    color: #D946EF;
}

.event-info {
    flex: 1;
}

.event-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.event-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.event-meta {
    text-align: right;
}

.event-value {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
}

.event-trend {
    font-size: 0.7rem;
    font-weight: 600;
}

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

/* Activity Table */
.activity-container {
    margin-bottom: 40px;
}

.live-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #22C55E;
    font-weight: 600;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: #22C55E;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.activity-table-wrapper {
    overflow-x: auto;
}

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

.activity-table th {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.activity-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

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

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

.avatar-sm {
    width: 28px;
    height: 28px;
    background-color: #F1F5F9;
    color: var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
}

.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
}

.badge-vip {
    background-color: #E0F2FE;
    color: #0EA5E9;
}

.badge-general {
    background-color: #F1F5F9;
    color: var(--text-muted);
}

.badge-student {
    background-color: #DBEAFE;
    color: #2563EB;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.checked-in,
.status-checked-in {
    background-color: #F0FDF4;
    color: #22C55E;
}

.status-badge.approved,
.status-approved {
    background-color: #EFF6FF;
    color: #3B82F6;
}

.status-badge.pending,
.status-pending {
    background-color: #FFFBEB;
    color: #F59E0B;
}

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

    .content-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: 0.3s;
    }

    .main-content {
        margin-left: 0;
    }

    .top-header {
        padding: 0 20px;
    }

    .search-bar {
        width: 200px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}