/* =========================================================
   INSPIZONE - HIREAI CANDIDATEFIT ADMIN DASHBOARD
   ========================================================= */

:root {
    --admin-primary: #991b5a;
    --admin-primary-dark: #7f164a;
    --admin-primary-light: #f9eaf2;
    --admin-bg: #f7f8fc;
    --admin-white: #ffffff;
    --admin-text: #272f3e;
    --admin-muted: #7a8292;
    --admin-border: #e7e9ef;
    --admin-success: #16a34a;
    --admin-blue: #2563eb;
    --admin-orange: #ea580c;
    --admin-sidebar: #ffffff;
    --admin-shadow: 0 8px 28px rgba(39, 47, 62, 0.07);
    --admin-radius: 14px;
    --sidebar-width: 255px;
}

/* ================= BASE ================= */

.admin-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--admin-bg);
    color: var(--admin-text);
    font-family: "Poppins", Arial, sans-serif;
}

.admin-page *,
.admin-page *::before,
.admin-page *::after {
    box-sizing: border-box;
}

.admin-page button,
.admin-page input,
.admin-page textarea,
.admin-page select {
    font-family: inherit;
}

.admin-page button {
    cursor: pointer;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* ================= SIDEBAR ================= */

.admin-sidebar {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--admin-sidebar);
    border-right: 1px solid var(--admin-border);
    transition: width 0.25s ease, transform 0.25s ease;
}

.sidebar-brand {
    min-height: 90px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--admin-border);
}

.brand-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-title {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title strong {
    color: var(--admin-primary);
    font-size: 16px;
    font-weight: 800;
}

.brand-title span {
    color: var(--admin-muted);
    font-size: 10px;
    margin-top: 4px;
    letter-spacing: 0.3px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 14px;
    overflow-y: auto;
}

.nav-section-title {
    padding: 12px 12px 8px;
    color: #a0a6b1;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    margin: 4px 0;
    padding: 0 13px;
    color: #687181;
    text-decoration: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

.nav-item:hover {
    color: var(--admin-primary);
    background: var(--admin-primary-light);
}

.nav-item.active {
    color: var(--admin-primary);
    background: var(--admin-primary-light);
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 8px;
    width: 3px;
    height: 30px;
    border-radius: 0 4px 4px 0;
    background: var(--admin-primary);
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid var(--admin-border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px 12px;
}

.user-avatar,
.top-avatar,
.dropdown-avatar,
.profile-large-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--admin-primary);
    font-weight: 700;
    border-radius: 50%;
}

.user-avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
}

.sidebar-user div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-user strong {
    font-size: 12px;
}

.sidebar-user small {
    margin-top: 2px;
    color: var(--admin-muted);
    font-size: 10px;
}

.sidebar-logout {
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: 9px;
    background: #fff1f4;
    color: #c2415b;
    font-size: 12px;
    font-weight: 600;
    transition: 0.2s ease;
}

.sidebar-logout:hover {
    background: #ffe1e8;
}

/* ================= MAIN ================= */

.admin-main {
    width: calc(100% - var(--sidebar-width));
    min-width: 0;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.25s ease;
}

.admin-sidebar.collapsed {
    width: 76px;
}

.admin-sidebar.collapsed .brand-title,
.admin-sidebar.collapsed .nav-item span,
.admin-sidebar.collapsed .nav-section-title,
.admin-sidebar.collapsed .sidebar-user div:last-child,
.admin-sidebar.collapsed .sidebar-logout {
    display: none;
}

.admin-sidebar.collapsed .sidebar-brand {
    justify-content: center;
    padding: 20px 10px;
}

.admin-sidebar.collapsed .nav-item {
    justify-content: center;
}

.admin-sidebar.collapsed + .admin-main {
    width: calc(100% - 76px);
    margin-left: 76px;
}

/* ================= TOPBAR ================= */

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    min-height: 78px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--admin-border);
    backdrop-filter: blur(10px);
}

.sidebar-toggle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--admin-border);
    border-radius: 9px;
    background: #fff;
    color: var(--admin-text);
}

.sidebar-toggle:hover {
    color: var(--admin-primary);
    border-color: #e5bfd2;
}

.topbar-title {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.topbar-kicker,
.section-kicker,
.panel-kicker,
.welcome-label {
    color: var(--admin-primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.topbar-title h1 {
    margin: 5px 0 0;
    font-size: 20px;
    font-weight: 700;
}

.topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-button {
    position: relative;
    width: 40px;
    height: 40px;
    border: 1px solid var(--admin-border);
    border-radius: 50%;
    background: #fff;
    color: #697181;
}

.icon-button:hover {
    color: var(--admin-primary);
}

.notification-dot {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #e11d48;
}

.admin-menu-wrapper {
    position: relative;
}

.admin-profile-button {
    min-height: 46px;
    padding: 4px 8px 4px 5px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--admin-text);
}

.admin-profile-button:hover {
    background: #f7f7fa;
}

.top-avatar {
    width: 36px;
    height: 36px;
    font-size: 13px;
}

.admin-profile-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.admin-profile-text strong {
    font-size: 12px;
}

.admin-profile-text small {
    margin-top: 2px;
    color: var(--admin-muted);
    font-size: 9px;
}

.admin-profile-button > i {
    margin-left: 3px;
    color: #9298a3;
    font-size: 10px;
}

.admin-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 215px;
    padding: 8px;
    display: none;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(39, 47, 62, 0.13);
}

.admin-dropdown.show {
    display: block;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 5px;
}

.dropdown-avatar {
    width: 34px;
    height: 34px;
    font-size: 12px;
}

.dropdown-header div {
    display: flex;
    flex-direction: column;
}

.dropdown-header strong {
    font-size: 12px;
}

.dropdown-header small {
    margin-top: 2px;
    color: var(--admin-muted);
    font-size: 9px;
}

.dropdown-item {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #596170;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--admin-primary-light);
    color: var(--admin-primary);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    margin: 6px 0;
    background: var(--admin-border);
}

.logout-item {
    color: #c2415b;
}

/* ================= CONTENT ================= */

.admin-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px;
}

.admin-section {
    display: none;
    animation: sectionFade 0.22s ease;
}

.admin-section.active {
    display: block;
}

@keyframes sectionFade {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-banner {
    min-height: 175px;
    margin-bottom: 24px;
    padding: 30px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at 85% 25%, rgba(153, 27, 90, 0.15), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #fff7fb 100%);
    border: 1px solid #f0dbe6;
}

.welcome-label {
    color: var(--admin-primary);
}

.welcome-banner h2 {
    margin: 8px 0 5px;
    font-size: 26px;
    font-weight: 750;
}

.welcome-banner p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 13px;
}

.welcome-icon {
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    background: var(--admin-primary-light);
    color: var(--admin-primary);
    font-size: 40px;
    transform: rotate(5deg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    min-height: 135px;
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
}

.stat-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 19px;
}

.stat-icon.purple,
.quick-icon.purple {
    background: #f7e9f0;
    color: var(--admin-primary);
}

.stat-icon.blue,
.quick-icon.blue {
    background: #eaf1ff;
    color: var(--admin-blue);
}

.stat-icon.green,
.quick-icon.green {
    background: #e8f8ee;
    color: var(--admin-success);
}

.stat-icon.orange {
    background: #fff0e7;
    color: var(--admin-orange);
}

.stat-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.stat-content > span {
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 600;
}

.stat-content strong {
    margin: 5px 0;
    font-size: 27px;
    line-height: 1;
}

.stat-content small {
    color: #9ba1ac;
    font-size: 9px;
}

.stat-content small i {
    color: var(--admin-success);
}

.dashboard-grid,
.content-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    margin-bottom: 20px;
}

.panel-card {
    padding: 23px;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.panel-heading h3 {
    margin: 4px 0 0;
    font-size: 16px;
    font-weight: 700;
}

.panel-heading-icon {
    color: #d5a5bd;
    font-size: 20px;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.quick-action {
    width: 100%;
    padding: 10px;
    display: grid;
    grid-template-columns: 42px 1fr 20px;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--admin-border);
    border-radius: 11px;
    background: #fff;
    color: var(--admin-text);
    text-align: left;
    transition: all 0.2s ease;
}

.quick-action:hover {
    border-color: #e2bdd0;
    background: #fff9fc;
    transform: translateX(2px);
}

.quick-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.quick-action span:nth-child(2) {
    display: flex;
    flex-direction: column;
}

.quick-action strong {
    font-size: 12px;
}

.quick-action small {
    margin-top: 3px;
    color: var(--admin-muted);
    font-size: 9px;
}

.quick-action > i {
    color: #aeb3bc;
    font-size: 10px;
}

.overview-list {
    display: flex;
    flex-direction: column;
}

.overview-list > div {
    min-height: 51px;
    padding: 0 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f1f4;
}

.overview-list > div:last-child {
    border-bottom: 0;
}

.overview-list span {
    color: var(--admin-muted);
    font-size: 11px;
}

.overview-list strong {
    font-size: 14px;
}

.recent-panel {
    margin-bottom: 20px;
}

.text-button {
    border: 0;
    background: transparent;
    color: var(--admin-primary);
    font-size: 11px;
    font-weight: 700;
}

.text-button:hover {
    text-decoration: underline;
}

/* ================= SECTION HEADINGS ================= */

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 6px 0 4px;
    font-size: 25px;
}

.section-heading p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 12px;
}

/* ================= TABLES ================= */

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.admin-table th {
    padding: 12px 14px;
    background: #fafafd;
    color: #858c98;
    border-bottom: 1px solid var(--admin-border);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}

.admin-table td {
    padding: 13px 14px;
    color: #4f5868;
    border-bottom: 1px solid #f0f1f4;
    font-size: 11px;
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: #fffbfd;
}

.table-empty {
    padding: 45px 20px !important;
    color: var(--admin-muted) !important;
    text-align: center;
}

.table-empty i {
    display: block;
    margin-bottom: 10px;
    color: #c9ced7;
    font-size: 28px;
}

/* ================= FORMS ================= */

.form-group,
.upload-job-select {
    margin-bottom: 17px;
}

.form-group label,
.upload-job-select label,
.candidate-toolbar label {
    display: block;
    margin-bottom: 7px;
    color: #535c6b;
    font-size: 11px;
    font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select,
.upload-job-select select,
.candidate-toolbar select {
    width: 100%;
    padding: 11px 13px;
    color: var(--admin-text);
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 9px;
    outline: none;
    font-size: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.upload-job-select select:focus,
.candidate-toolbar select:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(153, 27, 90, 0.08);
}

.btn-primary-admin {
    min-height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 9px;
    background: var(--admin-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn-primary-admin:hover {
    background: var(--admin-primary-dark);
    box-shadow: 0 7px 18px rgba(153, 27, 90, 0.18);
    transform: translateY(-1px);
}

/* ================= JOBS ================= */

.jobs-admin-list {
    max-height: 430px;
    overflow-y: auto;
}

.admin-empty-state {
    min-height: 180px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--admin-muted);
    text-align: center;
}

.admin-empty-state i {
    margin-bottom: 12px;
    color: #c9ced7;
    font-size: 32px;
}

.admin-empty-state h4 {
    margin: 0 0 5px;
    color: #596170;
    font-size: 13px;
}

.admin-empty-state p {
    max-width: 350px;
    margin: 0;
    font-size: 10px;
    line-height: 1.6;
}

.admin-empty-state.compact {
    min-height: 100px;
}

.count-badge,
.candidate-count {
    color: var(--admin-primary);
    background: var(--admin-primary-light);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.count-badge {
    min-width: 27px;
    padding: 6px 9px;
    text-align: center;
}

/* ================= UPLOAD ================= */

.upload-panel {
    padding: 28px;
}

.upload-job-select {
    max-width: 500px;
}

.upload-area-admin {
    min-height: 260px;
    margin: 10px 0 28px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dfc0d0;
    border-radius: 16px;
    background: #fffafd;
    text-align: center;
    transition: all 0.2s ease;
}

.upload-area-admin:hover,
.upload-area-admin.drag-active {
    border-color: var(--admin-primary);
    background: #fff6fa;
}

.upload-icon {
    width: 65px;
    height: 65px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--admin-primary);
    background: var(--admin-primary-light);
    font-size: 26px;
}

.upload-area-admin h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.upload-area-admin p {
    margin: 0 0 7px;
    color: var(--admin-muted);
    font-size: 11px;
}

.browse-link {
    color: var(--admin-primary);
    font-weight: 700;
    cursor: pointer;
}

.upload-area-admin > span {
    color: #a1a7b1;
    font-size: 9px;
}

.recent-uploads-admin {
    border-top: 1px solid var(--admin-border);
    padding-top: 23px;
}

.file-list-admin {
    min-height: 80px;
}

/* ================= CANDIDATES ================= */

.candidate-toolbar {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.candidate-toolbar > div:first-child {
    width: min(100%, 400px);
}

.candidate-count {
    min-width: 85px;
    padding: 8px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.candidate-count span {
    color: #8b92a0;
}

.candidate-count strong {
    font-size: 13px;
}

/* ================= TOP MATCHES ================= */

.top-matches-admin {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* ================= ANALYTICS ================= */

.analytics-admin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.analytics-admin-card {
    position: relative;
    min-height: 145px;
    padding: 23px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
}

.analytics-admin-card span {
    display: block;
    color: var(--admin-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.analytics-admin-card strong {
    display: block;
    margin-top: 13px;
    color: var(--admin-primary);
    font-size: 31px;
}

.analytics-admin-card i {
    position: absolute;
    right: 20px;
    bottom: 20px;
    color: #f0dce6;
    font-size: 38px;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.insight-item {
    padding: 18px;
    display: flex;
    gap: 12px;
    border: 1px solid var(--admin-border);
    border-radius: 11px;
}

.insight-item > i {
    color: var(--admin-primary);
    font-size: 18px;
}

.insight-item div {
    display: flex;
    flex-direction: column;
}

.insight-item strong {
    font-size: 12px;
}

.insight-item span {
    margin-top: 4px;
    color: var(--admin-muted);
    font-size: 9px;
    line-height: 1.5;
}

/* ================= PROFILE ================= */

.profile-card {
    max-width: 850px;
}

.profile-header {
    margin-bottom: 25px;
    padding-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--admin-border);
}

.profile-large-avatar {
    width: 70px;
    height: 70px;
    font-size: 22px;
}

.profile-header h3 {
    margin: 0;
    font-size: 17px;
}

.profile-header p {
    margin: 5px 0 0;
    color: var(--admin-muted);
    font-size: 11px;
}

.profile-form {
    max-width: 600px;
}

/* ================= SETTINGS ================= */

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    gap: 20px;
}

.security-info {
    align-self: start;
    background: linear-gradient(135deg, #fff 0%, #fff8fb 100%);
}

.security-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-primary);
    background: var(--admin-primary-light);
    border-radius: 12px;
    font-size: 21px;
}

.security-info h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.security-info p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 11px;
    line-height: 1.7;
}

.security-info ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.security-info li {
    margin: 9px 0;
    color: #697181;
    font-size: 10px;
}

.security-info li i {
    margin-right: 7px;
    color: var(--admin-success);
}

/* ================= MODAL ================= */

.admin-page .modal {
    z-index: 2000;
}

.admin-page .modal-content {
    border-radius: 15px;
    box-shadow: 0 20px 55px rgba(39, 47, 62, 0.2);
}

/* ================= TOAST ================= */

.admin-toast {
    position: fixed;
    z-index: 3000;
    right: 25px;
    bottom: 25px;
    max-width: 350px;
    padding: 13px 18px;
    color: #fff;
    background: #272f3e;
    border-radius: 9px;
    box-shadow: 0 12px 30px rgba(39, 47, 62, 0.2);
    font-size: 11px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.25s ease;
}

.admin-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {

    .stats-grid,
    .analytics-admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .top-matches-admin {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1000px) {

    .dashboard-grid,
    .content-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .insight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {

    :root {
        --sidebar-width: 255px;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        box-shadow: 15px 0 35px rgba(39, 47, 62, 0.12);
    }

    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }

    .admin-main,
    .admin-sidebar.collapsed + .admin-main {
        width: 100%;
        margin-left: 0;
    }

    .admin-content {
        padding: 22px;
    }

    .admin-topbar {
        padding: 0 20px;
    }
}

@media (max-width: 650px) {

    .admin-content {
        padding: 16px;
    }

    .admin-topbar {
        min-height: 68px;
        padding: 0 14px;
        gap: 10px;
    }

    .topbar-title h1 {
        font-size: 17px;
    }

    .topbar-kicker {
        display: none;
    }

    .admin-profile-text,
    .admin-profile-button > i {
        display: none;
    }

    .stats-grid,
    .analytics-admin-grid {
        grid-template-columns: 1fr;
    }

    .welcome-banner {
        min-height: auto;
        padding: 24px;
    }

    .welcome-banner h2 {
        font-size: 21px;
    }

    .welcome-icon {
        display: none;
    }

    .panel-card,
    .upload-panel {
        padding: 18px;
    }

    .candidate-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .candidate-toolbar > div:first-child {
        width: 100%;
    }

    .candidate-count {
        align-self: flex-start;
    }

    .upload-area-admin {
        min-height: 220px;
        padding: 25px 15px;
    }

    .section-heading h2 {
        font-size: 21px;
    }

    .admin-toast {
        right: 15px;
        bottom: 15px;
        left: 15px;
        max-width: none;
    }
}

/* ================= PRINT ================= */

@media print {

    .admin-sidebar,
    .admin-topbar,
    .quick-actions-panel,
    .admin-toast {
        display: none !important;
    }

    .admin-main {
        width: 100% !important;
        margin: 0 !important;
    }

    .admin-content {
        padding: 0;
    }
}