:root {
    --purple: #4a008b;
    --purple-dark: #3d0079;
    --purple-soft: #efeefd;
    --text: #17121f;
    --muted: #9a96a3;
    --line: #dedbe5;
    --success: #54c984;
    --danger: #9e9e9e;
    --panel: #fafafa;
    --row: #f0f0ff;
    --white: #fff;
}

.admin-nav {
    display: flex;
}

.admin-nav {
}

.admin-nav h2 {
    position: relative;
    color: #000;
    margin: 0 0 0 30px;
    font-size: 16px;
    line-height: 26px;
    font-family: Kanit-Light;
}

.admin-nav h2:before {
    content: "";
    width: 1px;
    height: 30px;
    background: #350e83;
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar {
    width: 322px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #fff;
    padding: 34px 10px 0 40px;
    z-index: 10;
}

.sidebar:before {
    content: "";
    width: 1px;
    height: 70%;
    position: absolute;
    right: -10px;
    top: 55%;
    transform: translateY(-50%);
    background: #400378;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 43px;
}

.nav-item {
    height: 56px;
    border: 0;
    background: transparent;
    color: #111;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 16px 0 12px;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    transition: .2s;
    width: 100%;
}

.nav-item.active {
    background: #400378;
    color: #fff;
    border-bottom-color: #400378;
}

.topbar {
    height: 116px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.main-area {
    flex: 1;
    margin-left: 322px;
    min-height: 100vh;
    padding: 0 40px 70px;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 20px;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 0px;
}

.page-head h2 {
    position: relative;
    color: #400378;
    margin: 0 0 0 0px;
    font-size: 24px;
    line-height: 34px;
    font-family: "kanit-thin";
}

.table-wrap {
    color: #000;
    font-family: "Kanit-Light";
    font-size: 16px;
    line-height: 26px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto
}

.data-table {
    border-collapse: separate;
    border-spacing: 0 0;
    width: 100%;
    min-width: 1200px
}

.data-table th {
    text-align: left;
    color: #a09ca9;
    font-weight: 400;
    font-size: 16px;
    padding: 0 10px 10px;
}

.data-table td {
    padding: 15px 16px;
    height: 52px
}

.data-table tbody tr:nth-child(odd) {
    background: #f0f0ff;
}

.data-table tbody tr:nth-child(odd) td:first-child {
    border-radius: 5px 0 0 5px
}

.data-table tbody tr:nth-child(odd) td:last-child {
    border-radius: 0 5px 5px 0
}

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 6px 14px;
    border-radius: 0px;
    background: #f3f3f3;
    color: #8c8c8c;
    font-size: 13px
}

.status.success {
    background: #ecfff4;
    color: var(--success)
}

.status.interview,.status.progress {
    background: var(--purple);
    color: #fff
}

.status.progress {
    background: #e9e9f4;
    color: #777
}

.select-wrapper {
    position: relative;
    width: 170px;
}

.select-wrapper select {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 1px solid #ccc;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;
    cursor: pointer;
}

.select-wrapper select:focus-visible {
    outline: none;
}

.select-wrapper::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #400378;
    border-bottom: 2px solid #400378;
    transform: translateY(-60%) rotate(45deg);
    position: absolute;
    right: 16px;
    top: 50%;
    pointer-events: none;
}

.interview-card .select-wrapper {
    position: relative;
    width: 100%;
}

.page {
    display: none;
    max-width: 1530px;
    margin: 34px 0 0 0;
}

.page-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 0px;
}

.page.active {
    display: block;
}

.nav-item.active .arrow, .nav-item.active .nav-icon {
    filter: brightness(0) invert(1);
}

.search-box {
    padding: 12px 40px 12px 10px;
    border: 1px solid #ccc;
    font-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;
    cursor: pointer;
    max-height: 42px;
    display: flex;
    align-items: center;
    max-width: 200px;
    position: relative;
}

.search-box button {
    background: transparent;
    border: none;
    position: absolute;
    top: 50%;
    right: 5px;
    cursor: pointer;
    transform: translateY(-50%);
}

.search-box button img {
    width: 22px;
}

.search-box input {
    background: transparent;
    border: none;
    color: #000;
    font-family: "Kanit-Light";
    font-size: 14px;
    line-height: 21px;
    max-width: 160px;
}

.search-box input:focus {
    border: none;
    outline: none;
}

/*.pagination {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 8px;
    margin-top: 25px;
}*/
.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 25px;
    flex-wrap: wrap;
}
.page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover, .page-btn.active {
    background: #400378;
    border-color: #400378;
    color: #fff;
}

.page-btn.active {
    font-weight: 600;
}

.profile-grid {
    display: grid;
    grid-template-columns: 560px 560px;
    gap: 75px;
    align-items: start
}

.profile-left {
    display: flex;
    flex-direction: column;
    gap: 18px
}

.info-card,.skills-card,.interview-details,.interview-card,.decision-card {
    background: #fafafa;
    padding: 22px 22px 26px
}

.info-row,.line-row {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 8px;
    border-bottom: 1px solid #ddd;
    padding: 12px 0;
    align-items: start;
    font-family: "Kanit-Light";
}

.info-row span,.line-row span {
    color: var(--purple-dark);
    font-weight: 600
}

.info-row b,.line-row b {
    font-weight: 400
}

.skills-list {
    border-bottom: 1px solid #ddd;
    padding: 12px 0 22px;
    display: flex;
    gap: 25px;
    flex-wrap: wrap
}

.skills-list span+span:before {
    content: "|";
    margin-right: 22px;
    color: #333
}

.interview-card {
    padding: 24px 18px 28px
}

.interview-card label {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: start;
    gap: 22px;
    color: var(--purple-dark);
    font-weight: 600;
    margin-bottom: 20px;
    font-family: "Kanit-Light";
}

.interview-card input,.interview-card textarea {
    height: 34px;
    border: 1px solid #d7d4dc;
    background: #fff;
    outline: 0;
    padding: 8px;
    font-family: inherit;
    font-family: "Kanit-Light";
}

.interview-card textarea {
    height: 230px;
    resize: vertical
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-left: 122px;
    margin-top: 18px
}

.ghost-btn,.primary-btn {
    height: 45px;
    min-width: 130px;
    border: 0;
    border-radius: 2px;
    font-family: inherit;
    cursor: pointer;
    max-width: 130px;
}

.ghost-btn {
    background: #d8cceb;
    color: var(--purple-dark)
}

.primary-btn {
    background: var(--purple);
    color: #fff
}

.decision-card {
    padding: 24px 20px 80px
}

.decision-card .line-row {
    grid-template-columns: 110px 1fr
}

.resume-btn {
    float: right;
    margin-top: 55px
}

.profile-grid h2 {
    font-weight: 400;
    color: var(--purple-dark);
    font-size: 26px;
    margin: 0 0 26px;
    font-family: "Kanit-Light";
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-left: 122px;
    margin-top: 18px;
}

@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns:repeat(4,minmax(160px,1fr));
        gap: 22px
    }

    .stat-card {
        width: auto
    }

    .profile-grid {
        grid-template-columns: minmax(360px,560px) minmax(360px,560px);
        gap: 40px
    }
}

@media (max-width: 1024px) {
    .page-head {
        align-items:stretch
    }

    .toolbar {
        justify-content: flex-start
    }

    .profile-grid {
        grid-template-columns: 1fr;
        max-width: 720px
    }

    .interview-card,.decision-card {
        width: 100%
    }
}

@media (max-width: 768px) {
    body {
        font-size:14px;
        background: #fff
    }

    .main-area {
        padding: 0 14px 40px
    }

    .topbar {
        height: 72px;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 6;
        border-bottom: 1px solid #f0edf5
    }

    .topbar-actions {
        gap: 10px
    }

    .divider {
        height: 28px
    }

    .icon-btn img,.profile-dot img {
        width: 23px
    }

    .page {
        margin-top: 18px
    }

    h1 {
        font-size: 22px;
        margin-bottom: 18px
    }

    h2 {
        font-size: 20px;
        margin-bottom: 16px
    }

    .toolbar {
        display: grid;
        grid-template-columns: 1fr 1fr 38px 38px 38px;
        gap: 8px;
        width: 100%
    }

    .toolbar .select-btn,.toolbar .search-box {
        width: 100%;
        height: 40px
    }

    .small-search .search-box {
        width: 100%
    }

    .stats-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 12px
    }

    .stat-card {
        height: auto;
        min-height: 105px;
        padding: 18px 14px
    }

    .stat-card span {
        font-size: 13px
    }

    .stat-card strong {
        font-size: 21px;
        margin-top: 18px
    }

    .table-wrap {
        overflow: visible
    }

    .data-table {
        min-width: 0;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 12px
    }

    .data-table thead {
        display: none
    }

    .data-table tbody,.data-table tr,.data-table td {
        display: block;
        width: 100%
    }

    .data-table tbody tr {
        background: #fff!important;
        border: 1px solid #eeeaf7; 
        padding: 8px 0;
        box-shadow: 0 8px 22px rgba(74,0,139,.06);
        overflow: hidden
    }

    .data-table tbody tr:nth-child(odd) {
        background: #f8f7ff!important
    }

    .data-table td {
        height: auto;
        min-height: 40px;
        padding: 10px 14px 10px 46%;
        position: relative;
        border-bottom: 1px solid #eeeaf7;
        word-break: break-word
    }

    .data-table td:last-child {
        border-bottom: 0
    }

    .data-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 14px;
        top: 10px;
        width: 38%;
        color: #6e6877;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.35
    }

    .data-table tbody tr:nth-child(odd) td:first-child,.data-table tbody tr:nth-child(odd) td:last-child {
        border-radius: 0
    }

    .status {
        min-width: 72px;
        padding: 5px 11px;
        font-size: 12px
    }

    .pagination {
        justify-content: center;
        gap: 8px;
        margin-top: 28px;
        flex-wrap: wrap
    }

    .page-btn {
        min-width: 36px;
        height: 30px
    }

    .info-row,.line-row {
        grid-template-columns: 90px 1fr;
        padding: 10px 0
    }

    .skills-list {
        gap: 12px
    }

    .skills-list span+span:before {
        margin-right: 10px
    }

    .interview-card label {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-bottom: 14px
    }

    .interview-card textarea {
        height: 160px
    }

    .decision-card {
        padding-bottom: 24px
    }

    .resume-btn {
        float: none;
        margin-top: 24px;
        width: 100%
    }
}

@media (max-width: 520px) {
    .sidebar {
        width:84%;
        padding: 28px 12px 0 22px
    }

    .brand img {
        width: 105px;
        margin-bottom: 34px
    }

    .nav-item {
        height: 50px;
        font-size: 14px;
        gap: 14px;
        padding-left: 10px
    }

    .nav-item img.nav-icon {
        width: 24px;
        height: 24px
    }

    .role-name {
        max-width: 94px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .toolbar {
        grid-template-columns: 1fr 1fr 34px 34px 34px;
        gap: 6px
    }

    .select-btn {
        padding: 0 8px;
        font-size: 12px
    }

    .search-box {
        padding: 0 8px
    }

    .search-box input {
        font-size: 12px
    }

    .mini-btn {
        width: 34px;
        height: 34px
    }

    .stats-grid {
        grid-template-columns: 1fr
    }

    .data-table td {
        padding-left: 42%
    }

    .data-table td::before {
        width: 35%
    }

    .info-card,.skills-card,.interview-details,.interview-card,.decision-card {
        padding: 16px 14px
    }

    .info-row,.line-row {
        grid-template-columns: 1fr;
        gap: 3px
    }
}

.nav-item {
    text-decoration: none
}

.status {
    text-decoration: none
}

.static-page {
    display: block
}
