/* =========================================================
   PARTICIPANT DETAIL
   ========================================================= */

.participant-detail-page {
    width: 100%;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.participant-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 18px;

    font-size: 13px;
    color: #8a94a6;
}

.participant-detail-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 650;
}

.participant-detail-breadcrumb a:hover {
    text-decoration: underline;
}


/* =========================================================
   HERO
   ========================================================= */

.participant-detail-hero {
    min-height: 145px;

    padding: 26px 30px;

    box-sizing: border-box;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #071a38,
            #0b2855,
            #123c76
        );

    color: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    box-shadow:
        0 12px 30px rgba(7, 26, 56, .16);

    margin-bottom: 20px;
}

.participant-detail-hero-left {
    display: flex;
    align-items: center;
    gap: 17px;
}

.participant-detail-avatar {
    width: 58px;
    height: 58px;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.12);

    border: 1px solid rgba(255,255,255,.16);

    color: white;

    font-size: 23px;
    font-weight: 800;
}

.participant-detail-eyebrow {
    color: #72a8ff;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.2px;

    margin-bottom: 5px;
}

.participant-detail-hero h1 {
    margin: 0;

    font-size: 25px;
    font-weight: 750;
}

.participant-detail-hero p {
    margin: 5px 0 0;

    color: rgba(255,255,255,.7);

    font-size: 13px;
}

.participant-detail-hero-right {
    min-width: 130px;

    padding: 13px 16px;

    border-radius: 11px;

    background: rgba(255,255,255,.08);

    border: 1px solid rgba(255,255,255,.1);
}

.participant-detail-status-label {
    display: block;

    color: rgba(255,255,255,.52);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .8px;

    margin-bottom: 6px;
}

.participant-detail-status {
    display: inline-flex;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 700;
}

.status-belum {
    background: #fff7ed;
    color: #c2410c;
}

.status-proses {
    background: #eff6ff;
    color: #1d4ed8;
}

.status-selesai {
    background: #ecfdf5;
    color: #047857;
}


/* =========================================================
   GRID
   ========================================================= */

.participant-detail-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 18px;
}


/* =========================================================
   CARD
   ========================================================= */

.participant-detail-card {
    background: #fff;

    border: 1px solid #e5eaf1;

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 5px 18px rgba(15,23,42,.045);
}

.participant-detail-card-header {
    padding: 20px 22px;

    border-bottom: 1px solid #edf0f4;
}

.participant-detail-card-header span {
    display: block;

    color: #2563eb;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;

    margin-bottom: 5px;
}

.participant-detail-card-header h2 {
    margin: 0;

    color: #172033;

    font-size: 17px;
}


/* =========================================================
   INFO
   ========================================================= */

.participant-detail-info-list {
    padding: 7px 22px 12px;
}

.participant-detail-info-row {
    display: flex;

    align-items: center;

    gap: 13px;

    padding: 14px 0;

    border-bottom: 1px solid #f0f2f6;
}

.participant-detail-info-row:last-child {
    border-bottom: 0;
}

.participant-detail-info-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;
}

.participant-detail-info-row span {
    display: block;

    color: #8a94a6;

    font-size: 10px;

    margin-bottom: 4px;
}

.participant-detail-info-row strong {
    display: block;

    color: #273348;

    font-size: 13px;

    line-height: 1.4;

    word-break: break-word;
}

.participant-code {
    color: #2563eb !important;

    letter-spacing: 1px;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.participant-detail-timeline {
    padding: 18px 22px 20px;
}

.participant-detail-timeline-item {
    position: relative;

    display: flex;

    gap: 13px;

    padding-bottom: 22px;
}

.participant-detail-timeline-item:last-child {
    padding-bottom: 0;
}

.participant-detail-timeline-item:not(:last-child)::after {
    content: "";

    position: absolute;

    left: 11px;
    top: 25px;

    width: 1px;
    height: calc(100% - 4px);

    background: #e3e8ef;
}

.timeline-dot {
    position: relative;

    z-index: 1;

    width: 23px;
    height: 23px;

    flex: 0 0 23px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 10px;
    font-weight: 800;
}

.timeline-done {
    background: #dcfce7;
    color: #16a34a;
}

.timeline-pending {
    background: #f1f5f9;
    color: #94a3b8;
}

.participant-detail-timeline-item strong {
    display: block;

    color: #334155;

    font-size: 12px;

    margin-bottom: 4px;
}

.participant-detail-timeline-item span {
    color: #8b95a5;

    font-size: 11px;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.participant-detail-summary {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 10px;

    padding: 20px 22px;
}

.participant-summary-box {
    padding: 14px;

    border-radius: 10px;

    background: #f8fafc;

    border: 1px solid #edf0f4;
}

.participant-summary-box span {
    display: block;

    color: #8a94a6;

    font-size: 10px;

    margin-bottom: 5px;
}

.participant-summary-box strong {
    color: #334155;

    font-size: 12px;

    line-height: 1.5;
}


/* =========================================================
   ACTION
   ========================================================= */

.participant-detail-actions {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 20px;

    padding: 17px 0;
}

.participant-detail-actions-right {
    display: flex;

    align-items: center;

    gap: 9px;
}

.participant-detail-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 0 16px;

    border-radius: 8px;

    font-size: 12px;

    font-weight: 700;

    font-family: inherit;

    text-decoration: none;

    border: 1px solid transparent;

    cursor: pointer;

    box-sizing: border-box;
}

.participant-detail-btn-secondary {
    background: #fff;

    border-color: #d8dee8;

    color: #475569;
}

.participant-detail-btn-secondary:hover {
    background: #f8fafc;
}

.participant-detail-btn-primary {
    background: #2563eb;

    border-color: #2563eb;

    color: white;
}

.participant-detail-btn-primary:hover {
    background: #1d4ed8;
}

.participant-detail-btn-danger {
    background: #fff;

    border-color: #fecaca;

    color: #dc2626;
}

.participant-detail-btn-danger:hover {
    background: #fef2f2;
}

.participant-detail-locked {
    padding: 10px 14px;

    border-radius: 8px;

    background: #f8fafc;

    border: 1px solid #e5e7eb;

    color: #7b8493;

    font-size: 11px;
}


/* =========================================================
   ERROR
   ========================================================= */

.participant-detail-error {
    padding: 18px;

    border-radius: 12px;

    background: #fff5f5;

    border: 1px solid #fecaca;

    color: #991b1b;
}

.participant-detail-error strong {
    display: block;

    margin-bottom: 6px;
}

.participant-detail-error p {
    margin: 2px 0;

    font-size: 13px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {

    .participant-detail-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 650px) {

    .participant-detail-hero {
        flex-direction: column;

        align-items: flex-start;
    }

    .participant-detail-hero-right {
        width: 100%;

        box-sizing: border-box;
    }

    .participant-detail-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .participant-detail-actions-right {
        flex-direction: column;

        align-items: stretch;
    }

    .participant-detail-btn {
        width: 100%;
    }

    .participant-detail-summary {
        grid-template-columns: 1fr;
    }

} 