/* SFON Admin Panel Styles - Modern Design */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #1e293b;
    --accent-color: #10b981;
    --accent-dark: #059669;
    --highlight-color: #8b5cf6;
    --light-bg: #f1f5f9;
    --dark-bg: #0f172a;
    --dark-text: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --gray-light: #cbd5e1;
    --border-color: #e2e8f0;
    --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 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Login Page Styles */
.admin-login {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
}

.login-header {
    margin-bottom: 30px;
}

.login-logo {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.login-header h2 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.login-header p {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .input-group-text {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.login-form .form-control {
    border-color: #e9ecef;
    padding: 12px 15px;
    font-size: 0.95rem;
}

.login-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(135, 206, 235, 0.25);
}

.login-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    padding: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.3);
}

.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    color: var(--gray-light);
    font-size: 0.85rem;
}

/* Dashboard Styles */
.admin-dashboard {
    background: transparent;
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-lg);
    border-bottom: none;
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    filter: brightness(0) invert(1);
}

.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.sidebar-sticky {
    position: sticky;
    top: 0;
    height: calc(100vh - 56px);
    padding: 20px 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    color: var(--text-muted);
    padding: 14px 24px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    border-left: 4px solid transparent;
    margin: 2px 12px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    position: relative;
}

.sidebar .nav-link:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    transform: translateX(4px);
}

.sidebar .nav-link.active {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-left-color: var(--accent-color);
    box-shadow: var(--shadow);
    font-weight: 600;
}

.sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    right: 12px;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.sidebar .nav-link i {
    margin-right: 12px;
    width: 22px;
    text-align: center;
    font-size: 1.1rem;
}

main {
    margin-top: 56px;
    padding: 30px;
    background: transparent;
}

main h1, main h2 {
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

main h1 {
    font-size: 2rem;
}

main h2 {
    font-size: 1.75rem;
}

/* Dashboard Cards - Modern Glassmorphism */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

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

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--dark-text);
    letter-spacing: -0.02em;
}

.card-body {
    padding: 1.5rem;
}

/* Table Styles - Modern Design */
.table {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    font-weight: 700;
    padding: 18px 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-align: left;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-color: #f8f9fa;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.table tbody td strong {
    color: #1d2d6a;
    font-weight: 600;
    font-size: 1rem;
}

.table tbody td small {
    color: #6c757d;
    font-size: 0.85rem;
}

.table tbody tr {
    background-color: white;
    border-bottom: 1px solid #e9ecef;
}

.table tbody tr:hover {
    background-color: rgba(135, 206, 235, 0.1);
    cursor: pointer;
}

.table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table tbody tr:nth-child(even):hover {
    background-color: rgba(135, 206, 235, 0.15);
}

/* Member Photo in Table */
.member-photo-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
    font-size: 0.95rem;
    display: block;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #ced4da;
    padding: 12px 15px;
    transition: var(--transition);
    background-color: white;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.3rem rgba(135, 206, 235, 0.3);
    outline: none;
    background-color: white;
}

.form-control:hover {
    border-color: #adb5bd;
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 40px;
    appearance: none;
    width: 100%;
    overflow: visible;
    text-overflow: clip;
}

select.form-control option {
    padding: 12px 15px;
    background: white;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
}

select.form-control:focus option {
    background: #f8f9fa;
}

.form-control-file {
    padding: 10px;
    border: 2px dashed #e9ecef;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.form-control-file:hover {
    border-color: var(--primary-color);
    background-color: rgba(135, 206, 235, 0.05);
}

/* Photo Preview */
.photo-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px dashed #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: var(--transition);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.photo-preview:hover {
    border-color: var(--primary-color);
}

/* Button Styles - Modern Design */
.btn {
    border-radius: var(--radius);
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.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: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px 0 rgba(99, 102, 241, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px 0 rgba(16, 185, 129, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px 0 rgba(239, 68, 68, 0.5);
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 5px;
}

.action-buttons .btn {
    padding: 6px 10px;
    font-size: 0.85rem;
    border-width: 1.5px;
    font-weight: 500;
    transition: all 0.2s;
}

.action-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        height: 32px;
    }

    /* Fixed Sidebar for Mobile */
    .sidebar {
        position: fixed;
        top: 56px;
        bottom: 0;
        left: 0;
        z-index: 1040; /* Above overlay */
        width: 250px;
        margin-bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        background: white;
        height: calc(100vh - 56px);
        display: block !important; /* Force display for transform logic */
        box-shadow: 4px 0 10px rgba(0,0,0,0.1);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar-sticky {
        height: 100%;
        overflow-y: auto;
    }

    /* Adjust Main Content */
    main {
        margin-top: 20px;
        padding: 20px 15px;
        margin-left: 0 !important; /* Reset margin */
        width: 100%;
    }

    /* Overlay */
    .sidebar-overlay {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1030; /* Below sidebar, above content */
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        backdrop-filter: blur(2px);
    }
    
    .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }
    
    /* Login Page */
    .login-card {
        padding: 30px 20px;
        margin: 15px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    /* Typography adjustments */
    .h2 {
        font-size: 1.5rem;
    }
    
    /* Stats cards stacking */
    .card {
        margin-bottom: 20px;
    }
    
    /* Table responsiveness */
    .table-responsive {
        font-size: 0.85rem;
        border: 0;
    }
    
    .table td, .table th {
        white-space: nowrap;
        padding: 10px;
    }
    
    /* Action buttons in table */
    .action-buttons {
        flex-wrap: nowrap;
    }
    
    /* Forms */
    .form-group label {
        font-size: 0.9rem;
    }
    
    /* Hide some less critical elements on very small screens */
    .navbar-nav {
        display: none; /* Hide top right admin menu on mobile to save space */
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.alert-success {
    background: linear-gradient(135deg, var(--accent-color) 0%, #20c997 100%);
    color: white;
}

.registration-summary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    border-left: 6px solid var(--primary-color);
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.registration-summary::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.registration-summary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-left-width: 8px;
}

.registration-summary p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.registration-summary h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.registration-summary span {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.registration-summary.pending {
    border-left-color: #f59e0b;
}

.registration-summary.pending h3 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.registration-summary.processed {
    border-left-color: var(--accent-color);
}

.registration-summary.processed h3 {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.registration-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

/* Filter and Search Section */
.row.mb-4 .form-label {
    font-weight: 700;
    color: #1d2d6a;
    font-size: 0.85rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.row.mb-4 .form-control {
    border: 2px solid #ced4da;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-height: 48px;
    font-size: 1rem;
}

.row.mb-4 .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.3rem rgba(135, 206, 235, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.row.mb-4 select.form-control {
    font-size: 1rem;
    font-weight: 600;
    color: #1d2d6a;
    padding-left: 15px;
}

.registration-status-badge.status-pending {
    background: #fff4e5;
    color: #b76e00;
}

.registration-status-badge.status-processed {
    background: #e6f4ea;
    color: #1b5e20;
}

.registration-status-badge.status-checked-in {
    background: #e6f4ea;
    color: #1b5e20;
}

.registration-detail-card {
    min-height: 100%;
}

.registration-detail-card .detail-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-light);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.registration-detail-card .detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.registration-detail-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.registration-detail-card li {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px dashed #e9ecef;
    font-size: 0.9rem;
}

.registration-detail-card li:last-child {
    border-bottom: none;
}

#eventRegistrationEmptyState i {
    color: var(--gray-light);
}

.participant-badge-card {
    border: 2px solid #9B5A9B;
    box-shadow: 0 6px 20px rgba(155, 90, 155, 0.15);
    margin-top: 20px;
}

.participant-badge-card .card-header {
    background: linear-gradient(135deg, #9B5A9B 0%, #8B4A8B 100%);
    color: white;
    border-bottom: 3px solid #9B5A9B;
    padding: 15px 20px;
}

.participant-badge-card .card-header * {
    color: white !important;
}

.participant-badge-card .card-header h5 {
    color: white !important;
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
}

.participant-badge-card .card-header small {
    color: white !important;
    font-size: 0.9rem;
}

.participant-badge-card .card-header .btn {
    color: white !important;
    border-color: white !important;
}

.participant-badge-card .card-header .btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-color: white !important;
}

.participant-badge-card .card-header i {
    color: white !important;
}

.participant-badge-card .card-body {
    max-height: 800px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.badge-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    min-height: 200px;
}

.badge-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    font-family: 'Rajdhani', 'Public Sans', sans-serif;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.badge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.badge-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

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

.badge-card h6 {
    font-weight: 700;
    color: #9B5A9B;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.badge-role {
    background: linear-gradient(90deg, #9B5A9B 0%, #8B4A8B 100%);
    color: #fff;
    text-align: center;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.badge-icons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.badge-icon {
    text-align: center;
    flex: 1;
    color: #9B5A9B;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #AB6AAB;
    color: #fff;
    margin-bottom: 6px;
    box-shadow: 0 6px 16px rgba(155, 90, 155, 0.35);
}

.badge-qr {
    border: 2px solid #9B5A9B;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    text-align: center;
    margin-bottom: 12px;
}

.badge-qr img {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.badge-qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #b23c17;
    font-weight: 600;
    min-height: 190px;
    text-align: center;
    background: #fff8f5;
}

.badge-qr-placeholder p {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #b23c17;
}

.badge-name {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #9B5A9B;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 8px;
    background: rgba(29, 45, 106, 0.03);
    border-radius: 6px;
}

.badge-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge-actions button {
    flex: 1;
}

.admin-event-pass-container {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.admin-event-pass {
    width: 100%;
    background: radial-gradient(circle at top, rgba(238, 245, 255, 0.8), #ffffff);
    border: 3px solid #9B5A9B;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(36, 59, 138, 0.15);
    font-family: 'Poppins', 'Public Sans', Arial, sans-serif;
    color: #0c1d41;
}

.admin-event-pass .badge-top {
    background: linear-gradient(180deg, #d9f0f6 0%, #eef7ff 100%);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.admin-event-pass .badge-header {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 12px;
}

.admin-event-pass .badge-logo-wrap {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid #d5c9ff;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(49, 44, 91, 0.2);
}

.admin-event-pass .badge-logo {
    width: 95px;
    height: 95px;
    object-fit: contain;
}

.admin-event-pass .badge-title-block {
    padding-left: 0;
}

.admin-event-pass .badge-title .highlight {
    color: #d41732;
}

.admin-event-pass .badge-title .year {
    color: #6c7cff;
    font-weight: 700;
    display: inline-block;
    margin-left: 6px;
}

.admin-event-pass .badge-updates-highlight {
    color: #d2172f;
    font-style: italic;
    font-weight: 700;
}

.admin-event-pass .badge-updates {
    font-size: 0.95rem;
    color: #5e677a;
    font-weight: 600;
    margin-bottom: 4px;
}

.admin-event-pass .badge-updates span {
    color: #d2172f;
}

.admin-event-pass .badge-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0c1d41;
    margin: 0;
}

.admin-event-pass .badge-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(12, 29, 65, 0.12);
}

.admin-event-pass .badge-info-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

.admin-event-pass .badge-info-item i {
    color: #d2172f;
}

.admin-event-pass .badge-category {
    margin: 20px 0;
    background: linear-gradient(90deg, #017533 0%, #21b764 100%);
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    border-radius: 18px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.admin-event-pass .badge-qr {
    background: #fdfdff;
    border: 3px solid #dde6ff;
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(129, 75, 221, 0.12);
}

.admin-event-pass .badge-qr-box {
    display: inline-flex;
    padding: 18px;
    border: 3px solid #b8c9ff;
    border-radius: 18px;
    background: #f8fbff;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.admin-event-pass .badge-qr-box img {
    width: 230px;
    height: 230px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.admin-event-pass .badge-qr-note {
    margin-top: 16px;
    font-size: 0.9rem;
    color: #5e6784;
}

.admin-event-pass .badge-name {
    margin-top: 24px;
    text-align: center;
    font-size: 1.9rem;
    font-weight: 800;
    color: #122456;
}

.admin-event-pass .badge-footer {
    margin-top: 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #4c5d8a;
    font-size: 0.95rem;
}

.admin-event-pass .badge-footer small {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0.5px;
    color: #6e7593;
}

.admin-event-pass .badge-ribbon {
    margin-top: 20px;
    height: 12px;
    background: linear-gradient(90deg, #00818f 0%, #7b41d5 60%, #d41732 100%);
    border-radius: 999px;
}

.admin-event-pass .badge-qr-missing {
    width: 100%;
    flex-direction: column;
}

.admin-event-pass .badge-qr-missing p {
    margin-bottom: 10px;
    font-weight: 600;
}

.badge-missing-qr {
    text-align: center;
    font-size: 0.85rem;
    color: #b23c17;
}

/* Custom Checkbox */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(135, 206, 235, 0.25);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Status Badges */
.badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-active {
    background: var(--accent-color);
    color: white;
}

.badge-inactive {
    background: var(--gray-light);
    color: white;
}

/* Message Management Styles */
.message-preview {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 15px;
    background: #f8f9fa;
    font-size: 0.9rem;
    line-height: 1.5;
}

.message-preview p {
    margin-bottom: 10px;
}

.message-preview strong {
    color: var(--primary-color);
}

.message-preview em {
    color: var(--gray-light);
}

#messageContent {
    font-family: 'Public Sans', sans-serif;
    line-height: 1.6;
}

#messageContent:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(135, 206, 235, 0.25);
}

/* Enhanced form styling for message management */
#messageManagementSection .form-group {
    margin-bottom: 25px;
}

#messageManagementSection .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

#messageManagementSection .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(135, 206, 235, 0.25);
    transform: translateY(-1px);
}

#messageManagementSection .card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

#messageManagementSection .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

#messageManagementSection .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border-radius: 12px 12px 0 0 !important;
    border: none;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #messageManagementSection .col-md-4 {
        margin-top: 30px;
    }
    
    .message-preview {
        max-height: 200px;
    }
}

/* Form validation styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

/* Enhanced alert styles */
.alert.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Slider Management Styles */
.slider-preview {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 15px;
    background: #f8f9fa;
    font-size: 0.9rem;
    line-height: 1.5;
}

.slider-preview h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.slider-preview p {
    margin-bottom: 15px;
    color: #666;
}

.slider-preview .btn {
    margin: 5px;
    font-size: 0.8rem;
    padding: 5px 10px;
}

.slider-table-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.slider-status-active {
    color: #28a745;
    font-weight: 600;
}

.slider-status-inactive {
    color: #dc3545;
    font-weight: 600;
}

/* Enhanced form styles for slider management */
#sliderManagementSection .form-group {
    margin-bottom: 1.5rem;
}

#sliderManagementSection .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

#sliderManagementSection .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(135, 206, 235, 0.25);
}

#sliderManagementSection .card {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

#sliderManagementSection .card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 12px 12px 0 0 !important;
    border: none;
}

#sliderManagementSection .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#sliderManagementSection .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Dynamic Features - Animations & Transitions */
.registration-summary h3 {
    transition: transform 0.3s ease, color 0.3s ease;
}

.registration-summary h3:hover {
    transform: scale(1.05);
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-success .toast-content i {
    color: #28a745;
    font-size: 1.2rem;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-error .toast-content i {
    color: #dc3545;
    font-size: 1.2rem;
}

.toast-info {
    border-left: 4px solid #17a2b8;
}

.toast-info .toast-content i {
    color: #17a2b8;
    font-size: 1.2rem;
}

/* Loading Spinner */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Smooth Table Row Animations */
.table tbody tr {
    animation: fadeInRow 0.3s ease;
}

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

/* Badge Card Animations */
.badge-card {
    animation: slideInBadge 0.4s ease;
}

@keyframes slideInBadge {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Pulse Animation for New Items */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Smooth Hover Transitions */
.btn, .card, .badge-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Auto-refresh Indicator */
.auto-refresh-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(29, 45, 106, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 9999;
    display: none;
    animation: fadeIn 0.3s ease;
}

.auto-refresh-indicator.active {
    display: block;
}

.auto-refresh-indicator i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Search Input Focus Effect */
#eventRegistrationSearch:focus {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.3);
}

/* Statistics Counter Animation */
.registration-summary h3 {
    display: inline-block;
    transition: transform 0.2s ease;
}
