/* Admin Panel Custom Styles */

:root {
    --sidebar-width: 250px;
    --header-height: 60px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.875rem;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-content {
    animation: fadeInUp 0.5s ease-in-out;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* App Layout */
.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}

.app-header .brand {
    flex: 0 0 var(--sidebar-width);
    font-size: 1.25rem;
    font-weight: 700;
}

.app-header .brand-logo {
    color: var(--bs-body-color);
    text-decoration: none;
}

.app-header .menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-header .menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    color: var(--bs-body-color);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.app-header .menu-link:hover {
    background-color: var(--bs-secondary-bg);
}

.mobile-toggler {
    display: none;
}

/* Sidebar */
.app-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--bs-body-bg);
    border-right: 1px solid var(--bs-border-color);
    overflow-y: auto;
    z-index: 999;
}

.app-sidebar-content {
    padding: 20px 0;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-header {
    padding: 10px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    letter-spacing: 0.5px;
}

.menu-item {
    margin: 2px 10px;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--bs-body-color);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.menu-link:hover {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-primary);
}

.menu-item.active .menu-link {
    background-color: var(--bs-primary);
    color: #fff;
}

.menu-icon {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 10px;
}

.menu-text {
    flex: 1;
}

.menu-divider {
    height: 1px;
    background: var(--bs-border-color);
    margin: 15px 20px;
}

/* Content */
.app-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 30px;
    min-height: calc(100vh - var(--header-height));
}

/* Page Header */
.page-header {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Cards */
.card {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--bs-border-color);
    padding: 1rem 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-toggler {
        display: block;
    }
    
    .app-header .brand {
        flex: 1;
    }
    
    .app-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .app-sidebar.show {
        transform: translateX(0);
    }
    
    .app-content {
        margin-left: 0;
    }
    
    .menu-text {
        display: none;
    }
}

/* Dark mode adjustments */
[data-bs-theme="dark"] {
    --bs-body-bg: #1a1d29;
    --bs-body-color: #e8e9ea;
    --bs-border-color: #2d3139;
    --bs-secondary-bg: #242730;
}

/* Light mode adjustments */
[data-bs-theme="light"] {
    --bs-body-bg: #ffffff;
    --bs-body-color: #212529;
    --bs-border-color: #dee2e6;
    --bs-secondary-bg: #f8f9fa;
}

/* Active event highlight */
.active-event-row > td,
.active-event-highlight {
    background-color: #a3ff00 !important;
    color: #000 !important;
}

/* Utilities */
.text-muted {
    opacity: 0.7;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
