/* ================================================
   EVENT PESERTA PAGE
   ================================================ */

.dashboard-header-event-peserta {
    background:
        linear-gradient(135deg, rgba(10, 22, 40, 0.36) 0%, rgba(15, 39, 68, 0.24) 55%, rgba(10, 22, 40, 0.42) 100%),
        url("../images/Jembatan Barelang.png"),
        linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 45%, var(--blue-primary) 100%);
    background-size: cover, 106%, cover;
    background-position: center, 28% 54%, center;
    background-repeat: no-repeat;
    padding: 52px 50px 68px;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.dashboard-header-event-peserta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 34%),
        linear-gradient(180deg, rgba(10, 22, 40, 0.2) 0%, rgba(10, 22, 40, 0.35) 100%);
    pointer-events: none;
}

.dashboard-header-event-peserta .dashboard-header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.dashboard-header-event-peserta h1 {
    margin: 0;
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 8px 20px rgba(10, 22, 40, 0.45);
}

.dashboard-header-event-peserta .header-subtitle {
    margin-top: 12px;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 1.7;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-back-event {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    background: rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.btn-back-event:hover {
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
}

.event-meta-row {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.event-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    font-weight: 600;
}

.dashboard-body {
    padding: 0 50px 48px;
}

.participants-top-card {
    margin-top: -28px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(15, 39, 68, 0.14);
    padding: 24px 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    position: relative;
    z-index: 2;
}

.participants-top-copy h2 {
    margin: 0;
    color: #243b53;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.18;
}

.participants-top-copy p {
    margin: 10px 0 0;
    color: #334155;
    font-size: 14px;
}

.notice-chip {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 600;
}

.notice-chip-warning {
    background: #fff7ed;
    color: #9a3412;
}

.notice-chip-success {
    background: #ecfdf3;
    color: #166534;
}

.participants-search-form {
    min-width: min(100%, 520px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-label {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-row input {
    flex: 1;
    min-width: 220px;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    font-size: 14px;
    color: #0f172a;
}

.search-row input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.search-row button,
.btn-reset-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.search-row button {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #102a43;
}

.btn-reset-search {
    background: #fff;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.btn-reset-search:hover {
    color: #0f172a;
    border-color: #94a3b8;
}

.category-grid-wrapper {
    margin-top: 24px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.category-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 24px rgba(15, 39, 68, 0.09);
    padding: 0;
    overflow: hidden;
}

.category-card-head {
    padding: 16px 18px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.category-card-head h3 {
    margin: 0;
    color: #1e293b;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e0e7ff;
    color: #1e3a8a;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
}

.category-subtitle {
    padding: 0 18px 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.category-table-wrap {
    border-top: 1px solid #e2e8f0;
}

.category-table {
    width: 100%;
    border-collapse: collapse;
}

.category-table thead tr {
    background: #020617;
}

.category-table th {
    color: #fff;
    padding: 12px 14px;
    font-size: 12px;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.category-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    font-size: 13px;
    color: #1e293b;
}

.category-table tbody tr:last-child td {
    border-bottom: none;
}

.empty-team-row {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    padding: 18px 12px;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-logo-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.team-name {
    color: #0f172a;
    font-weight: 600;
    letter-spacing: 0.1px;
}

.team-action-cell {
    text-align: center;
}

.team-detail-link {
    color: #475569;
    text-decoration: none;
    font-size: 14px;
}

.team-detail-link:hover {
    color: #1d4ed8;
}

.empty-state {
    text-align: center;
    padding: 56px 24px;
}

.empty-state i {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 14px;
}

.empty-state h4 {
    margin: 0;
    color: #334155;
    font-size: 20px;
}

.empty-state p {
    margin: 10px 0 22px;
    color: #64748b;
    font-size: 14px;
}

.btn-back-event-inline {
    color: #0f172a;
    background: #f8fafc;
    border-color: #cbd5e1;
}

.dashboard-footer {
    text-align: center;
    padding: 32px 50px;
    color: var(--gray-500);
    font-size: 13px;
    border-top: 1px solid var(--gray-100);
    margin-top: 24px;
    background: transparent;
}

.dashboard-footer p {
    margin: 6px 0;
}

.dashboard-footer a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .dashboard-header-event-peserta {
        padding: 48px 30px 64px;
    }

    .dashboard-body {
        padding: 0 30px 40px;
    }
}

@media (max-width: 992px) {
    .dashboard-header-event-peserta {
        padding: 40px 16px 56px;
        background-size: cover, 150%, cover;
        background-position: center, 34% 62%, center;
    }

    .dashboard-header-event-peserta .dashboard-header-inner {
        flex-direction: column;
    }

    .participants-top-card {
        margin-top: -16px;
        border-radius: 16px;
        padding: 18px;
    }

    .dashboard-body {
        padding: 0 16px 30px;
    }

    .dashboard-footer {
        padding: 24px 16px;
    }
}

@media (max-width: 768px) {
    .participants-top-copy h2 {
        font-size: 36px;
    }

    .participants-search-form {
        min-width: 100%;
    }

    .search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .search-row input,
    .search-row button,
    .btn-reset-search {
        width: 100%;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card-head h3 {
        font-size: 24px;
    }
}
