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

        :root {
            --primary: #667eea;
            --primary-dark: #5568d3;
            --secondary: #764ba2;
            --success: #10b981;
            --danger: #ef4444;
            --warning: #f59e0b;
            --info: #3b82f6;
            --dark: #1e293b;
            --light: #f8fafc;
            --border: #e2e8f0;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 0;
        }

        .container {
            max-width: 1600px;
            margin: 20px auto;
            background: white;
            border-radius: 30px;
            box-shadow: 0 25px 80px rgba(0,0,0,0.3);
            overflow: hidden;
        }

        .header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 40px;
            text-align: center;
            position: relative;
        }

        .header h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .header p {
            font-size: 1.1em;
            opacity: 0.95;
        }

        .section-badge {
            display: inline-block;
            padding: 8px 20px;
            background: rgba(255,255,255,0.2);
            border-radius: 20px;
            margin-top: 10px;
            font-weight: 600;
        }

        .nav-tabs {
            display: flex;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-bottom: none;
            overflow-x: auto;
            position: sticky;
            top: 0;
            z-index: 100;
            scrollbar-width: thin;
            scrollbar-color: rgba(255,255,255,0.5) transparent;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            padding: 8px 20px;
            gap: 8px;
        }

        .nav-tabs::-webkit-scrollbar {
            height: 8px;
        }

        .nav-tabs::-webkit-scrollbar-track {
            background: transparent;
        }

        .nav-tabs::-webkit-scrollbar-thumb {
            background: rgba(255,255,255,0.3);
            border-radius: 4px;
        }

        .nav-tabs::-webkit-scrollbar-thumb:hover {
            background: rgba(255,255,255,0.5);
        }

        .nav-tab {
            padding: 14px 24px;
            background: rgba(255,255,255,0.15);
            border: 2px solid transparent;
            border-radius: 12px;
            cursor: pointer;
            font-size: 15px;
            font-weight: 600;
            color: rgba(255,255,255,0.85);
            transition: all 0.3s ease;
            white-space: nowrap;
            flex-shrink: 0;
            backdrop-filter: blur(10px);
            position: relative;
        }

        .nav-tab:hover {
            background: rgba(255,255,255,0.25);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

        .nav-tab.active {
            background: white;
            color: var(--primary);
            border-color: white;
            box-shadow: 0 6px 20px rgba(0,0,0,0.2);
            transform: translateY(-2px);
        }

        .nav-tab.active::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-top: 8px solid white;
        }

        .tab-content {
            display: none;
            padding: 40px;
            animation: fadeIn 0.3s;
        }

        .tab-content.active {
            display: block;
        }

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

        .card {
            background: white;
            border: 2px solid var(--border);
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        }

        .card h2 {
            color: var(--dark);
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 3px solid var(--border);
            font-size: 1.8em;
            position: relative;
        }

        .card h2::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            width: 80px;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
        }

        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-bottom: 25px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
        }

        .form-group label {
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--dark);
            font-size: 15px;
        }

        .form-group input,
        .form-group select {
            padding: 14px 18px;
            border: 2px solid var(--border);
            border-radius: 12px;
            font-size: 15px;
            font-family: 'Poppins', sans-serif;
            transition: all 0.3s;
        }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
        }

        .radio-group {
            display: flex;
            gap: 20px;
            margin-top: 10px;
        }

        .radio-option {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }

        .radio-option input[type="radio"] {
            width: 20px;
            height: 20px;
            cursor: pointer;
        }

        .btn {
            padding: 14px 32px;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            font-family: 'Poppins', sans-serif;
        }

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

        .btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; }
        .btn-success { background: linear-gradient(135deg, #10b981, #059669); color: white; }
        .btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
        .btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
        .btn-secondary { background: linear-gradient(135deg, #6b7280, #4b5563); color: white; }
        .btn-info { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }

        .section-selector {
            display: flex;
            gap: 20px;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 30px;
        }

        .section-card {
            flex: 1;
            min-width: 300px;
            max-width: 500px;
            padding: 40px;
            border: 3px solid var(--border);
            border-radius: 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            background: white;
        }

        .section-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        }

        .section-card.selected {
            border-color: var(--primary);
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
        }

        .section-card h3 {
            font-size: 2.5em;
            margin-bottom: 10px;
            color: var(--primary);
        }

        .section-card p {
            font-size: 1.1em;
            color: var(--dark);
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
            margin-bottom: 35px;
        }

        .stat-card {
            background: linear-gradient(135deg, #f8fafc, #e2e8f0);
            padding: 30px;
            border-radius: 20px;
            border: 2px solid var(--border);
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        }

        .stat-card h3 {
            font-size: 0.95em;
            color: #64748b;
            margin-bottom: 12px;
            font-weight: 600;
        }

        .stat-card .value {
            font-size: 3em;
            font-weight: 700;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
            background: white;
            border-radius: 12px;
            overflow: hidden;
        }

        thead {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
        }

        th, td {
            padding: 18px;
            text-align: left;
            border-bottom: 1px solid var(--border);
        }

        th {
            font-weight: 600;
            font-size: 15px;
        }

        tbody tr:hover {
            background: rgba(102, 126, 234, 0.05);
        }

        .badge {
            display: inline-block;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
        }

        .alert {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 18px 28px;
            border-radius: 12px;
            color: white;
            font-weight: 600;
            z-index: 1000;
            animation: slideIn 0.3s;
            box-shadow: 0 8px 25px rgba(0,0,0,0.2);
        }

        .alert-success { background: linear-gradient(135deg, var(--success), #059669); }
        .alert-danger { background: linear-gradient(135deg, var(--danger), #dc2626); }
        .alert-warning { background: linear-gradient(135deg, #ff9800, #f57c00); color: white; }
        .alert-info { background: linear-gradient(135deg, var(--info), #2563eb); }

        @keyframes slideIn {
            from { transform: translateX(400px); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        .search-box {
            padding: 14px 18px;
            border: 2px solid var(--border);
            border-radius: 12px;
            font-size: 15px;
            width: 100%;
            max-width: 400px;
            margin-bottom: 25px;
            font-family: 'Poppins', sans-serif;
        }

        .search-box:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
        }

        .event-limit-warning {
            background: #fef3c7;
            border: 2px solid #f59e0b;
            color: #92400e;
            padding: 15px;
            border-radius: 12px;
            margin: 15px 0;
            font-weight: 600;
        }

        .gender-badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            margin-left: 8px;
        }

        .gender-male {
            background: #dbeafe;
            color: #1e40af;
        }

        .gender-female {
            background: #fce7f3;
            color: #9f1239;
        }

        .tab-navigation {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 30px;
            padding-top: 30px;
            border-top: 2px solid var(--border);
            gap: 15px;
            flex-wrap: wrap;
        }

        .tab-navigation .nav-buttons {
            display: flex;
            gap: 15px;
        }

        .tab-navigation .data-buttons {
            display: flex;
            gap: 15px;
        }

        .event-card {
            border: 2px solid var(--border);
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.3s;
            background: white;
        }

        .event-card:hover {
            border-color: var(--primary);
            background: rgba(102, 126, 234, 0.05);
            transform: translateX(5px);
        }

        .event-card.selected {
            border-color: var(--primary);
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .event-card.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            background: #f1f5f9;
        }

        .event-card.disabled:hover {
            border-color: var(--border);
            background: #f1f5f9;
            transform: none;
        }

        .selected-event-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 15px;
            background: white;
            border-radius: 8px;
            margin-bottom: 8px;
            border: 1px solid #16a34a;
        }

        .selected-event-info {
            flex: 1;
        }

        .selected-event-name {
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 4px;
        }

        .selected-event-details {
            font-size: 13px;
            color: #64748b;
        }

        .chest-number {
            font-weight: 700;
            color: var(--primary);
            font-size: 18px;
            padding: 8px 15px;
            background: #f0f9ff;
            border-radius: 8px;
            margin: 0 10px;
        }

        .remove-event-btn {
            background: #ef4444;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
        }

        .remove-event-btn:hover {
            background: #dc2626;
            transform: scale(1.05);
        }

        .event-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .event-code {
            font-weight: 700;
            color: var(--primary);
            font-size: 14px;
        }

        .event-name {
            font-weight: 600;
            font-size: 16px;
            color: var(--dark);
            margin-bottom: 8px;
        }

        .event-meta {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .event-badge-small {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
        }

        .events-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 15px;
            max-height: 500px;
            overflow-y: auto;
            padding: 10px;
            background: #f8fafc;
            border-radius: 12px;
        }

        .no-events-message {
            text-align: center;
            padding: 60px 20px;
            color: #64748b;
            font-size: 16px;
        }

        .event-search-container {
            position: relative;
            margin-bottom: 15px;
        }

        .event-search-container input {
            padding-left: 45px;
        }

        .event-search-container::before {
            content: '🎵';
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 18px;
        }

        @media (max-width: 768px) {
            .nav-tabs {
                padding: 6px 10px;
                gap: 6px;
            }
            .nav-tab {
                padding: 12px 18px;
                font-size: 14px;
            }
            .tab-navigation {
                flex-direction: column;
            }
            .tab-navigation .nav-buttons,
            .tab-navigation .data-buttons {
                width: 100%;
                justify-content: center;
            }
            .events-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Group Events Styles */
        .group-card {
            background: white;
            border: 2px solid var(--border);
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 20px;
            transition: all 0.3s;
        }

        .group-card:hover {
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        .group-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--border);
        }

        .group-title {
            font-size: 1.3em;
            font-weight: 600;
            color: var(--dark);
        }

        .group-event-type {
            font-size: 0.9em;
            color: #64748b;
            margin-top: 5px;
        }

        .group-members {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 15px;
        }

        .member-tag {
            background: linear-gradient(135deg, #e0e7ff, #dbeafe);
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 13px;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .member-tag .remove-member {
            cursor: pointer;
            color: var(--danger);
            font-weight: bold;
        }

        .member-tag .remove-member:hover {
            opacity: 0.7;
        }

        .add-member-section {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px dashed var(--border);
        }

        .participant-limit-info {
            background: #fef3c7;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 15px;
            font-size: 14px;
            color: #92400e;
        }

        .validation-message {
            background: #fee2e2;
            color: #991b1b;
            padding: 10px 15px;
            border-radius: 8px;
            margin-top: 10px;
            font-size: 14px;
        }

        .success-message {
            background: #d1fae5;
            color: #065f46;
            padding: 10px 15px;
            border-radius: 8px;
            margin-top: 10px;
            font-size: 14px;
        }

        .group-stats {
            display: flex;
            gap: 15px;
            margin-top: 10px;
        }

        .group-stat {
            font-size: 13px;
            color: #64748b;
        }

        /* Event Scheduler Styles */
        .stage-card {
            background: white;
            border: 2px solid var(--border);
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .stage-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--border);
        }

        .stage-info {
            flex: 1;
        }

        .stage-name {
            font-size: 1.3em;
            font-weight: 600;
            color: var(--dark);
        }

        .stage-manager {
            font-size: 0.9em;
            color: #64748b;
            margin-top: 5px;
        }

        .event-type-selector {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
        }

        .event-type-card {
            flex: 1;
            padding: 20px;
            border: 2px solid var(--border);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
        }

        .event-type-card:hover {
            border-color: var(--primary);
            background: rgba(102, 126, 234, 0.05);
        }

        .event-type-card.selected {
            border-color: var(--primary);
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
        }

        .schedule-section {
            margin-top: 30px;
            padding: 20px;
            background: #f8fafc;
            border-radius: 12px;
        }

        .event-assignment {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px;
            background: white;
            border: 1px solid var(--border);
            border-radius: 8px;
            margin-bottom: 10px;
        }

        .time-slot {
            font-weight: 600;
            color: var(--primary);
            min-width: 120px;
        }

        .assigned-event {
            flex: 1;
        }

        /* Developer Section Styles */
        .developer-section {
            background: linear-gradient(135deg, #f8fafc, #e2e8f0);
            padding: 30px;
            text-align: center;
            border-top: 3px solid var(--border);
            margin-top: 40px;
        }

        .developer-content {
            max-width: 600px;
            margin: 0 auto;
        }

        .developer-image {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 5px solid white;
            box-shadow: 0 8px 30px rgba(0,0,0,0.2);
            margin-bottom: 20px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
        }

        .developer-name {
            font-size: 1.8em;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 8px;
        }

        .developer-title {
            font-size: 1.1em;
            color: #64748b;
            margin-bottom: 15px;
            font-weight: 500;
        }

        .developer-info {
            color: #64748b;
            font-size: 0.95em;
            line-height: 1.6;
        }