﻿/* Event Banner Styling */
        .event-banner {
            height: 400px;
            background-color: #f8f9fa;
            background-size: cover;
            background-position: center;
            border-radius: 16px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
            margin-bottom: 2rem;
        }

            .event-banner::after {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
                border-radius: 16px;
            }

        .event-info {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 2rem;
            color: white;
            z-index: 1;
        }

            .event-info h1 {
                font-size: 2.5rem;
                font-weight: 700;
                margin-bottom: 1rem;
                text-shadow: 0 2px 4px rgba(0,0,0,0.2);
            }

        .event-meta {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        .event-meta-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1rem;
            font-weight: 500;
        }

        /* Registration Form Styling */
        .registration-card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
            overflow: hidden;
            margin-bottom: 2rem;
        }

        .registration-header {
            background: linear-gradient(135deg, rgba(0, 139, 155, 0.1) 0%, rgba(0, 139, 155, 0.05) 100%);
            padding: 2rem;
            border-bottom: 1px solid rgba(0, 139, 155, 0.1);
            text-align: center;
        }

            .registration-header h4 {
                color: var(--primary-color);
                font-weight: 600;
                margin-bottom: 0.5rem;
            }

        .registration-body {
            padding: 2rem;
        }

        /* Form Controls */
        .form-label {
            font-weight: 500;
            color: #2d3748;
            margin-bottom: 0.5rem;
            font-size: 0.9375rem;
        }

        .form-control, .form-select {
            padding: 0.75rem 1rem;
            border-radius: 12px;
            border: 2px solid #e2e8f0;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

            .form-control:focus, .form-select:focus {
                border-color: var(--primary-color);
                box-shadow: 0 0 0 3px rgba(0, 139, 155, 0.1);
            }

        /* Registered Athletes List */
        .registered-athletes {
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid #e2e8f0;
        }

        .athletes-scroll {
            max-height: 360px;
            overflow-y: auto;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
        }

        .athlete-card {
            background: #fff;
            padding: 0.5rem 0.75rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #f1f5f9;
            transition: background 0.15s;
        }

            .athlete-card:last-child { border-bottom: none; }

            .athlete-card:hover {
                background: #f8fafc;
            }

        .athlete-info {
            display: flex;
            gap: 0.625rem;
            align-items: center;
            min-width: 0;
        }

        .athlete-avatar {
            width: 32px;
            height: 32px;
            min-width: 32px;
            background: var(--primary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 0.75rem;
        }

        .athlete-details {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
            min-width: 0;
        }

        .athlete-details h6 {
            margin: 0;
            color: #1a202c;
            font-weight: 600;
            font-size: 0.875rem;
            white-space: nowrap;
        }

        .athlete-details .athlete-meta {
            display: flex;
            align-items: center;
            gap: 0.625rem;
            font-size: 0.75rem;
            color: #64748b;
        }

        .athlete-details .athlete-meta span { white-space: nowrap; }

        .remove-athlete {
            color: #dc2626;
            background: none;
            border: none;
            padding: 0.35rem;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.8rem;
            transition: background 0.15s;
        }

            .remove-athlete:hover {
                background: rgba(220, 38, 38, 0.1);
            }

        /* Buttons */
        .btn {
            padding: 0.75rem 1.5rem;
            border-radius: 12px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .btn-primary {
            background: var(--primary-color);
            border: none;
        }

            .btn-primary:hover {
                background: var(--dark-teal);
                transform: translateY(-1px);
                box-shadow: 0 4px 12px rgba(0, 139, 155, 0.2);
            }

        /* Responsive Design */
        @media (max-width: 768px) {
            .event-banner {
                height: 300px;
            }

            .event-info h1 {
                font-size: 2rem;
            }

            .event-meta {
                gap: 1rem;
            }

            .registration-header,
            .registration-body {
                padding: 1.5rem;
            }
        }

        @media (max-width: 576px) {
            .event-banner {
                height: 250px;
                border-radius: 12px;
            }

            .event-info {
                padding: 1.5rem;
            }

                .event-info h1 {
                    font-size: 1.75rem;
                }

            .event-meta {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.75rem;
            }

            .registration-header,
            .registration-body {
                padding: 1.25rem;
            }

            .athlete-card {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }

            .athlete-info {
                width: 100%;
            }

            .remove-athlete {
                width: 100%;
                background: rgba(220, 38, 38, 0.1);
                padding: 0.5rem;
            }
        }

        /* Form Container Styling */
        .registration-container {
            background: white;
            border-radius: 16px;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
            padding: 2rem;
            border: 1px solid rgba(0, 139, 155, 0.1);
        }

        .registration-header {
            text-align: center;
            margin-bottom: 2rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid rgba(0, 139, 155, 0.1);
        }

            .registration-header h2 {
                color: var(--primary-color);
                font-weight: 600;
                margin-bottom: 0.5rem;
            }

            .registration-header p {
                color: #64748b;
                margin-bottom: 0;
            }

        /* Form Controls */
        .form-label {
            font-weight: 500;
            color: #334155;
            margin-bottom: 0.5rem;
        }

        .form-control, .form-select {
            padding: 0.875rem 1rem;
            border-radius: 12px;
            border: 2px solid #e2e8f0;
            background-color: #f8fafc;
            transition: all 0.3s ease;
        }

            .form-control:focus, .form-select:focus {
                border-color: var(--primary-color);
                background-color: white;
                box-shadow: 0 0 0 4px rgba(0, 139, 155, 0.1);
            }

            .form-control::placeholder {
                color: #94a3b8;
            }

        /* Register Button */
        .btn-register {
            background-color: var(--primary-color);
            color: white;
            padding: 1rem 2rem;
            border-radius: 12px;
            font-weight: 500;
            width: 100%;
            border: none;
            margin-top: 1rem;
            transition: all 0.3s ease;
        }

            .btn-register:hover {
                background-color: var(--dark-teal);
                transform: translateY(-1px);
                box-shadow: 0 4px 12px rgba(0, 139, 155, 0.2);
            }

            .btn-register:active {
                transform: translateY(0);
                box-shadow: none;
            }

        /* Form Groups */
        .form-group {
            margin-bottom: 1.5rem;
        }

        /* Media Queries */
        @media (max-width: 768px) {
            .registration-container {
                padding: 1.5rem;
            }

            .registration-header {
                margin-bottom: 1.5rem;
                padding-bottom: 1rem;
            }

            .btn-register {
                padding: 0.875rem 1.5rem;
            }
        }

        /* Additional Styles for Button Hover State */
        .btn-primary:hover {
            background-color: #006d7a !important;
            border-color: #006d7a !important;
        }

        /* Container Styles */
        .registration-container {
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        /* Form Control Styles */
        .form-control, .form-select {
            padding: 0.75rem 1rem;
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        /* Custom styles for the SweetAlert popup */
        .swal-athlete-popup {
            padding: 1.5rem;
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            background: #f9fafb;
            color: #333;
            font-family: 'Inter', sans-serif;
        }

        .swal-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: #333;
        }

        .swal-confirm-btn, .swal-cancel-btn {
            font-size: 1rem;
            font-weight: 500;
            border-radius: 12px;
            padding: 0.75rem 1.5rem;
            transition: all 0.3s ease;
        }

        .swal-confirm-btn {
            background-color: #28a745 !important;
            color: white !important;
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
        }

            .swal-confirm-btn:hover {
                background-color: #218838 !important;
                box-shadow: 0 6px 18px rgba(33, 136, 56, 0.3);
            }

        .swal-cancel-btn {
            background-color: #007bff !important;
            color: white !important;
            box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
        }

            .swal-cancel-btn:hover {
                background-color: #0056b3 !important;
                box-shadow: 0 6px 18px rgba(0, 86, 179, 0.3);
            }

        /* Athlete Summary */
        .athlete-summary {
            max-height: 250px;
            overflow-y: auto;
            padding: 0.5rem;
            background: #ffffff;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .athlete-summary-item {
            border-bottom: 1px solid #e2e8f0;
            padding-bottom: 0.5rem;
            margin-bottom: 0.5rem;
        }

            .athlete-summary-item:last-child {
                border-bottom: none;
                margin-bottom: 0;
            }

        .athlete-avatar {
            width: 40px;
            height: 40px;
            background: #007bff;
            color: white;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            font-size: 1.25rem;
            text-transform: uppercase;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        }

        /* CSV Upload Section */
        .csv-divider {
            display: flex;
            align-items: center;
            margin: 2rem 0;
            gap: 1rem;
        }
        .csv-divider::before, .csv-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: #e2e8f0;
        }
        .csv-divider span {
            color: #94a3b8;
            font-weight: 500;
            font-size: 0.875rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .csv-upload-zone {
            border: 2px dashed #cbd5e1;
            border-radius: 12px;
            padding: 2rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #f8fafc;
        }
        .csv-upload-zone:hover, .csv-upload-zone.drag-over {
            border-color: #008B9B;
            background: rgba(0, 139, 155, 0.05);
        }
        .csv-upload-zone i {
            font-size: 2.5rem;
            color: #94a3b8;
            margin-bottom: 0.75rem;
        }
        .csv-upload-zone:hover i, .csv-upload-zone.drag-over i {
            color: #008B9B;
        }
        .csv-format-help {
            background: #f1f5f9;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            padding: 1rem 1.25rem;
            margin-top: 1rem;
            text-align: left;
            font-size: 0.8125rem;
            color: #475569;
        }
        .csv-format-help strong { color: #334155; }
        .csv-format-help code {
            background: #e2e8f0;
            padding: 1px 5px;
            border-radius: 4px;
            font-size: 0.75rem;
            color: #0f172a;
        }
        .csv-format-help ul {
            margin: 0.25rem 0 0 1.25rem;
            padding: 0;
        }
        .csv-format-help ul li { margin-bottom: 2px; }
        .csv-download-link {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            color: #008B9B;
            font-weight: 500;
            text-decoration: none;
            font-size: 0.8125rem;
            cursor: pointer;
        }
        .csv-download-link:hover { text-decoration: underline; }
        .csv-preview-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid #e2e8f0;
            font-size: 0.875rem;
        }
        .csv-preview-table th {
            background: #f1f5f9;
            padding: 0.625rem 0.75rem;
            font-weight: 600;
            color: #334155;
            text-align: left;
            border-bottom: 2px solid #e2e8f0;
        }
        .csv-preview-table td {
            padding: 0.5rem 0.75rem;
            border-bottom: 1px solid #f1f5f9;
            vertical-align: middle;
        }
        .csv-preview-table tr:last-child td { border-bottom: none; }
        .csv-preview-table tr:hover td { background: #f8fafc; }
        .csv-badge-valid {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: #dcfce7;
            color: #166534;
            padding: 2px 8px;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 500;
        }
        .csv-badge-invalid {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: #fee2e2;
            color: #991b1b;
            padding: 2px 8px;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 500;
        }
        .csv-badge-warn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: #fef3c7;
            color: #92400e;
            padding: 2px 8px;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 500;
        }
        .csv-summary {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            margin-bottom: 1rem;
        }
        .csv-summary-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.875rem;
            font-weight: 500;
        }
        .csv-summary-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }
