/* =========================================================
   PARTICIPANTS PAGE
   ========================================================= */

.participants-page {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;

    box-sizing: border-box;
}


/* =========================================================
   HERO
   ========================================================= */

.participants-hero {
    position: relative;
    overflow: hidden;

    min-height: 205px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 38px 42px;

    border-radius: 24px;

    background:
        radial-gradient(
            circle at 90% 15%,
            rgba(36,128,255,.26),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #050914 0%,
            #07142d 52%,
            #092f70 100%
        );

    box-shadow:
        0 18px 45px rgba(3,20,50,.18);

    box-sizing: border-box;
}


.participants-hero-content {
    position: relative;
    z-index: 2;
}


.participants-eyebrow {
    display: inline-flex;

    padding: 7px 13px;

    margin-bottom: 13px;

    border: 1px solid rgba(48,144,255,.5);
    border-radius: 8px;

    background: rgba(16,98,219,.14);

    color: #38a2ff;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.4px;
}


.participants-hero h1 {
    margin: 0 0 8px;

    color: #fff;

    font-size: clamp(29px,3vw,40px);
    line-height: 1.15;

    font-weight: 800;
}


.participants-hero p {
    margin: 0;

    color: #b9cbe6;

    font-size: 15px;
}


/* =========================================================
   HERO DECORATION
   ========================================================= */

.participants-hero-decoration {
    position: relative;

    width: 190px;
    height: 150px;

    flex-shrink: 0;
}


.participants-circle {
    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(72,160,255,.2);

    background: rgba(34,125,240,.08);
}


.participants-circle.circle-one {
    width: 145px;
    height: 145px;

    right: 0;
    top: 0;
}


.participants-circle.circle-two {
    width: 92px;
    height: 92px;

    right: 27px;
    top: 27px;
}


.participants-mini-card {
    position: absolute;

    right: 40px;
    top: 51px;

    width: 92px;

    padding: 13px 8px;

    box-sizing: border-box;

    border: 1px solid rgba(255,255,255,.13);
    border-radius: 13px;

    background: rgba(255,255,255,.09);

    backdrop-filter: blur(8px);

    text-align: center;

    color: #fff;
}


.participants-mini-card strong {
    display: block;

    font-size: 21px;
}


.participants-mini-card span {
    display: block;

    margin-top: 2px;

    color: #bcd0eb;

    font-size: 10px;
}


/* =========================================================
   STATISTICS
   ========================================================= */

.participants-stats {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-top: 22px;
}


.participants-stat-card {
    position: relative;
    overflow: hidden;

    min-height: 145px;

    padding: 25px 25px 22px;

    box-sizing: border-box;

    border: 1px solid #dce7f5;
    border-radius: 19px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f7faff 100%
        );

    box-shadow:
        0 9px 28px rgba(17,48,88,.06);
}


.participants-stat-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 4px;
}


.stat-total::before {
    background: #2684ff;
}

.stat-pending::before {
    background: #5b76e8;
}

.stat-process::before {
    background: #ed8a35;
}

.stat-finished::before {
    background: #16a879;
}


.participants-stat-label {
    color: #506886;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .8px;
}


.participants-stat-value {
    margin-top: 13px;

    color: #132d58;

    font-size: 32px;
    line-height: 1;

    font-weight: 800;
}


.participants-stat-description {
    margin-top: 11px;

    color: #8495ad;

    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   SECTION HEADER
   ========================================================= */

.participants-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-top: 35px;
    margin-bottom: 18px;
}


.participants-section-eyebrow {
    display: block;

    margin-bottom: 7px;

    color: #3989df;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


.participants-section-header h2 {
    margin: 0;

    color: #132f5c;

    font-size: 24px;
    font-weight: 800;
}


.participants-section-header p {
    margin: 6px 0 0;

    color: #8394ad;

    font-size: 13px;
}


/* =========================================================
   ADD BUTTON
   ========================================================= */

.participants-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 44px;

    padding: 0 19px;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #1685ff,
            #075bd1
        );

    color: #fff;

    font-size: 13px;
    font-weight: 750;

    text-decoration: none;

    box-shadow:
        0 8px 18px rgba(15,101,215,.2);

    transition: .2s ease;
}


.participants-add-button span {
    font-size: 18px;
    line-height: 1;
}


.participants-add-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 11px 23px rgba(15,101,215,.28);
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.participants-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 15px;

    padding: 15px;

    border: 1px solid #dce7f5;
    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #f8fbff,
            #eef5ff
        );
}


.participants-search {
    position: relative;

    flex: 1;

    max-width: 650px;
}


.participants-search-icon {
    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: #66809f;

    font-size: 20px;

    pointer-events: none;
}


.participants-search input {
    width: 100%;

    height: 45px;

    box-sizing: border-box;

    padding: 0 45px;

    border: 1px solid #d2dfef;
    border-radius: 11px;

    background: #fff;

    color: #18365f;

    font-family: inherit;
    font-size: 13px;

    outline: none;

    transition: .2s ease;
}


.participants-search input::placeholder {
    color: #91a2b9;
}


.participants-search input:focus {
    border-color: #2584e8;

    box-shadow:
        0 0 0 4px rgba(37,132,232,.09);
}


.participants-search-clear {
    position: absolute;

    right: 9px;
    top: 50%;

    transform: translateY(-50%);

    width: 28px;
    height: 28px;

    display: none;

    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 7px;

    background: #edf3fa;

    color: #58708e;

    font-size: 18px;

    cursor: pointer;
}


.participants-search-clear:hover {
    background: #dfe9f5;
}


.participants-result {
    flex-shrink: 0;

    color: #7a8da8;

    font-size: 12px;
}


.participants-result span {
    color: #173b70;

    font-weight: 800;
}


/* =========================================================
   TABLE
   ========================================================= */

.participants-table-card {
    overflow: hidden;

    border: 1px solid #dce7f5;
    border-radius: 19px;

    background: #fff;

    box-shadow:
        0 12px 35px rgba(15,45,85,.07);
}


.participants-table-wrapper {
    width: 100%;

    overflow-x: auto;
}


.participants-table {
    width: 100%;

    min-width: 1050px;

    border-collapse: collapse;
}


.participants-table thead {
    background:
        linear-gradient(
            180deg,
            #f7faff,
            #eff5fc
        );
}


.participants-table th {
    padding: 15px 17px;

    border-bottom: 1px solid #dce7f5;

    color: #6d819e;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .8px;

    text-align: left;

    white-space: nowrap;
}


.participants-table td {
    padding: 17px;

    border-bottom: 1px solid #edf2f8;

    color: #344c6b;

    font-size: 13px;

    vertical-align: middle;
}


.participants-table tbody tr {
    transition: background .18s ease;
}


.participants-table tbody tr:hover {
    background: #f7fbff;
}


.participants-table tbody tr:last-child td {
    border-bottom: 0;
}


.col-number {
    width: 55px;
}


.col-action {
    width: 80px;
}


/* =========================================================
   PARTICIPANT
   ========================================================= */

.participant-number {
    color: #8295ae !important;

    font-size: 12px !important;
}


.participant-person {
    display: flex;
    align-items: center;

    gap: 11px;

    min-width: 190px;
}


.participant-avatar {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #e5f1ff,
            #cfe4ff
        );

    color: #1769c2;

    font-size: 14px;
    font-weight: 800;
}


.participant-person-info {
    min-width: 0;
}


.participant-person-info strong {
    display: block;

    overflow: hidden;

    color: #19375f;

    font-size: 13px;
    font-weight: 750;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.participant-person-info span {
    display: block;

    margin-top: 3px;

    overflow: hidden;

    color: #8b9bb0;

    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   CODE
   ========================================================= */

.participant-code {
    display: inline-flex;

    padding: 6px 8px;

    border: 1px solid #d9e7f6;
    border-radius: 7px;

    background: #f2f7fd;

    color: #2868a9;

    font-family: monospace;
    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
   OTHER DATA
   ========================================================= */

.participant-company,
.participant-assessment,
.participant-position {
    color: #49617f;

    font-size: 12px;
}


.participant-no-data {
    color: #a3afbf;
}


/* =========================================================
   STATUS
   ========================================================= */

.participant-status {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 6px 9px;

    border-radius: 20px;

    font-size: 10px;
    font-weight: 750;

    white-space: nowrap;
}


.participant-status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: currentColor;
}


.participant-status.pending {
    background: #eef2ff;
    color: #536bc2;
}


.participant-status.process {
    background: #fff3e8;
    color: #d57524;
}


.participant-status.success {
    background: #e9f8f1;
    color: #16875f;
}


/* =========================================================
   DETAIL BUTTON
   ========================================================= */

.participant-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 31px;

    padding: 0 11px;

    border: 1px solid #cfe0f2;
    border-radius: 8px;

    background: #f4f8fd;

    color: #1769c2;

    font-size: 11px;
    font-weight: 750;

    text-decoration: none;

    transition: .2s ease;
}


.participant-detail-button:hover {
    border-color: #9fc3e9;

    background: #eaf4ff;

    color: #0756a9;
}


/* =========================================================
   EMPTY
   ========================================================= */

.participants-empty,
.participants-empty-search {
    padding: 55px 25px !important;

    text-align: center !important;
}


.participants-empty-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 13px;

    border-radius: 14px;

    background: #edf5ff;

    color: #2878d2;

    font-size: 18px;
    font-weight: 800;
}


.participants-empty h3,
.participants-empty-search h3 {
    margin: 0;

    color: #294568;

    font-size: 16px;
}


.participants-empty p,
.participants-empty-search p {
    margin: 7px 0 18px;

    color: #8999ad;

    font-size: 12px;
}


.participants-empty-button {
    display: inline-flex;

    min-height: 38px;

    align-items: center;

    padding: 0 15px;

    border-radius: 9px;

    background: #1685ff;

    color: #fff;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}


.participant-search-empty td {
    border-bottom: 0 !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {

    .participants-stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .participants-hero-decoration {
        display: none;
    }

}


@media (max-width: 700px) {

    .participants-page {
        padding: 20px 15px 40px;
    }

    .participants-hero {
        padding: 30px 25px;

        border-radius: 18px;
    }

    .participants-hero h1 {
        font-size: 29px;
    }

    .participants-stats {
        grid-template-columns: 1fr;
    }

    .participants-section-header {
        align-items: stretch;
        flex-direction: column;
    }

    .participants-add-button {
        width: 100%;
    }

    .participants-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .participants-search {
        max-width: none;
    }

    .participants-result {
        text-align: right;
    }

}
.participant-action-buttons {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.participant-action-detail,
.participant-action-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 32px;
    padding: 0 10px;

    box-sizing: border-box;

    border-radius: 7px;

    text-decoration: none;

    font-size: 10px;
    font-weight: 700;

    transition: 0.2s ease;
}

.participant-action-detail {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #2563eb;
}

.participant-action-detail:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.participant-action-edit {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.participant-action-edit:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}


/* =========================================================
   DARK MODE OVERRIDES FOR PARTICIPANTS PAGE
   ========================================================= */

html.theme-dark .participants-stat-card {
    background: #10172a !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 9px 28px rgba(0, 0, 0, 0.3) !important;
}

html.theme-dark .participants-stat-label {
    color: #94a3b8 !important;
}

html.theme-dark .participants-stat-value {
    color: #f1f5f9 !important;
}

html.theme-dark .participants-stat-description {
    color: #64748b !important;
}

html.theme-dark .participants-section-header h2 {
    color: #f1f5f9 !important;
}

html.theme-dark .participants-section-header p {
    color: #94a3b8 !important;
}

html.theme-dark .participants-toolbar {
    background: rgba(16, 23, 42, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html.theme-dark .participants-search input {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f1f5f9 !important;
}

html.theme-dark .participants-search input::placeholder {
    color: #64748b !important;
}

html.theme-dark .participants-search-icon {
    color: #64748b !important;
}

html.theme-dark .participants-search-clear {
    background: rgba(30, 41, 59, 0.8) !important;
    color: #94a3b8 !important;
}

html.theme-dark .participants-search-clear:hover {
    background: rgba(51, 65, 85, 0.9) !important;
    color: #f1f5f9 !important;
}

html.theme-dark .participants-result {
    color: #94a3b8 !important;
}

html.theme-dark .participants-result span {
    color: #38bdf8 !important;
}

html.theme-dark .participants-table-card {
    background: #10172a !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4) !important;
}

html.theme-dark .participants-table thead {
    background: rgba(15, 23, 42, 0.9) !important;
}

html.theme-dark .participants-table th {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    color: #818cf8 !important;
}

html.theme-dark .participants-table td {
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
    color: #e2e8f0 !important;
}

html.theme-dark .participants-table tbody tr:hover {
    background: rgba(30, 41, 59, 0.5) !important;
}

html.theme-dark .participant-avatar {
    background: rgba(37, 99, 235, 0.2) !important;
    color: #60a5fa !important;
}

html.theme-dark .participant-person-info strong {
    color: #f1f5f9 !important;
}

html.theme-dark .participant-person-info span {
    color: #94a3b8 !important;
}

html.theme-dark .participant-code {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #93c5fd !important;
}

html.theme-dark .participant-company,
html.theme-dark .participant-assessment,
html.theme-dark .participant-position {
    color: #cbd5e1 !important;
}

html.theme-dark .participant-number {
    color: #64748b !important;
}

html.theme-dark .participant-status.pending {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #a5b4fc !important;
}

html.theme-dark .participant-status.process {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fcd34d !important;
}

html.theme-dark .participant-status.success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #6ee7b7 !important;
}

html.theme-dark .participant-action-detail {
    background: rgba(37, 99, 235, 0.2) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    color: #93c5fd !important;
}

html.theme-dark .participant-action-detail:hover {
    background: rgba(37, 99, 235, 0.4) !important;
    color: #ffffff !important;
}

html.theme-dark .participant-action-edit {
    background: rgba(30, 41, 59, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
}

html.theme-dark .participant-action-edit:hover {
    background: rgba(51, 65, 85, 0.8) !important;
    color: #ffffff !important;
}

html.theme-dark .participants-empty h3,
html.theme-dark .participants-empty-search h3 {
    color: #f1f5f9 !important;
}

html.theme-dark .participants-empty p,
html.theme-dark .participants-empty-search p {
    color: #94a3b8 !important;
}

html.theme-dark .participants-empty-icon {
    background: rgba(37, 99, 235, 0.2) !important;
    color: #60a5fa !important;
}