/* =========================================================
   PERUSAHAAN - PARTICIPANT / ASSESSMENT
   PREMIUM COLORFUL VERSION
   ========================================================= */


/* =========================================================
   PAGE
   ========================================================= */

.participant-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.participant-page-header {
    position: relative;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 22px;
    padding: 27px 30px;

    box-sizing: border-box;

    background:
        radial-gradient(
            circle at 88% 18%,
            rgba(96, 165, 250, .28),
            transparent 22%
        ),
        radial-gradient(
            circle at 75% 100%,
            rgba(139, 92, 246, .20),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #071a35 0%,
            #0b2850 48%,
            #123d70 100%
        );

    border: 1px solid rgba(96, 165, 250, .18);
    border-radius: 18px;

    box-shadow:
        0 15px 38px rgba(7, 26, 53, .20);

    overflow: hidden;
}


/* dekorasi */

.participant-page-header::before {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    right: 80px;
    bottom: -115px;

    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 50%;

    box-shadow:
        0 0 0 35px rgba(255, 255, 255, .025),
        0 0 0 70px rgba(255, 255, 255, .018);

    pointer-events: none;
}


.participant-page-header::after {
    content: "";

    position: absolute;

    width: 8px;
    height: 8px;

    right: 38px;
    top: 30px;

    border-radius: 50%;

    background: #60a5fa;

    box-shadow:
        -24px 14px 0 rgba(167, 139, 250, .9),
        -47px -4px 0 rgba(45, 212, 191, .85),
        -68px 22px 0 rgba(251, 191, 36, .85);

    pointer-events: none;
}


.participant-page-header > div {
    position: relative;

    z-index: 2;

    min-width: 0;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.participant-eyebrow {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 9px;

    color: #8fc5ff;

    font-size: 10px;
    font-weight: 850;

    letter-spacing: 1.25px;
    text-transform: uppercase;
}


.participant-eyebrow::before {
    content: "";

    width: 22px;
    height: 3px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #60a5fa,
            #a78bfa
        );
}


/* =========================================================
   TITLE
   ========================================================= */

.participant-page-header h2 {
    margin: 0;

    color: #ffffff;

    font-size: 28px;
    font-weight: 850;

    line-height: 1.2;

    letter-spacing: -.7px;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.participant-page-header p {
    max-width: 590px;

    margin: 8px 0 0;

    color: rgba(226, 235, 247, .76);

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   STATISTICS
   ========================================================= */

.participant-stats {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 20px;

    background: transparent;

    border: none;

    overflow: visible;

    box-shadow: none;
}


.participant-stat-card {
    position: relative;

    display: flex;
    align-items: center;

    gap: 13px;

    min-width: 0;

    min-height: 86px;

    padding: 17px 18px;

    background: #ffffff;

    border: 1px solid #e4eaf3;
    border-radius: 15px;

    box-shadow:
        0 7px 20px rgba(15, 32, 66, .055);

    overflow: hidden;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}


.participant-stat-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 13px 28px rgba(15, 32, 66, .09);
}


/* garis warna */

.participant-stat-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 4px;

    border-radius: 15px 0 0 15px;
}


.participant-stat-card:nth-child(1)::before {
    background:
        linear-gradient(
            180deg,
            #2563eb,
            #60a5fa
        );
}


.participant-stat-card:nth-child(2)::before {
    background:
        linear-gradient(
            180deg,
            #10b981,
            #34d399
        );
}


.participant-stat-card:nth-child(3)::before {
    background:
        linear-gradient(
            180deg,
            #7c3aed,
            #a78bfa
        );
}


.participant-stat-card:nth-child(4)::before {
    background:
        linear-gradient(
            180deg,
            #f59e0b,
            #fbbf24
        );
}


/* dekorasi kanan */

.participant-stat-card::after {
    content: "";

    position: absolute;

    width: 70px;
    height: 70px;

    right: -30px;
    bottom: -38px;

    border-radius: 50%;

    opacity: .35;

    pointer-events: none;
}


.participant-stat-card:nth-child(1)::after {
    background: #bfdbfe;
}


.participant-stat-card:nth-child(2)::after {
    background: #a7f3d0;
}


.participant-stat-card:nth-child(3)::after {
    background: #ddd6fe;
}


.participant-stat-card:nth-child(4)::after {
    background: #fde68a;
}


/* =========================================================
   STAT ICON
   ========================================================= */

.participant-stat-icon {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 42px;
    height: 42px;

    border-radius: 12px;

    font-size: 15px;
    font-weight: 900;

    z-index: 1;
}


.participant-stat-icon.blue {
    background:
        linear-gradient(
            135deg,
            #dbeafe,
            #eff6ff
        );

    color: #2563eb;

    box-shadow:
        inset 0 0 0 1px #bfdbfe;
}


.participant-stat-icon.green {
    background:
        linear-gradient(
            135deg,
            #d1fae5,
            #ecfdf5
        );

    color: #059669;

    box-shadow:
        inset 0 0 0 1px #a7f3d0;
}


.participant-stat-icon.purple {
    background:
        linear-gradient(
            135deg,
            #ede9fe,
            #f5f3ff
        );

    color: #7c3aed;

    box-shadow:
        inset 0 0 0 1px #ddd6fe;
}


.participant-stat-icon.orange {
    background:
        linear-gradient(
            135deg,
            #fef3c7,
            #fffbeb
        );

    color: #d97706;

    box-shadow:
        inset 0 0 0 1px #fde68a;
}


.participant-stat-content {
    position: relative;

    min-width: 0;

    z-index: 1;
}


.participant-stat-content span {
    display: block;

    margin-bottom: 5px;

    color: #8995a7;

    font-size: 8px;
    font-weight: 850;

    letter-spacing: .8px;

    text-transform: uppercase;
}


.participant-stat-content strong {
    display: block;

    color: #172033;

    font-size: 21px;
    font-weight: 850;

    line-height: 1.1;
}


/* =========================================================
   MAIN CARD
   ========================================================= */

.participant-main-card {
    position: relative;

    width: 100%;

    box-sizing: border-box;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e3e9f2;
    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(15, 32, 66, .065);
}


/* =========================================================
   CARD HEADER
   ========================================================= */

.participant-card-header {
    position: relative;

    padding: 24px 27px 21px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8fbff 100%
        );

    border-bottom: 1px solid #e9eef5;
}


.participant-card-header::after {
    content: "";

    position: absolute;

    width: 110px;
    height: 110px;

    right: -42px;
    top: -55px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(37, 99, 235, .08),
            transparent 70%
        );

    pointer-events: none;
}


.participant-section-label {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin-bottom: 6px;

    color: #2563eb;

    font-size: 9px;
    font-weight: 850;

    letter-spacing: 1px;

    text-transform: uppercase;
}


.participant-section-label::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 2px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #8b5cf6
        );
}


.participant-card-header h3 {
    margin: 0;

    color: #172033;

    font-size: 19px;
    font-weight: 850;

    line-height: 1.35;
}


.participant-card-header p {
    margin: 5px 0 0;

    color: #7b8798;

    font-size: 11px;
    line-height: 1.55;
}


/* =========================================================
   ASSESSMENT LIST
   ========================================================= */

.participant-assessment-list {
    display: flex;
    flex-direction: column;

    gap: 13px;

    padding: 19px 21px 22px;
}


/* =========================================================
   ASSESSMENT CARD
   ========================================================= */

.participant-assessment-card {
    position: relative;

    display: grid;

    grid-template-columns:
        52px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 17px;

    padding: 19px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fbfdff 100%
        );

    border: 1px solid #e2e9f3;
    border-radius: 15px;

    box-shadow:
        0 4px 13px rgba(15, 32, 66, .035);

    overflow: hidden;

    transition:
        border-color .22s ease,
        box-shadow .22s ease,
        transform .22s ease;
}


/* garis kiri */

.participant-assessment-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 16px;
    bottom: 16px;

    width: 4px;

    border-radius: 0 5px 5px 0;

    background:
        linear-gradient(
            180deg,
            #2563eb,
            #7c3aed
        );

    opacity: .85;
}


.participant-assessment-card:hover {
    border-color: #c9d8eb;

    box-shadow:
        0 12px 28px rgba(15, 32, 66, .08);

    transform: translateY(-2px);
}


/* =========================================================
   ASSESSMENT ICON
   ========================================================= */

.participant-assessment-icon {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #dbeafe 0%,
            #e0e7ff 48%,
            #ede9fe 100%
        );

    color: #3157c8;

    font-size: 17px;
    font-weight: 900;

    box-shadow:
        inset 0 0 0 1px rgba(99, 102, 241, .12),
        0 5px 13px rgba(79, 70, 229, .09);
}


.participant-assessment-icon::after {
    content: "";

    position: absolute;

    width: 7px;
    height: 7px;

    right: 5px;
    top: 5px;

    border-radius: 50%;

    background: #60a5fa;

    box-shadow:
        -8px 6px 0 #a78bfa;
}


/* =========================================================
   ASSESSMENT INFO
   ========================================================= */

.participant-assessment-info {
    min-width: 0;
}


.participant-assessment-top {
    display: flex;
    align-items: center;

    gap: 10px;

    min-width: 0;
}


.participant-assessment-top h4 {
    min-width: 0;

    margin: 0;

    overflow: hidden;

    color: #182235;

    font-size: 14px;
    font-weight: 850;

    line-height: 1.4;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   STATUS
   ========================================================= */

.participant-assessment-status {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    gap: 6px;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 8px;
    font-weight: 850;

    white-space: nowrap;
}


.participant-assessment-status .participant-status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: currentColor;
}


.participant-assessment-status-active {
    background: #dcfce7;
    color: #15803d;

    box-shadow:
        inset 0 0 0 1px #bbf7d0;
}


.participant-assessment-status-draft {
    background: #fef3c7;
    color: #b45309;

    box-shadow:
        inset 0 0 0 1px #fde68a;
}


.participant-assessment-status-completed {
    background: #e0f2fe;
    color: #0369a1;

    box-shadow:
        inset 0 0 0 1px #bae6fd;
}


.participant-assessment-status-cancelled {
    background: #ffe4e6;
    color: #be123c;

    box-shadow:
        inset 0 0 0 1px #fecdd3;
}


.participant-assessment-status-default {
    background: #f1f5f9;
    color: #64748b;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.participant-assessment-description {
    max-width: 720px;

    margin: 6px 0 0;

    overflow: hidden;

    color: #7b8798;

    font-size: 10px;
    line-height: 1.55;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.participant-assessment-description.muted {
    color: #a1aab7;
}


/* =========================================================
   META
   ========================================================= */

.participant-assessment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 13px;
}


.participant-assessment-meta-item {
    display: flex;
    align-items: center;

    gap: 6px;

    padding: 5px 8px;

    background: #f7f9fc;

    border: 1px solid #e8edf4;
    border-radius: 7px;
}


.meta-label {
    color: #9aa4b2;

    font-size: 7px;
    font-weight: 850;

    letter-spacing: .5px;

    text-transform: uppercase;
}


.participant-assessment-meta-item strong {
    color: #475569;

    font-size: 9px;
    font-weight: 800;

    white-space: nowrap;
}


/* =========================================================
   ACTION
   ========================================================= */

.participant-assessment-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


.participant-manage-button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-width: 136px;

    height: 38px;

    padding: 0 14px;

    border: none;
    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #2563eb 0%,
            #315bd8 50%,
            #4f46e5 100%
        );

    color: #ffffff;

    font-size: 10px;
    font-weight: 800;

    text-decoration: none;

    box-shadow:
        0 6px 15px rgba(37, 99, 235, .20);

    overflow: hidden;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}


.participant-manage-button::before {
    content: "";

    position: absolute;

    width: 70px;
    height: 70px;

    right: -30px;
    top: -40px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .13);
}


.participant-manage-button span {
    position: relative;

    font-size: 14px;
    line-height: 1;
}


.participant-manage-button:hover {
    filter: brightness(1.05);

    transform: translateY(-2px);

    box-shadow:
        0 9px 20px rgba(37, 99, 235, .27);
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.participant-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 300px;

    padding: 45px 25px;

    text-align: center;
}


.participant-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    margin-bottom: 14px;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #dbeafe,
            #ede9fe
        );

    color: #4f46e5;

    font-size: 17px;
    font-weight: 900;

    box-shadow:
        0 7px 18px rgba(79, 70, 229, .10);
}


.participant-empty h4 {
    margin: 0 0 7px;

    color: #253047;

    font-size: 16px;
    font-weight: 850;
}


.participant-empty p {
    max-width: 430px;

    margin: 0 0 18px;

    color: #8995a7;

    font-size: 11px;
    line-height: 1.65;
}


.participant-empty-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 37px;

    padding: 8px 15px;

    border: none;
    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    color: #ffffff;

    font-size: 10px;
    font-weight: 800;

    text-decoration: none;

    box-shadow:
        0 6px 15px rgba(37, 99, 235, .18);
}


.participant-empty-button:hover {
    filter: brightness(1.05);
}


/* =========================================================
   ALERT
   ========================================================= */

.participant-alert {
    padding: 14px 16px;

    border-radius: 11px;

    font-size: 12px;
}


.participant-alert.error {
    border: 1px solid #fecdd3;

    background:
        linear-gradient(
            135deg,
            #fff1f2,
            #fff7f8
        );

    color: #be123c;

    box-shadow:
        0 6px 16px rgba(190, 18, 60, .06);
}


/* =========================================================
   RESPONSIVE - 1050PX
   ========================================================= */

@media (max-width: 1050px) {

    .participant-assessment-card {
        grid-template-columns:
            48px
            minmax(0, 1fr);
    }


    .participant-assessment-action {
        grid-column: 2;

        justify-content: flex-start;

        margin-top: 2px;
    }

}


/* =========================================================
   RESPONSIVE - 850PX
   ========================================================= */

@media (max-width: 850px) {

    .participant-stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   RESPONSIVE - 650PX
   ========================================================= */

@media (max-width: 650px) {

    .participant-page-header {
        padding: 22px;
    }


    .participant-page-header h2 {
        font-size: 24px;
    }


    .participant-stats {
        grid-template-columns: 1fr;

        gap: 9px;
    }


    .participant-stat-card {
        min-height: 78px;
    }


    .participant-card-header {
        padding: 20px;
    }


    .participant-assessment-list {
        padding: 13px;
    }


    .participant-assessment-card {
        grid-template-columns:
            43px
            minmax(0, 1fr);

        gap: 12px;

        padding: 16px;
    }


    .participant-assessment-icon {
        width: 43px;
        height: 43px;
    }


    .participant-assessment-top {
        align-items: flex-start;

        flex-direction: column;

        gap: 7px;
    }


    .participant-assessment-top h4 {
        white-space: normal;
    }


    .participant-assessment-meta {
        gap: 6px;
    }


    .participant-assessment-action {
        grid-column: 1 / -1;

        margin-top: 4px;
    }


    .participant-manage-button {
        width: 100%;
    }

}


/* =========================================================
   RESPONSIVE - 420PX
   ========================================================= */

@media (max-width: 420px) {

    .participant-page-header {
        padding: 18px;
    }


    .participant-page-header h2 {
        font-size: 21px;
    }


    .participant-page-header p {
        font-size: 11px;
    }


    .participant-stat-card {
        padding: 15px;
    }


    .participant-stat-icon {
        width: 38px;
        height: 38px;
    }


    .participant-card-header {
        padding: 17px;
    }


    .participant-assessment-list {
        padding: 10px;
    }


    .participant-assessment-card {
        padding: 14px;
    }


    .participant-assessment-meta {
        align-items: flex-start;

        flex-direction: column;
    }


    .participant-assessment-meta-item {
        width: fit-content;
    }

}