/* Event Management System - Glassmorphism Style */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    padding: 20px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-card .card-body {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 24px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 12px 20px;
    margin: 4px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* Main Content */
main {
    padding-top: 24px;
}

/* Cards */
.card.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    transition: transform 0.3s ease;
}

.card.glass-card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: rgba(13, 110, 253, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Forms */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Tables */
.table {
    background: rgba(255, 255, 255, 0.5);
}

.table th {
    background: rgba(13, 110, 253, 0.1);
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 10px 15px;
}

/* Dark Mode */
body.dark-mode {
    background: #1a1a2e;
    color: #eee;
}

body.dark-mode .glass-card {
    background: rgba(26, 26, 46, 0.75);
    color: #eee;
}

body.dark-mode .glass-card .card-body {
    background: rgba(26, 26, 46, 0.9);
    color: #eee;
}

body.dark-mode .sidebar {
    background: rgba(26, 26, 46, 0.95);
}

body.dark-mode .sidebar .nav-link {
    color: #eee;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        top: 0;
    }
    
    main {
        margin-left: 0;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Countdown Timer */
.countdown {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.toast {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
}

/* Image Preview */
.image-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    margin-top: 10px;
}