/* =====================================================
   EVENTFINITY - Event Management System
   Main Stylesheet
   ===================================================== */

/* ===== CSS Variables ===== */
:root {
    --ef-primary: #6c5ce7;
    --ef-primary-light: #a29bfe;
    --ef-primary-dark: #5641d4;
    --ef-accent: #00cec9;
    --ef-accent-light: #55efc4;
    --ef-bg-dark: #0a0a1a;
    --ef-bg-card: #141428;
    --ef-bg-sidebar: #0d0d20;
    --ef-bg-surface: #1a1a35;
    --ef-bg-hover: rgba(108, 92, 231, 0.1);
    --ef-border: rgba(108, 92, 231, 0.15);
    --ef-text: #e0e0f0;
    --ef-text-muted: #8888a8;
    --ef-text-light: #ffffffcc;
    --ef-sidebar-width: 270px;
    --ef-topbar-height: 60px;
    --ef-mobile-topbar: 56px;
    --ef-radius: 12px;
    --ef-radius-sm: 8px;
    --ef-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    --ef-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.35);
    --ef-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ef-gradient: linear-gradient(135deg, var(--ef-primary), var(--ef-accent));
    --ef-success: #00b894;
    --ef-warning: #fdcb6e;
    --ef-danger: #e17055;
    --ef-info: #74b9ff;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--ef-bg-dark);
    color: var(--ef-text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(108, 92, 231, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 92, 231, 0.5);
}

::selection {
    background: rgba(108, 92, 231, 0.4);
    color: #fff;
}

a {
    color: var(--ef-primary-light);
    text-decoration: none;
    transition: var(--ef-transition);
}
a:hover {
    color: var(--ef-accent);
}

/* ===== Mobile Top Bar ===== */
.mobile-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--ef-mobile-topbar);
    background: var(--ef-bg-sidebar);
    border-bottom: 1px solid var(--ef-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1040;
}

.mobile-logo {
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--ef-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Sidebar ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--ef-sidebar-width);
    height: 100vh;
    background: var(--ef-bg-sidebar);
    border-right: 1px solid var(--ef-border);
    display: flex;
    flex-direction: column;
    z-index: 1050;
    transition: transform 0.3s ease;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--ef-border);
    min-height: 70px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.35rem;
    background: var(--ef-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sidebar-brand i {
    font-size: 1.5rem;
    -webkit-text-fill-color: initial;
    background: var(--ef-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-event-selector {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--ef-border);
}
.sidebar-event-selector .form-select {
    background: rgba(255,255,255,0.05);
    border-color: var(--ef-border);
    font-size: 0.8rem;
    border-radius: var(--ef-radius-sm);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.nav-section {
    padding: 0.25rem 0;
}

.nav-section-title {
    padding: 0.75rem 1.5rem 0.35rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ef-text-muted);
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.5rem;
    color: var(--ef-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--ef-transition);
    position: relative;
    margin: 1px 0.5rem;
    border-radius: var(--ef-radius-sm);
}
.nav-item:hover {
    color: #fff;
    background: var(--ef-bg-hover);
}
.nav-item.active {
    color: #fff;
    background: rgba(108, 92, 231, 0.2);
}
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--ef-gradient);
    border-radius: 0 3px 3px 0;
}
.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}
.nav-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer {
    border-top: 1px solid var(--ef-border);
    padding: 1rem;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ef-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}
.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-role {
    font-size: 0.7rem;
    color: var(--ef-text-muted);
}

/* ===== Main Content ===== */
.main-content {
    margin-left: var(--ef-sidebar-width);
    min-height: 100vh;
    background: var(--ef-bg-dark);
}

/* ===== Top Bar ===== */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--ef-border);
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--ef-topbar-height);
    gap: 1rem;
}

.topbar-left {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.page-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.topbar-icon {
    color: var(--ef-text-muted);
    padding: 0.4rem;
    border-radius: var(--ef-radius-sm);
    transition: var(--ef-transition);
    text-decoration: none;
    font-size: 1.15rem;
}
.topbar-icon:hover {
    color: #fff;
    background: var(--ef-bg-hover);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.6rem;
    padding: 0.15rem 0.35rem;
    border-radius: 50%;
}

.current-event-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid var(--ef-border);
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    color: var(--ef-text-light);
    max-width: 250px;
    overflow: hidden;
}

.breadcrumb {
    font-size: 0.75rem;
}
.breadcrumb-item a {
    color: var(--ef-text-muted);
}
.breadcrumb-item.active {
    color: var(--ef-primary-light);
}

/* ===== Page Content ===== */
.page-content {
    padding: 1.5rem;
}

/* ===== Glass Card ===== */
.glass-card {
    background: var(--ef-bg-card);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius);
    box-shadow: var(--ef-shadow);
    transition: var(--ef-transition);
}
.glass-card:hover {
    border-color: rgba(108, 92, 231, 0.25);
}

.card-glass {
    background: var(--ef-bg-card);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius);
}

/* ===== Stat Cards ===== */
.stat-card {
    background: var(--ef-bg-card);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--ef-transition);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ef-gradient);
    opacity: 0;
    transition: var(--ef-transition);
}
.stat-card:hover {
    border-color: rgba(108, 92, 231, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--ef-shadow-lg);
}
.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--ef-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.stat-icon.purple { background: rgba(108, 92, 231, 0.15); color: var(--ef-primary-light); }
.stat-icon.teal { background: rgba(0, 206, 201, 0.15); color: var(--ef-accent); }
.stat-icon.green { background: rgba(0, 184, 148, 0.15); color: var(--ef-success); }
.stat-icon.orange { background: rgba(225, 112, 85, 0.15); color: var(--ef-danger); }
.stat-icon.blue { background: rgba(116, 185, 255, 0.15); color: var(--ef-info); }
.stat-icon.yellow { background: rgba(253, 203, 110, 0.15); color: var(--ef-warning); }

.stat-content {
    flex: 1;
    min-width: 0;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--ef-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0.15rem;
}
.stat-change {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}
.stat-change.up { color: var(--ef-success); }
.stat-change.down { color: var(--ef-danger); }

/* ===== Data Table ===== */
.table-container {
    background: var(--ef-bg-card);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius);
    overflow: hidden;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ef-border);
    gap: 1rem;
    flex-wrap: wrap;
}

.table-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table {
    margin-bottom: 0;
    color: var(--ef-text);
}
.table thead th {
    background: rgba(108, 92, 231, 0.05);
    border-bottom: 1px solid var(--ef-border);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--ef-text-muted);
    padding: 0.75rem 1rem;
    white-space: nowrap;
}
.table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    vertical-align: middle;
    font-size: 0.875rem;
}
.table tbody tr {
    transition: var(--ef-transition);
}
.table tbody tr:hover {
    background: var(--ef-bg-hover);
}
.table tbody tr:last-child td {
    border-bottom: none;
}

.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--ef-border);
    font-size: 0.8rem;
    color: var(--ef-text-muted);
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ===== Forms ===== */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-sm);
    color: var(--ef-text);
    transition: var(--ef-transition);
    font-size: 0.9rem;
}
.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--ef-primary);
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.2);
    color: #fff;
}
.form-control::placeholder {
    color: var(--ef-text-muted);
}
.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ef-text-muted);
    margin-bottom: 0.4rem;
}
.form-text {
    font-size: 0.75rem;
    color: var(--ef-text-muted);
}
.input-group-text {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--ef-border);
    color: var(--ef-text-muted);
}
textarea.form-control {
    min-height: 100px;
}
.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--ef-border);
}
.form-check-input:checked {
    background-color: var(--ef-primary);
    border-color: var(--ef-primary);
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--ef-gradient);
    border: none;
    font-weight: 600;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
    background: var(--ef-gradient);
    opacity: 0.9;
}

.btn-outline-primary {
    border-color: var(--ef-primary);
    color: var(--ef-primary-light);
}
.btn-outline-primary:hover {
    background: rgba(108, 92, 231, 0.15);
    border-color: var(--ef-primary);
    color: #fff;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ef-border);
    color: var(--ef-text);
    border-radius: var(--ef-radius-sm);
}
.btn-glass:hover {
    background: var(--ef-bg-hover);
    color: #fff;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ef-radius-sm);
}

/* ===== Badges ===== */
.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 2rem;
    letter-spacing: 0.3px;
}

/* ===== Cards ===== */
.card {
    background: var(--ef-bg-card);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius);
}
.card-header {
    background: rgba(108, 92, 231, 0.05);
    border-bottom: 1px solid var(--ef-border);
    padding: 1rem 1.25rem;
    font-weight: 600;
}
.card-body {
    padding: 1.25rem;
}

/* ===== Modal Overrides ===== */
.modal-content {
    background: var(--ef-bg-card);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius);
}
.modal-header {
    border-bottom: 1px solid var(--ef-border);
}
.modal-footer {
    border-top: 1px solid var(--ef-border);
}

/* ===== Tabs ===== */
.nav-tabs {
    border-bottom: 1px solid var(--ef-border);
}
.nav-tabs .nav-link {
    color: var(--ef-text-muted);
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    transition: var(--ef-transition);
}
.nav-tabs .nav-link:hover {
    color: var(--ef-text);
    border-bottom-color: rgba(108, 92, 231, 0.3);
}
.nav-tabs .nav-link.active {
    color: #fff;
    background: transparent;
    border-bottom-color: var(--ef-primary);
}

/* ===== Progress Bars ===== */
.progress {
    background: rgba(255,255,255,0.05);
    border-radius: 2rem;
    height: 8px;
    overflow: hidden;
}
.progress-bar {
    background: var(--ef-gradient);
    border-radius: 2rem;
    transition: width 0.6s ease;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}
.empty-state i {
    font-size: 3rem;
    color: var(--ef-text-muted);
    margin-bottom: 1rem;
    display: block;
}
.empty-state h5 {
    color: var(--ef-text);
    margin-bottom: 0.5rem;
}
.empty-state p {
    color: var(--ef-text-muted);
    max-width: 400px;
    margin: 0 auto;
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--ef-border);
}
.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.625rem;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ef-primary);
    border: 2px solid var(--ef-bg-card);
}
.timeline-item .time {
    font-size: 0.75rem;
    color: var(--ef-text-muted);
}

/* ===== Kanban Board ===== */
.kanban-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}
.kanban-column {
    min-width: 300px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius);
    display: flex;
    flex-direction: column;
}
.kanban-column-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--ef-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.kanban-column-body {
    padding: 0.75rem;
    flex: 1;
    min-height: 200px;
}
.kanban-card {
    background: var(--ef-bg-card);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-sm);
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: grab;
    transition: var(--ef-transition);
}
.kanban-card:hover {
    border-color: var(--ef-primary);
    transform: translateY(-1px);
}
.kanban-card .card-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.kanban-card .card-meta {
    font-size: 0.75rem;
    color: var(--ef-text-muted);
}

/* ===== Calendar Grid ===== */
.timetable-grid {
    display: grid;
    gap: 2px;
    background: var(--ef-border);
    border-radius: var(--ef-radius);
    overflow: hidden;
}
.timetable-header {
    background: rgba(108, 92, 231, 0.1);
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
}
.timetable-slot {
    background: var(--ef-bg-card);
    padding: 0.5rem;
    min-height: 60px;
    font-size: 0.8rem;
    position: relative;
    transition: var(--ef-transition);
}
.timetable-slot:hover {
    background: var(--ef-bg-hover);
}
.timetable-slot .slot-artist {
    font-weight: 600;
    font-size: 0.8rem;
}
.timetable-slot .slot-time {
    font-size: 0.7rem;
    color: var(--ef-text-muted);
}

/* ===== Live Indicator ===== */
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ef-success);
    display: inline-block;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.live-banner {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.15), rgba(108, 92, 231, 0.15));
    border: 1px solid rgba(0, 184, 148, 0.3);
    border-radius: var(--ef-radius);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ===== Dropdown ===== */
.dropdown-menu-dark {
    background: var(--ef-bg-surface);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-sm);
    box-shadow: var(--ef-shadow-lg);
}
.dropdown-menu-dark .dropdown-item {
    color: var(--ef-text);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin: 2px 4px;
    transition: var(--ef-transition);
}
.dropdown-menu-dark .dropdown-item:hover {
    background: var(--ef-bg-hover);
    color: #fff;
}
.dropdown-divider {
    border-color: var(--ef-border);
}

/* ===== Notification Dropdown ===== */
.notification-dropdown {
    width: 360px;
    max-height: 400px;
    overflow-y: auto;
}

/* ===== Charts ===== */
.chart-container {
    position: relative;
    width: 100%;
    padding: 1rem;
}

/* ===== Pagination ===== */
.pagination {
    margin: 0;
    gap: 0.25rem;
}
.page-link {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--ef-border);
    color: var(--ef-text);
    border-radius: var(--ef-radius-sm) !important;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
}
.page-link:hover {
    background: var(--ef-bg-hover);
    color: #fff;
    border-color: var(--ef-primary);
}
.page-item.active .page-link {
    background: var(--ef-primary);
    border-color: var(--ef-primary);
}

/* ===== Filter Bar ===== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ef-border);
    flex-wrap: wrap;
}
.filter-bar .form-control,
.filter-bar .form-select {
    max-width: 200px;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
}
.filter-bar .form-control.search-input {
    max-width: 300px;
}

/* ===== Phase Progress ===== */
.phase-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 1rem 0;
}
.phase-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0.5rem 0;
}
.phase-step::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ef-border);
    z-index: 0;
}
.phase-step:first-child::before { left: 50%; }
.phase-step:last-child::before { right: 50%; }
.phase-step.completed::before { background: var(--ef-success); }
.phase-step.active::before { background: var(--ef-primary); }

.phase-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ef-border);
    display: inline-block;
    position: relative;
    z-index: 1;
    margin-bottom: 0.35rem;
}
.phase-step.completed .phase-dot { background: var(--ef-success); }
.phase-step.active .phase-dot {
    background: var(--ef-primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.3);
}

.phase-label {
    font-size: 0.65rem;
    color: var(--ef-text-muted);
    display: block;
}
.phase-step.active .phase-label { color: var(--ef-primary-light); font-weight: 600; }
.phase-step.completed .phase-label { color: var(--ef-success); }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1045;
        display: none;
    }
    .sidebar-overlay.show {
        display: block;
    }
    .main-content {
        margin-left: 0;
        padding-top: var(--ef-mobile-topbar);
    }
    .topbar {
        top: var(--ef-mobile-topbar);
    }
    .page-content {
        padding: 1rem;
    }
    .stat-card {
        padding: 1rem;
    }
    .stat-value {
        font-size: 1.35rem;
    }
    .table-responsive {
        font-size: 0.8rem;
    }
    .kanban-column {
        min-width: 260px;
    }
    .filter-bar {
        padding: 0.75rem;
    }
    .filter-bar .form-control,
    .filter-bar .form-select {
        max-width: 100%;
        flex: 1;
    }
    .current-event-badge {
        display: none;
    }
    .notification-dropdown {
        width: 300px;
    }
}

@media (max-width: 575.98px) {
    .page-title {
        font-size: 1.1rem;
    }
    .topbar {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
    }
    .topbar-right {
        width: 100%;
        justify-content: flex-end;
    }
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== Print Styles ===== */
@media print {
    .sidebar, .topbar, .mobile-topbar, .no-print {
        display: none !important;
    }
    .main-content {
        margin: 0 !important;
    }
    .page-content {
        padding: 0;
    }
    body {
        background: #fff;
        color: #000;
    }
    .glass-card, .card, .stat-card, .table-container {
        border: 1px solid #ddd;
        background: #fff;
        box-shadow: none;
    }
}

/* ===== Utilities ===== */
.text-gradient {
    background: var(--ef-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bg-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}
.border-gradient {
    border-image: var(--ef-gradient) 1;
}
.hover-lift {
    transition: var(--ef-transition);
}
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--ef-shadow-lg);
}
.gap-grid {
    display: grid;
    gap: 1.5rem;
}
.gap-grid-sm {
    display: grid;
    gap: 1rem;
}
.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.min-w-0 {
    min-width: 0;
}

/* ===== Animation Classes ===== */
.fade-in {
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.slide-in {
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
