/* Custom styles for Event Management System */

/* General styles */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== LOGIN PAGE STYLES ===== */

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

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 400px;
    width: 100%;
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.login-header h2 {
    margin: 0;
    font-weight: 300;
}

.login-body {
    padding: 40px 30px;
}

.login-page .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.login-page .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.login-page .alert {
    border-radius: 10px;
    border: none;
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: #667eea;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-icon {
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

.hero-section h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section .lead {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-light {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.95);
    color: #667eea;
}

.hero-buttons .btn-light:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    color: #5a6fd8;
}

.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 1);
    color: white;
}

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

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

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 350px;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-icon i {
        font-size: 3rem !important;
    }
}

/* Navigation enhancements */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Card enhancements */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

/* Section Headers Enhancement */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
    font-size: 2.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.section-subtitle {
    color: #6c757d;
    font-weight: 500;
    font-size: 1.2rem;
}

/* Button enhancements */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* Form enhancements */
.form-control {
    border-radius: 6px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
}

/* Table styles - consolidated and cleaned */
.table {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-collapse: collapse;
    border: 1px solid #333;
    width: 100%;
}

.table th,
.table td {
    border: 1px solid #333;
    padding: 0.75rem;
    text-align: left;
}

.table thead th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

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

/* Alert enhancements */
.alert {
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

/* Badge enhancements */
.badge {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Jumbotron enhancements */
.jumbotron {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* QR Scanner enhancements */
#qr-reader {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

#qr-reader video {
    border-radius: 6px;
}

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

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

/* Custom utility classes */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-radius-custom {
    border-radius: 15px;
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Status indicators */
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-active {
    background-color: #28a745;
}

.status-inactive {
    background-color: #dc3545;
}

.status-pending {
    background-color: #ffc107;
}

.status-confirmed {
    background-color: #28a745;
}

.status-cancelled {
    background-color: #dc3545;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Status Badge Styles */
.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* QR Scanner Restriction Styles */
.restriction-notice {
    border-left: 4px solid #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.restriction-notice .fa-exclamation-triangle {
    color: #856404;
}

.status-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

.access-denied-title {
    color: #721c24;
    font-weight: 600;
}

/* ===== HOME PAGE STYLES ===== */

/* Hero Section - Improved proportions */
.home-page .hero-section {
    min-height: 600px;
    padding: 4rem 0;
    display: flex;
    align-items: center;
}

.home-page .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.home-page .hero-icon {
    margin-bottom: 3rem;
    font-size: 5rem;
}

.home-page .hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.home-page .hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.home-page .hero-buttons {
    margin-top: 3rem;
}

.home-page .hero-buttons .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    margin: 0 1rem;
}

/* Single admin login button styling */
.home-page .hero-buttons .btn:only-child {
    margin: 0;
}

/* Action buttons for authenticated admins */
.home-page .hero-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    transition: all 0.3s ease;
}

.home-page .hero-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 1);
    color: white;
    transform: translateY(-2px);
}

/* Feature card action buttons */
.home-page .feature-card .btn {
    margin-top: auto;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 600;
    border-width: 2px;
    position: relative;
    z-index: 2;
}

.home-page .feature-card .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.home-page .feature-card .btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
    background-color: transparent;
}

.home-page .feature-card .btn-outline-primary:hover {
    color: white;
    background-color: #007bff;
    border-color: #007bff;
}

/* Event card action buttons */
.home-page .event-card .btn {
    margin-top: auto;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.home-page .event-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.home-page .event-card .btn + .btn {
    margin-left: 0.5rem;
}

/* Welcome message styling */
.home-page .jumbotron h2 {
    font-size: 3.2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.home-page .jumbotron .lead {
    font-size: 1.4rem;
    margin-bottom: 3.5rem;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.home-page .jumbotron .btn {
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    margin: 0 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-transform: none;
    letter-spacing: 0.5px;
}

.home-page .jumbotron .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.home-page .jumbotron .btn-light {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.95);
    color: #667eea;
    font-weight: 700;
}

.home-page .jumbotron .btn-light:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    color: #5a6fd8;
    transform: translateY(-4px);
}

.home-page .jumbotron .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: rgba(255, 255, 255, 0.95);
    background-color: transparent;
    font-weight: 600;
}

.home-page .jumbotron .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 1);
    color: white;
    transform: translateY(-4px);
}

/* Section Headers - Better proportions */
.home-page .section-header {
    margin-bottom: 5rem;
    text-align: center;
    position: relative;
}

.home-page .section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.2;
}

.home-page .section-subtitle {
    font-size: 1.4rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

/* Special styling for the features section */
.home-page .section-header.features-header {
    margin-bottom: 6rem;
}

.home-page .section-header.features-header .section-title {
    font-size: 3.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-page .section-header.features-header .section-title::after {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Stats Cards - Better contrast and readability */
.home-page .stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    height: 180px;
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.home-page .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.home-page .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
    border-color: #667eea;
}

.home-page .stat-card .card-body {
    padding: 1.5rem 1rem;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.home-page .stat-card .stat-icon {
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
    font-size: 2.8rem;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.home-page .stat-card .stat-icon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    opacity: 0.4;
}

.home-page .stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.home-page .stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
}

.home-page .stat-card .stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2c3e50;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Event Cards - Better contrast and readability */
.home-page .event-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    height: 280px;
    display: flex;
    flex-direction: column;
    border: 2px solid #e9ecef;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.home-page .event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.home-page .event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
    border-color: #667eea;
}

.home-page .event-card .card-body {
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
}

/* Content spacing improvements */
.home-page .event-card .content-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-page .event-card .card-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    min-height: 2.4rem;
    color: #1a202c;
    font-weight: 700;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.home-page .event-card .card-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 35px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1px;
}

.home-page .event-status .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.home-page .event-status .badge.bg-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.home-page .event-status .badge.bg-warning {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.home-page .event-status .badge.bg-secondary {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Event details section styling - Better contrast */
.home-page .event-details {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f1f5f9;
    border-radius: 10px;
    border-left: 3px solid #667eea;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.home-page .detail-item {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    line-height: 1.4;
    color: #1e293b;
    text-align: left;
    font-weight: 500;
}

.home-page .detail-item:last-child {
    margin-bottom: 0;
}

.home-page .detail-item i {
    width: 16px;
    margin-right: 0.75rem;
    color: #475569;
    font-size: 0.9rem;
    text-align: center;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.home-page .detail-item .detail-text {
    flex: 1;
    font-weight: 600;
    color: #1e293b;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* Event card buttons - Better contrast */
.home-page .event-card .btn {
    margin-top: auto;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.2px;
    border-width: 2px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.home-page .event-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.home-page .event-card .btn:hover::before {
    left: 100%;
}

.home-page .event-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.home-page .event-card .btn-outline-primary {
    color: #1e40af;
    border-color: #1e40af;
    background-color: transparent;
    font-weight: 700;
}

.home-page .event-card .btn-outline-primary:hover {
    color: white;
    background-color: #1e40af;
    border-color: #1e40af;
}

.home-page .event-card .btn-outline-success {
    color: #059669;
    border-color: #059669;
    background-color: transparent;
    font-weight: 700;
}

.home-page .event-card .btn-outline-success:hover {
    color: white;
    background-color: #059669;
    border-color: #059669;
}

/* Button container styling for better alignment */
.home-page .event-card .btn-container {
    margin-top: auto;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* Ensure buttons are properly sized */
.home-page .event-card .btn {
    flex: 1;
    min-width: 100px;
    text-align: center;
}

/* Card grid improvements - Better spacing */
.home-page .col-lg-4.col-md-6 {
    margin-bottom: 1.5rem;
}

/* Ensure consistent spacing between event cards */
.home-page .event-card + .event-card {
    margin-top: 0;
}

/* Force the event cards row to be complete */
.home-page .row.g-4.justify-content-center {
    margin-bottom: 0;
}

/* Fix button spacing in event cards */
.home-page .event-card .btn + .btn {
    margin-left: 0.6rem;
}

/* Section spacing improvements */
.home-page .section-header {
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.home-page .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a202c;
    font-weight: 800;
    line-height: 1.2;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.home-page .section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.home-page .section-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    font-weight: 600;
    margin-top: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Special styling for the features section */
.home-page .section-header.features-header {
    margin-bottom: 5rem;
}

.home-page .section-header.features-header .section-title {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.home-page .section-header.features-header .section-title::after {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Container spacing improvements */
.home-page .container.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Manage All Events Button - Better contrast */
.home-page .manage-all-events-section {
    margin-top: 3rem;
    padding: 2rem 0;
    clear: both;
    display: block;
    width: 100%;
    position: relative;
}

.home-page .manage-all-events-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.home-page .manage-all-events-section .btn {
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
    text-transform: none;
    letter-spacing: 0.4px;
    border: none;
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.home-page .manage-all-events-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.5);
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

/* Feature Cards - Improved proportions and styling */
.home-page .feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 25px;
    height: 380px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.home-page .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15) !important;
    border-color: #667eea;
}

.home-page .feature-card .card-body {
    padding: 3rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.home-page .icon-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 3rem;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.home-page .feature-card:hover .icon-circle {
    transform: scale(1.15);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.home-page .feature-card .card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    line-height: 1.3;
    min-height: 2.8rem;
}

.home-page .feature-card .card-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #495057;
    flex-grow: 1;
    margin-bottom: 2rem;
}

/* Call to Action Section - Better proportions and improved design */
.home-page .jumbotron {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    padding: 6rem 4rem;
    margin: 8rem 0 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.home-page .jumbotron::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.2;
    pointer-events: none;
}

.home-page .jumbotron h2 {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    position: relative;
    z-index: 2;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.home-page .jumbotron .lead {
    font-size: 1.5rem;
    margin-bottom: 4rem;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.home-page .jumbotron .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    margin: 0 0.75rem;
    transition: all 0.3s ease;
}

.home-page .jumbotron .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Manage All Events Button - Proper positioning and styling */
.home-page .manage-all-events-section {
    margin-top: 4rem;
    padding: 3rem 0;
    clear: both;
    display: block;
    width: 100%;
    position: relative;
}

.home-page .manage-all-events-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1px;
}

.home-page .manage-all-events-section .btn {
    padding: 18px 45px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
    text-transform: none;
    letter-spacing: 0.5px;
    border: none;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.home-page .manage-all-events-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

/* Container spacing for the manage all events button */
.home-page .container + .container {
    margin-top: 1rem;
}

/* Debug: Ensure proper grid behavior */
.home-page .row.g-4.justify-content-center::after {
    content: '';
    display: table;
    clear: both;
}

/* Ensure the manage all events section breaks out of the grid */
.home-page .manage-all-events-section {
    clear: both;
    float: none;
    width: 100%;
}

/* Jumbotron button container improvements */
.home-page .jumbotron .btn-container {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Jumbotron content positioning */
.home-page .jumbotron .container {
    position: relative;
    z-index: 2;
}

/* Responsive adjustments for better proportions */
@media (max-width: 1200px) {
    .home-page .stat-card {
        height: 180px;
    }
    
    .home-page .stat-card .stat-number {
        font-size: 2.5rem;
    }
    
    .home-page .stat-card .stat-icon {
        font-size: 3rem;
    }
    
    .home-page .jumbotron {
        padding: 4rem 2.5rem;
        margin: 5rem 0 3rem 0;
    }
    
    .home-page .jumbotron h2 {
        font-size: 2.8rem;
    }
    
    .home-page .jumbotron .lead {
        font-size: 1.3rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .home-page .hero-section {
        min-height: 500px;
        padding: 3rem 0;
    }
    
    .home-page .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .home-page .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .home-page .section-title {
        font-size: 2.2rem;
    }
    
    .home-page .section-subtitle {
        font-size: 1.1rem;
    }
    
    .home-page .stat-card {
        height: 160px;
        margin-bottom: 1rem;
    }
    
    .home-page .event-card {
        height: auto;
        min-height: 250px;
        margin-bottom: 1rem;
    }
    
    .home-page .event-card .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        min-width: auto;
    }
    
    .home-page .event-card .btn + .btn {
        margin-left: 0;
    }
    
    .home-page .event-card .btn-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .home-page .event-card {
        height: auto;
        min-height: 280px;
    }
    
    .home-page .feature-card {
        height: auto;
        min-height: 350px;
        margin-bottom: 1rem;
    }
    
    .home-page .feature-card .card-body {
        padding: 2.5rem 2rem;
    }
    
    .home-page .icon-circle {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .home-page .feature-card .card-title {
        font-size: 1.3rem;
    }
    
    .home-page .feature-card .card-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .home-page .jumbotron {
        padding: 3rem 1.5rem;
        margin: 3rem 0;
    }
    
    .home-page .jumbotron h2 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    
    .home-page .jumbotron .lead {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    .home-page .jumbotron .btn {
        padding: 15px 30px;
        font-size: 1rem;
        margin: 0.5rem;
    }
    
    .home-page .jumbotron .btn-container {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .home-page .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .home-page .jumbotron .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .home-page .manage-all-events-section .btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .home-page .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .home-page .hero-icon {
        font-size: 4rem;
        margin-bottom: 2rem;
    }
    
    .home-page .section-title {
        font-size: 1.8rem;
    }
    
    .home-page .stat-card .stat-number {
        font-size: 2rem;
    }
    
    .home-page .stat-card .stat-icon {
        font-size: 2.5rem;
    }
    
    .home-page .jumbotron {
        padding: 2.5rem 1rem;
        margin: 2.5rem 0;
    }
    
    .home-page .jumbotron h2 {
        font-size: 1.8rem;
        margin-bottom: 1.25rem;
    }
    
    .home-page .jumbotron .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .home-page .jumbotron .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
        margin: 0.25rem;
    }
    
    .home-page .feature-card {
        min-height: 300px;
    }
    
    .home-page .feature-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    .home-page .icon-circle {
        width: 90px;
        height: 90px;
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    
    .home-page .section-header.features-header .section-title {
        font-size: 2.5rem;
    }
}

/* ===== REPORTS STYLES ===== */

/* Report Header Styles - Enhanced */
.report-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.report-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.2;
    pointer-events: none;
}

.report-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.report-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

/* Filter Section - Enhanced */
.filter-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.filter-section .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.filter-section .form-select,
.filter-section .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.filter-section .form-select:focus,
.filter-section .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.filter-section .form-select:invalid {
    border-color: #dc3545;
}

.filter-section .form-control:invalid {
    border-color: #dc3545;
}

/* Filter Section Button Styling */
.filter-section .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    height: 100%;
    min-height: 48px;
}

.filter-section .btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a5acd 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.filter-section .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.filter-section .btn-primary:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
}

.filter-section .btn-primary i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* Filter Section Responsive */
@media (max-width: 768px) {
    .filter-section .col-md-4 {
        margin-bottom: 1rem;
    }
    
    .filter-section .btn-primary {
        min-height: 44px;
        font-size: 0.95rem;
    }
}

/* Summary Cards - Enhanced */
.summary-cards {
    margin-bottom: 2.5rem;
}

.summary-card {
    background: white;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    text-align: center;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.summary-card .number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary-card .label {
    color: #495057;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Export Buttons - Enhanced */
.export-buttons {
    margin-bottom: 2.5rem;
    text-align: center;
}

.export-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    border-width: 2px;
}

.export-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.export-buttons .btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.export-buttons .btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.export-buttons .btn-outline-success {
    color: #28a745;
    border-color: #28a745;
}

.export-buttons .btn-outline-success:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

/* No Events Section - Enhanced */
.no-events {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
    background: white;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

.no-events i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #dee2e6;
    display: block;
}

.no-events h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 1rem;
}

.no-events p {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

/* Event Section Styles - Enhanced */
.event-section {
    margin-bottom: 3rem;
    page-break-inside: avoid;
    background: white;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.event-header {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 1.5rem;
    border-radius: 15px 15px 0 0;
    margin-bottom: 0;
    border-left: 5px solid #2196f3;
    border-bottom: 1px solid #e9ecef;
}

.event-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.event-details {
    color: #2c3e50;
    font-size: 1rem;
}

.event-details p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.event-details strong {
    color: #1565c0;
    font-weight: 700;
}

/* Attendees Table Styles - Enhanced */
.attendees-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    background: white;
    box-shadow: none;
    border: none;
}

.attendees-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: #2c3e50;
    border: 1px solid #dee2e6;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.attendees-table td {
    padding: 1rem;
    border: 1px solid #dee2e6;
    font-size: 0.95rem;
    vertical-align: middle;
}

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

.attendees-table tr:hover {
    background-color: #e3f2fd;
}

.row-number {
    text-align: center;
    font-weight: 700;
    color: #495057;
    width: 60px;
    background: #f8f9fa;
}

.signature-cell {
    height: 50px;
    border: 1px solid #dee2e6;
    background: #fafafa;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Time Cell Styles - Enhanced */
.time-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    text-align: center;
    font-weight: 600;
}

.time-cell .text-success,
.time-cell .text-warning,
.time-cell .text-info {
    display: inline-block;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.time-cell .text-success {
    color: #155724;
    background: #d4edda;
}

.time-cell .text-warning {
    color: #856404;
    background: #fff3cd;
}

.time-cell .text-info {
    color: #0c5460;
    background: #d1ecf1;
}

/* Attendee Info Styles - Enhanced */
.attendee-info {
    text-align: left;
}

.attendee-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.attendee-id {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.company-cell {
    text-align: center;
    font-weight: 600;
    color: #495057;
}

/* Status Badge Styles - Enhanced */
.badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
    color: #212529 !important;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.badge.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

/* Print Event Header Styles */
.print-event-header {
    display: none;
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.print-event-header h1 {
    font-size: 14pt;
    font-weight: 900;
    color: #000;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
    padding-bottom: 0;
    display: inline-block;
}

.print-event-header h2 {
    font-size: 12pt;
    font-weight: 700;
    color: #000;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: white;
    border: none;
    border-radius: 0;
    text-align: center;
    box-shadow: none;
}

.detail-item .label {
    font-weight: 400;
    color: #495057;
    font-size: 10pt;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item .value {
    font-weight: 400;
    color: #2c3e50;
    font-size: 12pt;
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

/* Print Table Styles - Formal Office Report */
.print-table-container {
    margin-top: 2rem;
    width: 100%;
}

.print-attendees-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border: 2px solid #2c3e50;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.print-attendees-table th {
    background: #2c3e50;
    color: white;
    padding: 0.75rem 0.5rem;
    font-weight: 700;
    font-size: 10pt;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #34495e;
    vertical-align: middle;
}

.print-attendees-table td {
    padding: 0.75rem 0.5rem;
    border: 1px solid #34495e;
    font-size: 12pt;
    text-align: center;
    vertical-align: middle;
    font-weight: 400;
}

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

.print-attendees-table tr:nth-child(odd) {
    background: white;
}

.print-attendees-table tr:hover {
    background: #e9ecef;
}

/* Print Footer - Formal Office Report */
.print-footer {
    display: none;
    margin-top: 2rem;
    padding: 1rem;
    text-align: center;
    border-top: none;
    background: white;
    border-radius: 0;
}

.print-footer p {
    margin: 0;
    color: #495057;
    font-size: 10pt;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Print-specific class for JavaScript control */
.print-mode .print-event-header,
.print-mode .print-footer {
        display: block !important;
    }
    
/* Ensure print elements are hidden by default when not in print mode */
.print-event-header,
.print-footer {
        display: none !important;
    }
    
/* Events Report specific print styles */
.print-mode .event-section {
    page-break-inside: avoid !important;
    page-break-after: always !important;
    margin-top: 0.5in !important;
    padding-top: 0 !important;
}

.print-mode .event-section:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
    page-break-before: auto !important;
}

/* Force first page to start at very top */
.print-mode .event-section:first-child .print-event-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.print-mode .event-section:first-child .print-event-header h1 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.print-mode .event-section:last-child {
    page-break-after: avoid !important;
}

.print-mode .filter-section,
.print-mode .export-buttons,
.print-mode .navbar,
.print-mode .summary-cards,
.print-mode .event-header,
.print-mode .report-header {
    display: none !important;
}

/* Hide card styling but keep content visible */
.print-mode .card {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
        margin: 0 !important;
    padding: 0 !important;
}

/* Hide the screen attendance list section in print to avoid duplication */
.print-mode .card-header,
.print-mode .card-body {
    display: none !important;
}

/* Ensure no extra top spacing on first page */
.print-mode .container-fluid,
.print-mode .row,
.print-mode .col-12 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.print-mode .event-section {
    border: none !important;
        background: white !important;
        box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

.print-mode .print-event-header {
    border: none !important;
    margin: 0 !important;
    padding: 1.5rem !important;
        box-shadow: none !important;
    background: white !important;
    display: block !important;
    page-break-inside: avoid !important;
    page-break-after: avoid !important;
    height: auto !important;
    min-height: 0 !important;
}

.print-mode .print-event-header h1 {
    color: #000 !important;
    border-bottom: none !important;
    font-size: 14pt !important;
    margin-bottom: 0.75rem !important;
    padding-bottom: 0 !important;
    background: white !important;
}

.print-mode .print-event-header h2 {
    color: #000 !important;
    font-size: 12pt !important;
    margin-bottom: 0.5rem !important;
    background: white !important;
}

.print-mode .print-event-header h3 {
    color: #000 !important;
    font-size: 11pt !important;
    margin-bottom: 0.5rem !important;
    background: white !important;
    font-weight: 400 !important;
}

.print-mode .print-event-header h4 {
    color: #000 !important;
    font-size: 10pt !important;
    margin-bottom: 1rem !important;
    background: white !important;
    font-weight: 400 !important;
}
    


.print-mode .print-table-container {
    height: auto !important;
    min-height: 0 !important;
    margin-bottom: 2rem !important;
}

.print-mode .print-attendees-table {
    height: auto !important;
    min-height: 0 !important;
    page-break-inside: avoid;
    border: 2px solid #000 !important;
    width: 100% !important;
    max-width: none !important;
}

.print-mode .print-attendees-table th,
.print-mode .print-attendees-table td {
    border: 1px solid #000 !important;
    background: white !important;
        color: black !important;
    font-weight: 400 !important;
    font-size: 12pt !important;
}

.print-mode .print-attendees-table th {
    font-weight: 700 !important;
    font-size: 10pt !important;
    background: #000 !important;
    color: white !important;
}

.print-mode .print-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 1rem !important;
    background: white !important;
    border-top: 1px solid #000 !important;
    z-index: 1000 !important;
    page-break-inside: avoid !important;
    page-break-after: avoid !important;
}

.print-mode .print-footer p {
    color: #000 !important;
    font-size: 10pt !important;
    background: white !important;
}

/* Events Report print table styling */
.print-mode .print-attendees-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 1rem !important;
}

.print-mode .print-attendees-table th,
.print-mode .print-attendees-table td {
    border: 1px solid #000 !important;
    padding: 0.5rem !important;
    text-align: left !important;
    font-size: 11pt !important;
}

.print-mode .print-attendees-table th {
    background: #f0f0f0 !important;
    font-weight: bold !important;
}

/* Print Media Queries - Formal Office Report */
@media print {
    .print-event-header,
    .print-footer {
        display: block !important;
    }
    
    .filter-section,
    .export-buttons,
    .navbar,
    .summary-cards,
    .event-header,
    .report-header {
        display: none !important;
    }
    
    /* Hide card styling but keep content visible */
    .card {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Hide the screen attendance list section in print to avoid duplication */
    .card-header,
    .card-body {
        display: none !important;
    }
    
    /* Hide event-section but keep print content visible */
    .event-section {
        border: none !important;
        background: white !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        min-height: 0 !important;
    }
    
    /* Keep all event sections visible in print */
    .event-section {
        display: block !important;
        page-break-inside: avoid !important;
        page-break-after: always !important;
        margin-top: 0.5in !important;
        padding-top: 0 !important;
    }
    
    /* Events Report: First event - no extra top spacing */
    .event-section:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
        page-break-before: auto !important;
    }
    
    /* Force first page to start at very top */
    .event-section:first-child .print-event-header {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .event-section:first-child .print-event-header h1 {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Events Report: Each event starts on a new page */
    .event-section:last-child {
        page-break-after: avoid !important;
    }
    
    /* Ensure print content is visible */
    .print-event-header,
    .print-footer {
        display: block !important;
    }
    
    /* Ensure print content takes up proper space */
    .print-event-header:empty,
    .print-footer:empty {
        display: none !important;
    }
    
    /* Position footer at bottom of page */
    .print-footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 1rem !important;
        background: white !important;
        border-top: 1px solid #000 !important;
        z-index: 1000 !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 12pt !important;
        position: relative !important;
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
        padding-bottom: 4rem !important; /* Make room for fixed footer */
    }
    
    /* Ensure no extra top spacing on first page */
    .container-fluid,
    .row,
    .col-12 {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Hide container borders but keep content visible */
    .container-fluid,
    .row,
    .col-12 {
        border: none !important;
        background: white !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .print-attendees-table {
        page-break-inside: avoid;
        border: 2px solid #000 !important;
        width: 100% !important;
        max-width: none !important;
    }
    
    .print-attendees-table th,
    .print-attendees-table td {
        border: 1px solid #000 !important;
        background: white !important;
        color: black !important;
        font-weight: 400 !important;
        font-size: 12pt !important;
    }
    
    .print-attendees-table th {
        font-weight: 700 !important;
        font-size: 10pt !important;
        background: #000 !important;
        color: white !important;
    }
    
    .print-event-header {
        border: none !important;
        margin: 0 !important;
        padding: 1.5rem !important;
        box-shadow: none !important;
        background: white !important;
        display: block !important;
        page-break-inside: avoid !important;
        page-break-after: avoid !important;
        height: auto !important;
        min-height: 0 !important;
    }
    
    .print-event-header h1 {
        color: #000 !important;
        border-bottom: none !important;
        font-size: 14pt !important;
        margin-bottom: 0.75rem !important;
        padding-bottom: 0 !important;
        background: white !important;
    }
    
    .print-event-header h2 {
        color: #000 !important;
        font-size: 12pt !important;
        margin-bottom: 1rem !important;
        background: white !important;
    }
    
    .detail-item {
        border: none !important;
        background: white !important;
        box-shadow: none !important;
        padding: 0.75rem !important;
        margin-bottom: 0.5rem !important;
        height: auto !important;
        min-height: 0 !important;
    }
    
    .detail-item .label {
        color: #000 !important;
        font-size: 10pt !important;
        margin-bottom: 0.25rem !important;
        font-weight: 400 !important;
        background: white !important;
    }
    
    .detail-item .value {
        color: #000 !important;
        font-size: 12pt !important;
        font-weight: 400 !important;
        background: white !important;
    }
    
    .event-details-grid {
        gap: 1rem !important;
        margin-bottom: 1.5rem !important;
        background: white !important;
        height: auto !important;
        min-height: 0 !important;
    }
    
    .print-table-container {
        height: auto !important;
        min-height: 0 !important;
        margin-bottom: 2rem !important;
    }
    
    .print-attendees-table {
        height: auto !important;
        min-height: 0 !important;
    }
    

    
    .print-footer p {
        color: #000 !important;
        font-size: 10pt !important;
        background: white !important;
    }
    
    /* Page settings for formal reports with 1-inch margins */
    @page {
        size: A4;
        margin: 25.4mm 25.4mm 25.4mm 25.4mm; /* 1 inch = 25.4mm */
        orphans: 3;
        widows: 3;
    }
    
    /* Prevent extra page breaks and blank pages */
    .container-fluid,
    .row,
    .col-12 {
        height: auto !important;
        min-height: 0 !important;
        page-break-inside: avoid !important;
        page-break-after: avoid !important;
    }
    
    /* Ensure content fits on one page */
    .print-event-header,
    .print-table-container,
    .print-footer {
        page-break-inside: avoid !important;
        page-break-after: avoid !important;
        page-break-before: avoid !important;
    }
    
    /* Allow content to flow naturally */
    html, body {
        height: auto !important;
        overflow: visible !important;
    }
    
    /* Ensure footer stays at bottom */
    .print-footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 1rem !important;
        background: white !important;
        border-top: 1px solid #000 !important;
        z-index: 1000 !important;
        page-break-inside: avoid !important;
        page-break-after: avoid !important;
    }
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .jumbotron {
        padding: 2rem !important;
    }
    
    .jumbotron h1 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Contact Information Section - Better contrast and design */
.home-page .contact-info-section {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.home-page .contact-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.home-page .contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.home-page .contact-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.home-page .contact-icon i {
    font-size: 3rem;
    color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

.home-page .contact-content h4 {
    color: #1a202c;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.home-page .contact-text {
    color: #2d3748;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 600;
}

.home-page .contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-page .contact-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.home-page .contact-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.home-page .contact-item i {
    width: 22px;
    margin-right: 1.25rem;
    color: #4c51bf;
    font-size: 1.1rem;
    text-align: center;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.home-page .contact-item span {
    color: #1a202c;
    font-weight: 600;
    flex: 1;
    font-size: 1rem;
}

.home-page .contact-item strong {
    color: #1a202c;
    font-weight: 800;
    font-size: 1.05rem;
}

/* Responsive adjustments for contact section */
@media (max-width: 768px) {
    .home-page .contact-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .home-page .contact-icon i {
        font-size: 2.5rem;
    }
    
    .home-page .contact-content h4 {
        font-size: 1.2rem;
    }
    
    .home-page .contact-text {
        font-size: 0.95rem;
    }
    
    .home-page .contact-item {
        padding: 0.8rem 1rem;
    }
    
    .home-page .contact-item i {
        width: 20px;
        margin-right: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .home-page .contact-card {
        padding: 1.25rem;
        margin: 0 0.5rem;
    }
    
    .home-page .contact-icon i {
        font-size: 2.2rem;
    }
    
    .home-page .contact-content h4 {
        font-size: 1.1rem;
    }
    
    .home-page .contact-text {
        font-size: 0.9rem;
    }
    
    .home-page .contact-details {
        gap: 0.75rem;
    }
    
    .home-page .contact-item {
        padding: 0.7rem 0.9rem;
    }
    
    .home-page .contact-item i {
        width: 18px;
        margin-right: 0.8rem;
        font-size: 0.95rem;
    }
}

/* ===== ATTENDEE EDIT FORM STYLES ===== */

.event-disabled {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #6c757d !important;
    cursor: not-allowed;
    padding-right: 2.5rem !important;
}

.event-disabled:focus {
    box-shadow: none !important;
    border-color: #dee2e6 !important;
}

.badge.bg-secondary {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.form-text {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.position-relative .fas.fa-lock {
    pointer-events: none;
    z-index: 1;
}

/* Screen Footer */
.screen-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6 !important;
}

/* ===== PRINT STYLES ===== */

/* Print Event Header Styles */
.print-event-header {
    display: none;
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.print-event-header h1 {
    font-size: 14pt;
    font-weight: 900;
    color: #000;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
    padding-bottom: 0;
    display: inline-block;
}

.print-event-header h2 {
    font-size: 12pt;
    font-weight: 700;
    color: #000;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: white;
    border: none;
    border-radius: 0;
    text-align: center;
    box-shadow: none;
}

.detail-item .label {
    font-weight: 400;
    color: #495057;
    font-size: 10pt;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item .value {
    font-weight: 400;
    color: #2c3e50;
    font-size: 12pt;
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

/* Print Table Styles */
.print-table-container {
    margin-top: 2rem;
    width: 100%;
}

.print-attendees-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border: 2px solid #2c3e50;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.print-attendees-table th {
    background: #2c3e50;
    color: white;
    padding: 0.75rem 0.5rem;
    font-weight: 700;
    font-size: 10pt;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #34495e;
    vertical-align: middle;
}

.print-attendees-table td {
    padding: 0.75rem 0.5rem;
    border: 1px solid #34495e;
    font-size: 12pt;
    text-align: center;
    vertical-align: middle;
    font-weight: 400;
}

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

.print-attendees-table tr:nth-child(odd) {
    background: white;
}

/* Print Footer Styles */
.print-footer {
    display: none;
    margin-top: 2rem;
    padding: 1rem;
    text-align: center;
    border-top: none;
    background: white;
    border-radius: 0;
}

.print-footer p {
    margin: 0;
    color: #495057;
    font-size: 10pt;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== ATTENDEE ID CARD PRINT STYLES ===== */

/* Import Inter font for ID cards */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Global font family for ID cards */
.id-card,
.id-card * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ID Card Container */
.id-card {
    width: 340px;
    height: 230px;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
}

.id-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    opacity: 0.3;
}

/* ID Card Header */
.id-header {
    background: #000000;
    color: #ffffff;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Ensure header icons are highly visible - HIGH PRIORITY */
.id-header i,
.id-header i.fa,
.id-header i.fas,
.id-header i.far,
.id-header i.fab {
    color: #ffffff !important;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.3) !important;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.5)) !important;
    /* Enhanced visibility for dark backgrounds */
    filter: brightness(1.3) contrast(1.2) !important;
    -webkit-filter: brightness(1.3) contrast(1.2) !important;
    /* Force white color override */
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* Ensure Font Awesome icons are properly displayed */
.id-header i,
.attendee-info i,
.company-badge i {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    /* Fallback for icon display */
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fallback icons if Font Awesome fails to load */
.id-header i.fa-id-card::before { content: "👤"; }
.attendee-info i.fa-calendar::before { content: "📅"; }
.attendee-info i.fa-map-marker-alt::before { content: "📍"; }
.company-badge i.fa-building::before { content: "🏢"; }

/* Force Font Awesome icons to be white in header */
.id-header i.fa-id-card::before,
.id-header i.fas::before,
.id-header i.fa::before {
    color: #ffffff !important;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8) !important;
}

/* Maximum specificity override for header icons */
body .id-card .id-header i.fa-id-card,
body .id-card .id-header i.fas.fa-id-card,
body .id-card .id-header i.fa.fa-id-card {
    color: #ffffff !important;
    filter: brightness(1.5) contrast(1.3) !important;
    -webkit-filter: brightness(1.5) contrast(1.3) !important;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8) !important;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.6)) !important;
}

/* Print mode icon styling - ensure black and white display */
@media print {
    .id-card i {
        color: #000000 !important;
        filter: grayscale(100%) !important;
        -webkit-filter: grayscale(100%) !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    /* Specific icon colors for print */
    .id-header i {
        color: #ffffff !important; /* White icons on black header */
    }
    
    .attendee-info i,
    .company-badge i,
    .attendee-id i {
        color: #000000 !important; /* Black icons on white background */
    }
}

/* Specific override for Participant ID icon - MAXIMUM PRIORITY */
.id-header i.fa-id-card,
.id-header i.fas.fa-id-card,
.id-header i.fa.fa-id-card {
    color: #ffffff !important;
    filter: brightness(1.5) contrast(1.3) !important;
    -webkit-filter: brightness(1.5) contrast(1.3) !important;
    /* Maximum visibility */
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8) !important;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.6)) !important;
    /* Force override any other styles */
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

.id-header h5 {
    margin: 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Status Badge */
.status-badge {
    background: #ffffff;
    color: #000000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ID Card Body */
.id-body {
    padding: 18px;
    display: flex;
    height: calc(100% - 40px);
}

.id-left {
    flex: 1;
    padding-right: 18px;
}

.id-right {
    width: 80px;
    text-align: center;
}

/* Attendee Information */
.attendee-name {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 10px;
    line-height: 1.2;
    text-align: left;
    text-shadow: none;
}

.event-name {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    text-shadow: none;
}

.attendee-info {
    font-size: 11px;
    color: #000000;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: left;
    text-shadow: none;
}

.attendee-info i {
    width: 12px;
    color: #000000;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

.attendee-id {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin: 16px 0 12px 0;
    text-align: left;
    background: #e0e0e0;
    padding: 10px;
    border-radius: 6px;
    border: 2px solid #000000;
    text-shadow: none;
}

.attendee-id i {
    color: #000000;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

.company-badge {
    display: block;
    background: #e0e0e0;
    color: #000000;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 12px;
    margin-bottom: 0;
    border: 2px solid #000000;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-shadow: none;
    width: fit-content;
}

.company-badge i {
    margin-right: 6px;
    color: #000000;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

/* QR Code Section */
.qr-code {
    margin-bottom: 10px;
}

.qr-code img {
    width: 65px;
    height: 65px;
    border: 2px solid #000000;
    border-radius: 4px;
}

.qr-label {
    font-size: 9px;
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-shadow: none;
}

.qr-data {
    font-size: 9px;
    color: #000000;
    font-weight: 600;
    margin-bottom: 4px;
    word-break: break-all;
    text-shadow: none;
}

/* Card Preview Container */
.card-preview {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 400px;
}

.card-preview h3 {
    color: #333333;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

/* Print Controls */
.print-controls {
    margin-bottom: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .id-card {
        width: 100%;
        max-width: 85.6mm;
        height: auto;
        min-height: 58mm;
    }
    
    .id-body {
        padding: 16px;
    }
    
    .attendee-name {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .event-name {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .attendee-info {
        font-size: 10px;
        margin-bottom: 2px;
    }
    
    .attendee-id {
        font-size: 14px;
        margin: 12px 0 8px 0;
        padding: 8px;
    }
    
    .company-badge {
        padding: 6px 10px;
        font-size: 10px;
        margin-top: 10px;
    }
    
    .qr-code img {
        width: 60px;
        height: 60px;
    }
}

/* QR Code Fallback Styles */
.qr-fallback {
    width: 65px;
    height: 65px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #666;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

.qr-fallback-code {
    font-size: 8px;
    font-weight: bold;
    color: #333;
}

.qr-fallback-error {
    font-size: 6px;
    color: #666;
}

/* Print Media Queries for ID Cards */
@media print {
    .no-print { 
        display: none !important; 
    }
    
    body { 
        margin: 0; 
        padding: 0; 
    }
    
    .id-card { 
        page-break-inside: avoid; 
        margin: 0; 
        box-shadow: none; 
        border: 1px solid #000000;
        background: #ffffff !important;
    }
    
    /* Ensure maximum contrast for print */
    .attendee-name,
    .event-name,
    .attendee-info,
    .attendee-id,
    .company-badge,
    .qr-label,
    .qr-data {
        color: #000000 !important;
        text-shadow: none !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .attendee-id {
        background: #e0e0e0 !important;
        border: 1px solid #000000 !important;
    }
    
    .company-badge {
        background: #e0e0e0 !important;
        border: 1px solid #000000 !important;
    }
    
    .qr-code img {
        border: 1px solid #000000 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .id-header {
        background: #000000 !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .status-badge {
        background: #ffffff !important;
        color: #000000 !important;
        border: 0.5px solid #000000 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    /* Ensure Font Awesome icons are properly displayed in print */
    .id-header i,
    .attendee-info i,
    .company-badge i,
    .attendee-id i {
        font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
        font-weight: 900 !important;
        font-style: normal !important;
        display: inline-block !important;
        width: auto !important;
        height: auto !important;
        line-height: 1 !important;
        vertical-align: middle !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
        /* Base icon styling for print */
        filter: grayscale(100%) !important;
        -webkit-filter: grayscale(100%) !important;
    }
    
    /* Specific icon colors for print mode */
    .id-header i {
        color: #ffffff !important; /* White icons on black header */
    }
    
    .attendee-info i,
    .company-badge i,
    .attendee-id i {
        color: #000000 !important; /* Black icons on white background */
    }
    
    /* Ensure all icons are properly visible in print */
    .id-card i {
        text-shadow: none !important;
        -webkit-text-stroke: 0 !important;
        stroke: none !important;
    }
}

