:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252542;
    --bg-sidebar: #12121f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;
    --border-color: #2a2a40;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    z-index: 200;
}

.menu-toggle,
.sidebar-close {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
}

.mobile-brand i {
    color: var(--primary);
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 300;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sidebar-brand h1 {
    font-size: 18px;
    font-weight: 700;
}

.sidebar-brand span {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-close {
    display: none;
    margin-left: auto;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    cursor: pointer;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--gradient-primary);
    color: white;
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.nav-item span {
    font-size: 14px;
    font-weight: 500;
}

.nav-item .badge {
    position: absolute;
    right: 12px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
}

.user-avatar,
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.user-info h4 {
    font-size: 13px;
    font-weight: 600;
}

.user-info span {
    font-size: 11px;
    color: var(--text-muted);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 250;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title h2 {
    font-size: 20px;
    font-weight: 700;
}

.page-title span {
    font-size: 12px;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search {
    position: relative;
}

.header-search input {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 16px 10px 40px;
    color: var(--text-primary);
    font-size: 14px;
    width: 200px;
}

.header-search input:focus {
    outline: none;
    border-color: var(--primary);
}

.header-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.header-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.header-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.content-area {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stat-card.primary::before {
    background: var(--gradient-primary);
}

.stat-card.success::before {
    background: var(--gradient-success);
}

.stat-card.warning::before {
    background: var(--gradient-warning);
}

.stat-card.danger::before {
    background: var(--gradient-danger);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-card.primary .stat-icon {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.stat-card.success .stat-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary);
}

.stat-card.warning .stat-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.stat-card.danger .stat-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
}

.stat-change.up {
    color: var(--secondary);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Content Sections */
.content-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.section-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h3 {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3 i {
    color: var(--primary);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.quick-action-btn i {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.quick-action-btn span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Live Rooms Grid */
.live-rooms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px;
}

.live-rooms-grid.full {
    grid-template-columns: repeat(3, 1fr);
}

.live-room-card {
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.live-room-card:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.live-room-preview {
    height: 100px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4a 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-room-preview i {
    font-size: 28px;
    color: var(--text-muted);
}

.live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--secondary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-badge i {
    font-size: 8px;
    animation: pulse 1s infinite;
}

.live-badge.rec {
    background: var(--danger);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.participant-count {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-room-info {
    padding: 12px;
}

.live-room-info h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-room-info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* Upcoming Events Grid */
.upcoming-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 16px 20px;
}

.upcoming-event-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upcoming-event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-warning);
}

.upcoming-event-card:hover {
    transform: translateY(-2px);
    border-color: var(--warning);
}

.upcoming-event-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.upcoming-event-icon {
    width: 40px;
    height: 40px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warning);
    font-size: 16px;
}

.upcoming-event-title {
    flex: 1;
}

.upcoming-event-title h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.upcoming-event-title span {
    font-size: 12px;
    color: var(--text-muted);
}

.upcoming-event-time {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.upcoming-event-time i {
    color: var(--warning);
    font-size: 14px;
}

.upcoming-event-time span {
    font-size: 13px;
    font-weight: 500;
}

.upcoming-event-actions {
    display: flex;
    gap: 8px;
}

.upcoming-event-actions .btn-sm {
    flex: 1;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-sm:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--primary);
}

.btn-sm.primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-sm.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-sm.success {
    background: var(--gradient-success);
    color: white;
    border: none;
}

.btn-sm.danger {
    background: transparent;
    border-color: var(--danger);
    color: var(--danger);
}

.btn-sm.danger:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* Sessions Grid */
.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 16px 20px;
}

.session-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.session-card .avatar {
    flex-shrink: 0;
}

.session-info {
    flex: 1;
    min-width: 0;
}

.session-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.session-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.session-meta {
    display: flex;
    gap: 16px;
    margin-top: 6px;
}

.session-meta span {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.session-meta i {
    font-size: 10px;
}

.session-actions {
    display: flex;
    gap: 8px;
}

.section-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 14px 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.2);
}

.data-table td {
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.data-table tr:hover {
    background: var(--bg-card-hover);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-cell strong {
    display: block;
}

.user-cell small {
    font-size: 12px;
    color: var(--text-muted);
}

.role-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.role-badge.admin {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.role-badge.mod {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary);
}

.role-badge.user {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot.online {
    background: var(--secondary);
}

.status-dot.offline {
    background: var(--text-muted);
}

.action-btns {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.action-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border-color: var(--danger);
}

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.settings-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toggle {
    position: relative;
    width: 48px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-dark);
    border-radius: 26px;
    transition: 0.3s;
}

.slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle input:checked+.slider {
    background: var(--primary);
}

.toggle input:checked+.slider::before {
    transform: translateX(22px);
}

.integration-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px;
}

.integration-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.integration-card i {
    font-size: 24px;
}

.integration-card span {
    font-size: 13px;
    font-weight: 500;
}

.int-status {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.int-status.off {
    background: rgba(107, 107, 128, 0.15);
    color: var(--text-muted);
}

.int-status.on {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary);
}

/* Recordings */
.recordings-grid {
    padding: 20px;
    display: grid;
    gap: 12px;
}

.recording-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.rec-thumb {
    width: 80px;
    height: 50px;
    background: var(--bg-card-hover);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
}

.rec-info {
    flex: 1;
}

.rec-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.rec-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.rec-actions {
    display: flex;
    gap: 8px;
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-muted);
}

/* Logs */
.logs-list {
    padding: 0;
}

.log-item {
    display: flex;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.log-time {
    color: var(--text-muted);
    width: 80px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .live-rooms-grid.full {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding-top: 60px;
    }

    .header {
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .header-search {
        display: none;
    }

    .btn-primary span {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 24px;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .live-rooms-grid,
    .live-rooms-grid.full {
        grid-template-columns: 1fr;
    }

    .content-area {
        padding: 16px;
    }

    .integration-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .recording-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .rec-thumb {
        width: 100%;
        height: 80px;
    }
}

/* Dashboard Grid - Two Column Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-sidebar .content-section {
    margin-bottom: 0;
}

/* Live Rooms 2x2 Grid */
.live-rooms-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px;
}

/* Section Tabs */
.section-tabs {
    display: flex;
    gap: 8px;
}

.tab-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* RTMP Badge */
.live-badge.rtmp {
    background: #3b82f6;
}

/* Activity Feed */
.activity-feed {
    padding: 0;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: var(--bg-card-hover);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.activity-icon.join {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary);
}

.activity-icon.leave {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.activity-icon.hand {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.activity-icon.recording {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.activity-icon.broadcast {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-content p {
    font-size: 13px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-content p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.activity-content span {
    font-size: 11px;
    color: var(--text-muted);
}

/* System Status */
.system-status {
    padding: 16px 20px;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.status-item:last-child {
    border-bottom: none;
}

.status-info {
    flex: 1;
}

.status-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.status-dot.warning {
    background: var(--warning);
}

.status-value {
    font-size: 13px;
    font-weight: 600;
}

.status-value.online {
    color: var(--secondary);
}

.progress-bar {
    height: 6px;
    background: var(--bg-dark);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-fill.success {
    background: var(--gradient-success);
}

.progress-fill.warning {
    background: var(--gradient-warning);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.live {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary);
}

.status-badge.live i {
    animation: pulse 1.5s infinite;
}

.status-badge.recording {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.status-badge.broadcasting {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

/* Room Info Cell */
.room-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.room-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.room-details h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.room-details span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Participant Avatars */
.participant-avatars {
    display: flex;
}

.p-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    margin-left: -8px;
}

.p-avatar:first-child {
    margin-left: 0;
}

.p-avatar.more {
    background: var(--primary);
    color: white;
}

/* Responsive for Dashboard Grid */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        flex-direction: row;
    }

    .dashboard-sidebar .content-section {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        flex-direction: column;
    }

    .live-rooms-grid-2x2 {
        grid-template-columns: 1fr;
    }

    .section-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ==========================================
   MODAL STYLES
   ========================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease forwards;
    opacity: 1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.room-modal {
    max-width: 800px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-sidebar);
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
}

.modal-title i {
    color: var(--primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Room Info Bar */
.room-info-bar {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.room-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.room-stat .stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.room-stat .stat-value {
    font-size: 14px;
    font-weight: 600;
}

/* Room Controls */
.room-controls {
    margin-bottom: 20px;
}

.room-controls h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.room-controls h4 i {
    color: var(--primary);
}

.control-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.control-btn.danger {
    border-color: rgba(239, 68, 68, 0.3);
}

.control-btn.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger);
    color: var(--danger);
}

.control-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* Participants Section */
.participants-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.participants-section h4 i {
    color: var(--primary);
}

.participants-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.participant-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.participant-item:hover {
    border-color: var(--primary);
}

.participant-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.participant-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.participant-name {
    font-weight: 500;
}

.participant-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.participant-status i {
    font-size: 11px;
}

.participant-status i.active {
    color: var(--secondary);
}

.participant-status i.muted {
    color: var(--danger);
}

.participant-actions {
    display: flex;
    gap: 6px;
}

.participant-actions button {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
}

.participant-actions button:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.participant-actions button.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger);
    color: var(--danger);
}


/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: slideInRight 0.3s ease;
    min-width: 300px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    border-left: 4px solid var(--secondary);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.info {
    border-left: 4px solid var(--primary);
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary);
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.toast.warning .toast-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.toast.info .toast-icon {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* Form Styles */
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-muted);
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Action Buttons */
.action-btns {
    display: flex;
    gap: 6px;
    align-items: center;
}

.action-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 12px;
}

.action-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--primary);
}

.action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: #ef4444;
}

.action-btn.success {
    border-color: var(--secondary);
    color: var(--secondary);
}

.action-btn.success:hover {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary);
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        max-height: 85vh;
    }

    .room-info-bar {
        flex-direction: column;
        gap: 12px;
    }

    .control-buttons {
        flex-direction: column;
    }

    .control-btn {
        width: 100%;
        justify-content: center;
    }

    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .toast {
        min-width: auto;
    }
}

/* ===================================
   PHASE 5: EVENTS CALENDAR STYLES
   =================================== */

/* View Toggle */
.view-toggle {
    display: flex;
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    padding: 4px;
    border: 1px solid var(--border-color);
}

.view-btn {
    width: 36px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.view-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.view-btn.active {
    background: var(--primary);
    color: white;
}

/* Calendar Header */
.calendar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.calendar-header h4 {
    font-size: 16px;
    font-weight: 600;
    min-width: 180px;
    text-align: center;
}

.calendar-nav {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-dark);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.calendar-nav:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--primary);
}

/* Calendar Grid */
.calendar-grid {
    padding: 16px 20px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekdays span {
    text-align: center;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    min-height: 80px;
    padding: 8px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.calendar-day:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.calendar-day.other-month {
    opacity: 0.4;
}

.calendar-day.today {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.calendar-day.today .day-number {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day.has-events {
    background: rgba(245, 158, 11, 0.08);
}

.day-number {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.day-events {
    flex: 1;
    overflow: hidden;
}

.day-event {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
    cursor: pointer;
}

.day-event:hover {
    opacity: 0.9;
}

/* Event dots for small calendar cells */
.event-dots {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    margin-top: auto;
}

.event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Next Event Card */
.next-event-card {
    padding: 0;
}

.next-event-card .event-highlight {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: var(--radius-md);
}

.next-event-datetime {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    min-width: 100px;
}

.next-event-datetime .day {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.next-event-datetime .month {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

.next-event-datetime .time {
    font-size: 12px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.next-event-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.next-event-details h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.next-event-details .event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.next-event-details .event-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.next-event-details .event-meta i {
    color: var(--primary);
}

.next-event-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Event Status Badges */
.event-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.event-status.scheduled {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.event-status.started {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary);
}

.event-status.cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.event-status.completed {
    background: rgba(107, 107, 128, 0.15);
    color: var(--text-muted);
}

/* Events Table Rows */
.events-table .event-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.event-color-bar {
    width: 4px;
    height: 40px;
    border-radius: 2px;
}

/* Stats Row for Events */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stats-row .stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stats-row .stat-content {
    display: flex;
    flex-direction: column;
}

.stats-row .stat-content .stat-value {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.stats-row .stat-content .stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Events Page Responsive */
@media (max-width: 992px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar-day {
        min-height: 60px;
        padding: 6px;
    }

    .day-number {
        font-size: 12px;
    }

    .day-event {
        display: none;
    }

    .event-dots {
        display: flex;
    }

    .next-event-card .event-highlight {
        flex-direction: column;
        gap: 16px;
    }

    .next-event-datetime {
        flex-direction: row;
        gap: 12px;
        justify-content: center;
        padding: 12px 20px;
    }

    .next-event-datetime .time {
        margin: 0;
        padding: 0;
        border: none;
    }
}

@media (max-width: 576px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .calendar-weekdays span {
        font-size: 10px;
        padding: 4px;
    }

    .calendar-day {
        min-height: 50px;
        padding: 4px;
    }

    .events-tabs {
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .events-tabs::-webkit-scrollbar {
        height: 4px;
    }
}

/* Modal Tabs */
.tab-btn {
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.tab-btn i {
    font-size: 12px;
}

/* Status Badges */
.status-badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary);
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.status-badge.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* Small Button */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Action Button Styles */
.action-btn.delete {
    color: var(--danger);
}

.action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* ===================================
   ENHANCED EVENTS LIST STYLES
   =================================== */

/* Events List Container */
.evt-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Event List Card */
.evt-list-card {
    display: flex;
    align-items: stretch;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.25s ease;
}

.evt-list-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.12);
    transform: translateY(-2px);
}

.evt-list-card.evt-live {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.08);
}

.evt-list-card.evt-past {
    opacity: 0.7;
}

.evt-list-card.evt-past:hover {
    opacity: 1;
}

/* Event Card Thumbnail */
.evt-card-thumb {
    width: 140px;
    min-height: 120px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    position: relative;
}

.evt-card-thumb-gradient {
    display: flex;
    align-items: center;
    justify-content: center;
}

.evt-card-thumb-gradient i {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.25);
}

/* Event Card Body */
.evt-card-body {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.evt-card-top {
    margin-bottom: 8px;
}

.evt-card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.evt-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.evt-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.evt-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.evt-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.evt-card-meta i {
    font-size: 11px;
    color: var(--text-muted);
}

.evt-publisher {
    color: var(--primary) !important;
    font-weight: 500;
}

.evt-publisher i {
    color: var(--primary) !important;
}

/* Event Card Actions (horizontal) */
.evt-card-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 16px;
    flex-shrink: 0;
}

/* Live Dot Animation */
.evt-live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 4px;
    animation: evtPulse 1.5s infinite;
}

@keyframes evtPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Recurring Badge */
.evt-badge-recurring {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.evt-badge-lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-muted);
}

/* Live Event Status Enhancement */
.event-status.started {
    animation: liveGlow 2s infinite;
}

@keyframes liveGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
    50% { box-shadow: 0 0 8px 2px rgba(16, 185, 129, 0.25); }
}

/* ===================================
   ADMIN EVENT DETAIL MODAL (AEDM)
   =================================== */

.aedm-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    animation: fadeInScale 0.3s ease;
    position: relative;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.aedm-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.aedm-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.aedm-hero {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.aedm-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, var(--bg-card) 100%);
}

.aedm-body {
    padding: 24px;
    margin-top: -24px;
    position: relative;
}

.aedm-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.aedm-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--text-primary);
}

.aedm-info-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.aedm-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.aedm-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.aedm-info-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.aedm-info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.aedm-info-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.aedm-section {
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.aedm-section h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px;
}

.aedm-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* RSVP Bar */
.aedm-rsvp-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-dark);
    margin-bottom: 10px;
}

.aedm-rsvp-segment {
    transition: width 0.5s ease;
}

.aedm-rsvp-segment.going { background: #10b981; }
.aedm-rsvp-segment.maybe { background: #f59e0b; }
.aedm-rsvp-segment.notgoing { background: #ef4444; }

.aedm-rsvp-legend {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.aedm-rsvp-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Event URL Box */
.aedm-url-box {
    display: flex;
    gap: 8px;
}

.aedm-url-box input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-family: monospace;
}

.aedm-url-box button {
    padding: 10px 16px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.aedm-url-box button:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* Event Detail Actions */
.aedm-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .evt-list-card {
        flex-direction: column;
    }

    .evt-card-thumb {
        width: 100%;
        min-height: 160px;
    }

    .evt-card-actions {
        padding: 12px 16px;
        justify-content: flex-start;
    }

    .aedm-container {
        max-width: 95vw;
        margin: 8px;
    }

    .aedm-hero {
        height: 150px;
    }
}