/* Modern School Events Management System Styles */

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --light: #f8fafc;
    --dark: #1e293b;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-info: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(to bottom, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--dark);
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    padding: 1.25rem 0;
    position: relative;
    overflow: visible !important;
    z-index: 1030;
}

.navbar::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-brand i {
    font-size: 1.75rem;
    vertical-align: middle;
    animation: pulse 2s infinite;
}

.navbar-brand:hover {
    transform: scale(1.05) translateY(-2px);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-link {
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    margin: 0 0.25rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 70%;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    border-color: white;
    transform: rotate(90deg);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: var(--gradient-primary);
    color: white !important;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.card-header h5,
.card-header h4,
.card-header h3 {
    color: white !important;
}

.card-body {
    padding: 2rem;
}

/* Gradient Cards */
.card.bg-primary {
    background: var(--gradient-primary) !important;
    border: none;
}

.card.bg-success {
    background: var(--gradient-success) !important;
    border: none;
}

.card.bg-info {
    background: var(--gradient-info) !important;
    border: none;
}

/* Buttons */
.btn {
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

/* Forms */
.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 0.875rem 1.25rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: #1e293b !important;
    margin-bottom: 0.5rem;
}

/* List Groups */
.list-group-item {
    border: none;
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: var(--shadow-sm);
}

.list-group-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transform: translateX(8px);
    box-shadow: var(--shadow);
}

.list-group-item h6,
.list-group-item .mb-1,
.list-group-item p {
    color: #1e293b !important;
}

.list-group-item .text-muted {
    color: #64748b !important;
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 8px;
    letter-spacing: 0.025em;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

/* Tables */
.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table thead th {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: #f8fafc;
    transform: scale(1.01);
}

/* Progress bars */
.progress {
    border-radius: 12px;
    height: 1.5rem;
    background: #e2e8f0;
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-primary);
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* Footer */
footer {
    background: white;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 4rem;
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Event Cards */
.event-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.event-card:hover::before {
    transform: scaleX(1);
}

.event-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Calendar styles */
.calendar-day {
    min-height: 120px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    background: white;
}

.calendar-day:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Notification badge */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: var(--shadow);
    animation: pulse 2s infinite;
}

/* Dropdown menus */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    margin-top: 0.5rem !important;
    animation: fadeInDown 0.3s ease-out;
    z-index: 1050 !important;
    position: absolute !important;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    transform: translateX(8px);
}

.dropdown-item i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown-item:hover i {
    transform: scale(1.2);
}

/* Navbar dropdown toggle */
.nav-link.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link.dropdown-toggle::after {
    display: none;
}

/* Navbar dropdown positioning */
.navbar .nav-item.dropdown {
    position: static !important;
}

.navbar .dropdown-menu {
    z-index: 1050 !important;
    position: absolute !important;
}

.navbar .navbar-collapse {
    position: static !important;
}

/* Badge in navbar */
.navbar .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    padding: 0.35rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    animation: pulse 2s infinite;
}

/* Status colors */
.status-draft { 
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}
.status-published { 
    background: var(--gradient-success);
}
.status-cancelled { 
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.status-completed { 
    background: var(--gradient-info);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1.5rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Loading spinner */
.spinner-border {
    border-width: 3px;
}

/* Dropdown menus */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(4px);
}

/* Stats cards animation */
.stats-card {
    animation: fadeInUp 0.6s ease-out;
}

.stats-card:nth-child(1) { animation-delay: 0.1s; }
.stats-card:nth-child(2) { animation-delay: 0.2s; }
.stats-card:nth-child(3) { animation-delay: 0.3s; }

/* Toast Notifications */
.toast {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1rem;
    min-width: 350px;
    max-width: 400px;
    backdrop-filter: blur(10px);
    position: relative;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.toast-header {
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}

.toast-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.toast-header.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.toast-header.bg-error,
.toast-header.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.toast-header.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.toast-header.bg-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.toast-header i {
    font-size: 1.25rem;
    animation: pulse 2s infinite;
}

.toast-header strong {
    font-size: 1rem;
    letter-spacing: 0.025em;
}

.toast-body {
    padding: 1.25rem 1.5rem;
    background: white;
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
}

.btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.btn-close-white:hover {
    opacity: 1;
    transform: rotate(90deg);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.toast.hiding {
    animation: slideOutRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
}

/* Toast container positioning */
.toast-container {
    z-index: 9999 !important;
}

/* Responsive toast */
@media (max-width: 576px) {
    .toast {
        min-width: 280px;
        max-width: calc(100vw - 2rem);
    }
}

/* ============================================
   LANDING PAGE STYLES (index.html)
   ============================================ */

/* Landing page specific root variables */
.landing-page {
    --primary: #667eea;
    --secondary: #764ba2;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Landing page body */
.landing-page body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient);
    min-height: 100vh;
    padding: 3rem 0;
    overflow-x: hidden;
    position: relative;
}

.landing-page body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Hero section */
.hero-section {
    background: white;
    border-radius: 30px;
    padding: 4rem 3rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 50%;
    z-index: 0;
    animation: float 20s infinite ease-in-out;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.08) 0%, rgba(102, 126, 234, 0.08) 100%);
    border-radius: 50%;
    z-index: 0;
    animation: float 15s infinite ease-in-out reverse;
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

/* Logo section */
.logo-section {
    text-align: center;
    margin-bottom: 2rem;
    animation: slideInDown 0.8s ease-out;
}

.logo-icon {
    font-size: 5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: bounce 2s infinite;
}

/* Hero title and subtitle */
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    animation: slideInDown 0.8s ease-out 0.2s both;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #64748b;
    margin-bottom: 3rem;
    font-weight: 500;
    animation: slideInDown 0.8s ease-out 0.3s both;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card > * {
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
    border-color: var(--primary);
}

.feature-card:hover .feature-icon,
.feature-card:hover .feature-title,
.feature-card:hover .feature-text {
    color: white;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.3s; }
.feature-card:nth-child(3) { animation-delay: 0.4s; }
.feature-card:nth-child(4) { animation-delay: 0.5s; }

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    animation: pulse 0.6s;
    transform: scale(1.2);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.feature-text {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

/* CTA section */
.cta-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn-group-custom {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-custom {
    padding: 1.25rem 3rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-custom:hover::before {
    width: 400px;
    height: 400px;
}

.btn-custom i {
    font-size: 1.3rem;
}

.btn-primary-custom {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-outline-custom {
    background: white;
    color: var(--primary);
    border: 3px solid var(--primary);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.btn-outline-custom:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

/* Capabilities section */
.capabilities-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.capabilities-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.capabilities-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.capability-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.capability-item:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.capability-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.capability-text {
    font-size: 1.1rem;
    color: #475569;
    font-weight: 500;
    margin: 0;
}

/* Footer section */
.footer-section {
    text-align: center;
    margin-top: 3rem;
    animation: fadeIn 1s ease-out 1s both;
}

.footer-text {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    margin: 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

/* Landing page animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Landing page responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-section {
        padding: 2.5rem 1.5rem;
    }
    
    .btn-custom {
        width: 100%;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-icon {
        font-size: 4rem;
    }
}

/* ============================================
   BASE TEMPLATE STYLES (base.html)
   ============================================ */

/* Body background */
.base-body-bg {
    background: #f8fafc;
}

/* Navbar styles */
.navbar-transparent {
    background: transparent;
    padding: 1rem 0;
    position: relative;
    z-index: 1030;
}

.navbar-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1rem 1.5rem;
    width: 100%;
    position: relative;
    overflow: visible;
}

.navbar-brand-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
}

.navbar-brand-gradient i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-toggler-custom {
    border-color: #667eea;
}

.navbar-collapse-static {
    position: static;
}

/* Nav links */
.nav-link-custom {
    color: #475569;
    transition: all 0.3s ease;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-link-custom:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Remove the white underline effect for nav-link-custom */
.nav-link-custom::before,
.nav-link-custom::after {
    display: none !important;
}

/* Login link in navbar - make it more visible and aligned with register button */
.navbar-nav .nav-item:not(.dropdown) .nav-link-custom {
    color: #1e293b;
    line-height: 1.5;
    vertical-align: middle;
}

.navbar-nav .nav-item:not(.dropdown) .nav-link-custom:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Align nav items vertically */
.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

/* Notification badge */
.notification-badge-custom {
    position: absolute;
    top: 0;
    left: 100%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    font-size: 0.65rem;
    padding: 0.35rem 0.5rem;
}

/* Dropdown menu styles */
.dropdown-menu-custom {
    border-radius: 12px;
    border: none;
    min-width: 200px;
}

.dropdown-menu-user {
    min-width: 220px;
}

.dropdown-item-custom {
    padding: 0.75rem 1.25rem;
    font-weight: 500;
}

.dropdown-divider-custom {
    margin: 0.5rem 0;
}

/* Register button */
.btn-register {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    vertical-align: middle;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Toast styles */
.toast-container-custom {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 1rem;
    z-index: 9999;
}

.toast-custom {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    min-width: 350px;
    max-width: 400px;
}

.toast-header-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    border-radius: 16px 16px 0 0;
}

.toast-header-error,
.toast-header-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    border-radius: 16px 16px 0 0;
}

.toast-header-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    border-radius: 16px 16px 0 0;
}

.toast-header-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    border-radius: 16px 16px 0 0;
}

.toast-header-custom i {
    font-size: 1.25rem;
    color: white !important;
}

.toast-header-custom strong {
    font-size: 1rem;
    color: white !important;
}

.toast-body-custom {
    padding: 1.25rem 1.5rem;
    background: white;
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
}

.btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

/* Footer styles */
.footer-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.footer-title {
    color: white;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.footer-text {
    color: white;
    opacity: 0.9;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.footer-copyright {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.footer-developer {
    color: white;
    opacity: 0.8;
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ============================================
   USER TEMPLATES STYLES (login.html, register.html)
   ============================================ */

/* Login/Register Container */
.login-container,
.register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.login-card {
    max-width: 480px;
    width: 100%;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    z-index: 1;
}

.register-card {
    max-width: 750px;
    width: 100%;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    z-index: 1;
}

/* Login/Register Header */
.login-header,
.register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon,
.register-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    animation: bounce 2s infinite;
}

.login-icon i,
.register-icon i {
    font-size: 3.5rem;
    color: white;
}

.login-header h2,
.register-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.login-header p,
.register-header p {
    color: #64748b;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Login/Register Card */
.login-container .card,
.register-container .card {
    border: none;
    border-radius: 25px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.login-container .card-body,
.register-container .card-body {
    padding: 3rem 2.5rem;
}

/* Form Floating */
.login-container .form-floating,
.register-container .form-floating {
    margin-bottom: 1.5rem;
}

.login-container .form-floating > .form-control,
.register-container .form-floating > .form-control,
.register-container .form-floating > .form-select {
    height: 65px;
    padding: 1.75rem 1.25rem 0.5rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.login-container .form-floating > .form-control:focus,
.register-container .form-floating > .form-control:focus,
.register-container .form-floating > .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
}

.register-container .form-floating > .form-control.is-invalid,
.register-container .form-floating > .form-select.is-invalid {
    border-color: #ef4444;
}

.login-container .form-floating > label,
.register-container .form-floating > label {
    padding: 1.25rem 1.25rem;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
}

.login-container .form-floating > label i,
.register-container .form-floating > label i {
    color: #667eea;
}

/* Password Requirements */
.password-requirements {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e2e8f0;
}

.password-requirements strong {
    color: #1e293b;
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.password-requirements ul {
    margin: 0;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.password-requirements ul li {
    color: #475569;
    padding: 0.35rem 0;
}

/* Login/Register Buttons */
.btn-login,
.btn-register {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-login:hover,
.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-login i,
.btn-register i {
    font-size: 1.3rem;
}

/* Login/Register Footer */
.login-footer,
.register-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.login-footer p,
.register-footer p {
    color: #475569;
    font-size: 1.05rem;
    margin: 0;
}

.login-footer a,
.register-footer a {
    color: #667eea;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-footer a:hover,
.register-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Error Text */
.error-text {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Alert in forms */
.register-container .alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .login-header h2,
    .register-header h2 {
        font-size: 2rem;
    }
    
    .login-container .card-body,
    .register-container .card-body {
        padding: 2rem 1.5rem;
    }
    
    .login-icon,
    .register-icon {
        width: 80px;
        height: 80px;
    }
    
    .login-icon i,
    .register-icon i {
        font-size: 2.5rem;
    }
}

/* ============================================
   DASHBOARD & PROFILE STYLES
   ============================================ */

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

/* Dashboard card headers - make them stand out */
.dashboard-header + .row .card-header,
.dashboard-header ~ .row .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.dashboard-header + .row .card-header h5,
.dashboard-header ~ .row .card-header h5,
.dashboard-header + .row .card-header i,
.dashboard-header ~ .row .card-header i {
    color: white !important;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.dashboard-header h2 {
    color: white !important;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.dashboard-header p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.1rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.dashboard-header i {
    color: white !important;
}

/* Stats Card */
.stats-card {
    border-radius: 20px;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.stats-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.stats-card:hover::before {
    transform: scale(1.5);
}

.stats-card h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white !important;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.stats-card h2 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    color: white !important;
    position: relative;
    z-index: 1;
}

.stats-card i {
    font-size: 2rem;
    color: white !important;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.stats-card-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.stats-card-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.stats-card-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

/* Action Card */
.action-card {
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.quick-actions .btn {
    margin: 0.5rem;
    min-width: 200px;
}

/* Event List Item */
.event-list-item {
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.event-list-item:hover {
    border-left-width: 8px;
    padding-left: 1.5rem !important;
}

/* Section Title */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
    color: #1e293b !important;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #475569 !important;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Profile Container */
.profile-container {
    padding: 2rem 0;
}

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header h1,
.page-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white !important;
}

.page-header h1 {
    font-size: 2.5rem;
}

.page-header i {
    font-size: 2.5rem;
    color: white !important;
}

/* Profile Card */
.profile-card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.profile-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    border: none;
}

.profile-card-header h4 {
    margin: 0;
    font-weight: 700;
    color: white !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-card-header h4 i {
    color: white !important;
}

.profile-card-body {
    padding: 2rem;
}

/* Buttons */
.btn-save {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
    color: white;
}

/* Info Card */
.info-card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.info-card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.info-card-header h5 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card-header i {
    color: #667eea !important;
}

.info-card-body {
    padding: 1.5rem;
}

.info-item {
    margin-bottom: 1rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item strong {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.info-item-value {
    color: #1e293b;
    font-size: 1.05rem;
    font-weight: 600;
}


/* Status Alert */
.status-alert {
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid;
    margin-bottom: 1.5rem;
}

.status-alert.connected {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
}

.status-alert.not-connected {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.status-alert-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-alert-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.status-alert.connected .status-alert-icon {
    color: #065f46;
}

.status-alert.not-connected .status-alert-icon {
    color: #92400e;
}

.status-alert-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.status-alert.connected .status-alert-text strong {
    color: #065f46;
}

.status-alert.not-connected .status-alert-text strong {
    color: #92400e;
}

.status-alert-text p {
    margin: 0;
    font-size: 0.95rem;
}

.status-alert.connected .status-alert-text p {
    color: #047857;
}

.status-alert.not-connected .status-alert-text p {
    color: #b45309;
}

/* Features Section */
.features-section {
    margin-bottom: 1.5rem;
}

.features-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.features-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.features-list.active li {
    color: #1e293b;
    font-weight: 500;
}

.features-list.inactive li {
    color: #94a3b8;
}

.features-list li i {
    font-size: 1.2rem;
    flex-shrink: 0;
}


/* Dashboard/Profile Responsive */
@media (max-width: 768px) {
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .page-header i {
        font-size: 2rem;
    }
}

/* ============================================
   EVENTS TEMPLATES STYLES
   ============================================ */

/* Events Container */
.events-container,
.event-detail-container,
.event-create-container {
    padding: 2rem 0;
}

/* Filter Card */
.filter-card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
}

.filter-card .card-body {
    padding: 2rem;
}

.filter-label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.btn-search {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: white;
}

/* Event Card */
.event-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.event-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.event-image-placeholder {
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-image-placeholder i {
    font-size: 4rem;
    color: white;
    opacity: 0.8;
}

.event-card .card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.event-card .card-text {
    color: #64748b;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Event Info List */
.event-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: #475569;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
}

.event-info li:last-child {
    border-bottom: none;
}

.event-info i {
    color: #667eea;
    font-size: 1.1rem;
    width: 20px;
}

.event-card .card-footer {
    background: #f8fafc;
    border-top: 2px solid #f1f5f9;
    padding: 1rem 1.5rem;
}

.btn-detail {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.btn-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* No Events */
.no-events {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #60a5fa;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
}

.no-events i {
    font-size: 4rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.no-events h5 {
    color: #1e40af;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.no-events p {
    color: #1e40af;
    margin: 0;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
}

.page-link {
    border-radius: 8px;
    margin: 0 0.25rem;
    border: 2px solid #e2e8f0;
    color: #667eea;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

/* Event Detail Styles */
.event-detail-container .event-image {
    height: 400px;
    border-radius: 16px 16px 0 0;
}

.page-header-content h1 {
    margin-bottom: 1rem;
}

.page-header-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.header-badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.5;
}

.header-badge:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-badge i {
    font-size: 1rem;
}

.main-card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.main-card-body {
    padding: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-grid .info-item {
    background: white;
    padding: 1.75rem;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 160px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-grid .info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-grid .info-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.info-grid .info-item:hover::before {
    opacity: 1;
}

.info-grid .info-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.info-grid .info-item:hover i {
    transform: scale(1.1);
    color: #764ba2;
}

.info-grid .info-item strong {
    display: flex;
    align-items: center;
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-grid .info-item-value {
    color: #1e293b;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    word-break: break-word;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 2rem 0;
}

.description-text {
    color: #475569;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Sidebar Cards */
.sidebar-card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.sidebar-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 1.5rem;
    border: none;
}

.sidebar-card-header h5 {
    margin: 0;
    font-weight: 700;
    color: white !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-card-header h5 i {
    color: white !important;
}

.sidebar-card-body {
    padding: 1.5rem;
}

.participants-info {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.sidebar-card .progress {
    height: 12px;
    border-radius: 8px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.sidebar-card .progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.6s ease;
}

/* Status Alerts */
.status-alert {
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.status-alert.success {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.status-alert.warning {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.status-alert.info {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

.status-alert i {
    font-size: 1.5rem;
}

.btn-register {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
    color: white;
}

.class-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.class-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.info-text {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.info-text strong {
    color: #1e293b;
    display: block;
    margin-bottom: 0.25rem;
}

/* Action Buttons */
.action-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #667eea;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    width: 100%;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.action-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

.back-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.back-btn:hover {
    background: #f8fafc;
    border-color: #667eea;
    color: #667eea;
    transform: translateX(-4px);
}

/* Event Create Styles */
.event-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.event-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

.event-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.event-header h4 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: white !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.event-header i {
    font-size: 2.5rem;
    color: white !important;
}

.event-body {
    padding: 2.5rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f1f5f9;
}

.form-section:last-of-type {
    border-bottom: none;
}

.btn-create {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-cancel {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    color: #475569;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #334155;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-grid .form-check {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.checkbox-grid .form-check:hover {
    background: #f1f5f9;
    border-color: #667eea;
}

.checkbox-grid .form-check-input:checked ~ .form-check-label {
    color: #667eea;
    font-weight: 600;
}

/* Events Responsive */
@media (max-width: 768px) {
    .event-detail-container .event-image {
        height: 250px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .event-body {
        padding: 1.5rem;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   EVENTS CALENDAR, MY EVENTS, MANAGE REGISTRATIONS
   ============================================ */

/* Calendar Container */
.calendar-container,
.my-events-container,
.manage-container {
    padding: 2rem 0;
}

/* Calendar Card */
.calendar-card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.calendar-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
}

.calendar-header h5 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.btn-nav {
    background: white;
    border: 2px solid #e2e8f0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-nav:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: scale(1.1);
}

.calendar-table {
    width: 100%;
    margin: 0;
}

.calendar-table thead th {
    background: #f8fafc;
    color: #1e293b;
    text-align: center;
    padding: 1rem;
    font-weight: 700;
    border: 2px solid #e2e8f0;
}

.calendar-table tbody td {
    height: 120px;
    vertical-align: top;
    padding: 0.75rem;
    border: 2px solid #f1f5f9;
    background: white;
    transition: all 0.3s ease;
}

.calendar-table tbody td:hover {
    background: #f8fafc;
    border-color: #667eea;
}

.calendar-table tbody td.empty {
    background: #f8fafc;
}

.day-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: block;
}

.event-badge {
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-badge:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Events List Card */
.events-list-card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.events-list-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.events-list-header h5 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
}

.event-item {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #f1f5f9;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    color: inherit;
}

.event-item:last-child {
    border-bottom: none;
}

.event-item:hover {
    background: #f8fafc;
    transform: translateX(8px);
}

.event-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.event-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.event-item-date {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.event-item-location {
    color: #64748b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-item-location i {
    color: #667eea;
}

.event-type-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* My Events Specific */
.event-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.event-card-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-card-placeholder i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.8);
}

.event-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.event-card-description {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.event-card-info {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.event-card-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.event-card-info i {
    color: #667eea;
    font-size: 1.1rem;
    width: 20px;
}

.event-status-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.event-card-footer {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 2px solid #e2e8f0;
}

.btn-view-event {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-view-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
    color: white;
}

.empty-state-icon {
    font-size: 5rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.empty-state-text {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.empty-state-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.empty-state-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Manage Registrations */
.event-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.filter-card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    min-height: 56px;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.filter-btn i {
    font-size: 1.2rem;
}

.registrations-card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.registrations-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.registrations-header h5 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
}

.registrations-body {
    padding: 2rem;
}

.registration-item {
    background: white;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.registration-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.registration-item:last-child {
    margin-bottom: 0;
}

.registration-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.student-info h6 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.student-details {
    display: flex;
    gap: 1.5rem;
    color: #64748b;
    font-size: 0.95rem;
}

.student-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.student-details i {
    color: #667eea;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge.pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.status-badge.approved {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.status-badge.rejected {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.registration-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.registration-actions form {
    margin: 0;
}

.btn-approve {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
}

.btn-approve:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-reject {
    width: 100%;
    background: white;
    border: 2px solid #ef4444;
    color: #ef4444;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
}

.btn-reject:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

/* No Events State */
.no-events {
    padding: 3rem 2rem;
    text-align: center;
    color: #64748b;
}

.no-events i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

/* Responsive for Calendar, My Events, Manage */
@media (max-width: 768px) {
    .calendar-table tbody td {
        height: 80px;
        padding: 0.5rem;
    }
    
    .day-number {
        font-size: 0.9rem;
    }
    
    .event-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.5rem;
    }
    
    .event-card-image,
    .event-card-placeholder {
        height: 180px;
    }
    
    .registration-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .student-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .registration-actions {
        flex-direction: column;
    }
}

/* ============================================
   ATTENDANCE TEMPLATES STYLES
   ============================================ */

/* Attendance Container */
.attendance-container,
.report-container {
    padding: 2rem 0;
}

/* Attendance Card */
.attendance-card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.attendance-card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.attendance-card-header h5 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
}

.attendance-card-body {
    padding: 2rem;
}

/* Attendance Table */
.attendance-table,
.report-table {
    width: 100%;
    margin: 0;
}

.attendance-table thead th,
.report-table thead th {
    background: #f8fafc;
    color: #1e293b;
    padding: 1rem;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
}

.attendance-table thead th.text-center {
    text-align: center;
}

.attendance-table tbody tr,
.report-table tbody tr {
    border-bottom: 2px solid #f1f5f9;
    transition: all 0.3s ease;
}

.attendance-table tbody tr:hover,
.report-table tbody tr:hover {
    background: #f8fafc;
}

.attendance-table tbody tr:last-child,
.report-table tbody tr:last-child {
    border-bottom: none;
}

.attendance-table tbody td,
.report-table tbody td {
    padding: 1.25rem 1rem;
    color: #475569;
    vertical-align: middle;
}

.attendance-table tbody td:first-child,
.report-table tbody td:first-child {
    font-weight: 700;
    color: #667eea;
}

.student-name {
    font-weight: 600;
    color: #1e293b;
}

.student-class {
    color: #64748b;
    font-size: 0.95rem;
}

/* Form Switch */
.form-switch {
    padding-left: 0;
}

.form-check-input {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
    border: 2px solid #cbd5e1;
    background-color: #e2e8f0;
}

.form-check-input:checked {
    background-color: #10b981;
    border-color: #10b981;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}

/* Reason Select */
.reason-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.reason-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
}

.reason-select:disabled {
    background-color: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-cancel {
    flex: 1;
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-cancel:hover {
    background: #f8fafc;
    border-color: #667eea;
    color: #667eea;
}

/* Report Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-card-body {
    padding: 2rem;
    position: relative;
}

.stat-card.total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-card.present {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.stat-card.absent {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.3;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.stat-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
    color: white !important;
}

/* Percentage Card */
.percentage-card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.percentage-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.percentage-card .progress {
    height: 2.5rem;
    border-radius: 12px;
    background: #e2e8f0;
    overflow: hidden;
}

.percentage-card .progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    transition: width 0.6s ease;
}

/* Report Card */
.report-card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.report-card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-card-header h5 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
}

.btn-export {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
    color: white;
}

.report-card-body {
    padding: 2rem;
}

/* Status Badges for Attendance */
.status-badge.present {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.status-badge.absent {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

/* Back and Edit Buttons */
.btn-back {
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-back:hover {
    background: #f8fafc;
    border-color: #667eea;
    color: #667eea;
    transform: translateX(-4px);
}

.btn-edit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Attendance Responsive */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }
    
    .attendance-table,
    .report-table {
        font-size: 0.9rem;
    }
    
    .attendance-table thead th,
    .attendance-table tbody td,
    .report-table thead th,
    .report-table tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    .report-card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .btn-export {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   NOTIFICATIONS & REPORTS TEMPLATES STYLES
   ============================================ */

/* Notifications Container */
.notifications-container {
    padding: 2rem 0;
}

.unread-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.notifications-card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.notifications-card-body {
    padding: 0;
}

.notification-item {
    padding: 2rem;
    border-bottom: 2px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: #f8fafc;
    transform: translateX(8px);
}

.notification-item.unread {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #667eea;
}

.notification-item.unread:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.notification-content {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.notification-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.notification-icon.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.notification-icon.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.notification-icon.danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.notification-icon.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.notification-icon.secondary {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
}

.notification-body {
    flex-grow: 1;
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.new-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.notification-message {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.notification-time {
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-time i {
    color: #667eea;
}

.notification-action {
    margin-top: 1rem;
}

.empty-state-icon {
    font-size: 6rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: #64748b;
    font-size: 1.1rem;
}

/* Reports Specific Styles */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.participants-card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.participants-card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.participants-card-header h5 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
}

.export-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-export {
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-export.excel {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-export.excel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
    color: white;
}

.btn-export.pdf {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-export.pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
    color: white;
}

.participants-card-body {
    padding: 2rem;
}

.participants-table {
    width: 100%;
    margin: 0;
}

.participants-table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    font-weight: 600;
    border: none;
    text-align: left;
}

.participants-table tbody tr {
    border-bottom: 2px solid #f1f5f9;
    transition: all 0.3s ease;
}

.participants-table tbody tr:hover {
    background: #f8fafc;
}

.participants-table tbody tr:last-child {
    border-bottom: none;
}

.participants-table tbody td {
    padding: 1.25rem 1rem;
    color: #475569;
    vertical-align: middle;
}

.participants-table tbody td:first-child {
    font-weight: 700;
    color: #667eea;
}

.status-badge.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.status-badge.danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

/* Student Report Form */
.form-card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.form-card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.form-card-header h5 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
}

.form-card-body {
    padding: 2rem;
}

.btn-show {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.btn-show:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
    color: white;
}

.info-alert {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-alert i {
    font-size: 2rem;
    color: #1e40af;
    flex-shrink: 0;
}

.info-alert-text {
    color: #1e40af;
    font-weight: 500;
    margin: 0;
    font-size: 1rem;
}

/* Notifications & Reports Responsive */
@media (max-width: 768px) {
    .notification-item {
        padding: 1.5rem;
    }
    
    .notification-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .notification-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .export-buttons {
        flex-direction: column;
    }
    
    .btn-export {
        width: 100%;
        justify-content: center;
    }
    
    .participants-table {
        font-size: 0.9rem;
    }
    
    .participants-table thead th,
    .participants-table tbody td {
        padding: 0.75rem 0.5rem;
    }
}