/* CGS Event Portal - Main Styles */

:root {
    --primary: #FF6900;
    --primary-dark: #e05e00;
    --secondary: #2fbeef;
    --accent: #f3dd60;
    --dark: #1a1a2e;
    --light-bg: #f8f9fa;
}

/* Override Bootstrap primary */
.bg-primary { background-color: var(--primary) !important; }
.btn-primary { background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); }
.text-primary { color: var(--primary) !important; }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background-color: var(--primary); border-color: var(--primary); }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--dark) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* Section Styles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto 30px;
    border-radius: 2px;
}

/* Schedule Cards */
.schedule-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

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

.schedule-card .card-header {
    background: var(--primary);
    color: white;
    font-weight: 600;
    padding: 12px 20px;
}

.schedule-card .badge-type {
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* Registration Form */
.registration-form {
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 40px;
}

.registration-form .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
}

.registration-form .form-control,
.registration-form .form-select {
    border-radius: 8px;
    padding: 10px 14px;
    border: 1.5px solid #dee2e6;
}

.registration-form .form-control:focus,
.registration-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(255,105,0,0.15);
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    margin: 24px 0 16px;
}

/* Payment Success */
.success-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 40px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
}

.qr-code-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Stats Cards */
.stat-card {
    border: none;
    border-radius: 12px;
    padding: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-card .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card.bg-orange { background: linear-gradient(135deg, #FF6900, #ff8533); }
.stat-card.bg-blue { background: linear-gradient(135deg, #2fbeef, #1a9fd4); }
.stat-card.bg-green { background: linear-gradient(135deg, #28a745, #20c997); }
.stat-card.bg-purple { background: linear-gradient(135deg, #6f42c1, #9b59b6); }
.stat-card.bg-red { background: linear-gradient(135deg, #dc3545, #e74c3c); }

/* About Section */
.about-section {
    background: var(--light-bg);
    padding: 60px 0;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,105,0,0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* Check-in Scanner */
.scanner-container {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.checkin-result {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-top: 20px;
}

.checkin-result.success { border-left: 4px solid #28a745; }
.checkin-result.warning { border-left: 4px solid #ffc107; }
.checkin-result.error { border-left: 4px solid #dc3545; }

/* Navbar brand */
.navbar-brand span {
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .registration-form {
        padding: 24px;
    }
}

/* Print QR code */
@media print {
    .no-print { display: none !important; }
    .qr-code-container { box-shadow: none; border: 1px solid #ccc; }
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Table styles */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: var(--light-bg);
    border-bottom: 2px solid var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge styles */
.badge-paid { background: #28a745; }
.badge-pending { background: #ffc107; color: #333; }
.badge-failed { background: #dc3545; }
.badge-confirmed { background: #28a745; }
.badge-cancelled { background: #6c757d; }

/* Event Cards (Homepage) */
.event-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

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

.event-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.event-year-badge {
    background: var(--accent);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.event-hero-icon {
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.8);
    margin: 0 auto;
}

/* Day Selection Checkboxes */
.day-selection-item {
    transition: background 0.15s, border-color 0.15s;
    cursor: pointer;
}

.day-selection-item:hover {
    background: #f8f9fa;
    border-color: var(--primary) !important;
}

.day-selection-item .form-check-input:checked ~ .form-check-label {
    font-weight: 500;
}

.day-selection-item .form-check-input {
    margin-top: 0.5em;
}
