/* =========================================
   SELETRIA 2.0 — DESIGN SYSTEM
   ========================================= */

:root {
    --bg: #10131c;
    --surface: #171b27;
    --surface-light: #1c2130;
    --surface-hover: #22283a;
    --border: #292f40;
    --text: #f2f3fa;
    --text-secondary: #a0a8bb;
    --muted: #737e95;
    --purple: #9567f5;
    --purple-light: #b39aff;
    --blue: #48b9f8;
    --green: #43d6a0;
    --orange: #ffb765;
    --red: #ff7588;
    --sidebar-width: 252px;
    --radius: 14px;
    --transition: 180ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--purple-light);
    outline-offset: 3px;
}

::selection {
    background: rgba(149, 103, 245, .35);
    color: white;
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #343b50;
    border-radius: 20px;
}

/* =========================================
   ESTRUTURA
   ========================================= */

.app-layout {
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 27px 17px 16px;
    background: #141722;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    transition: transform var(--transition);
}

.main-container {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    min-width: 0;
}

.dashboard-content {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 32px 34px 0;
}

/* =========================================
   MARCA
   ========================================= */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    margin: 0 0 31px 7px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1.3px;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: white;
    background: linear-gradient(135deg, #a47aff, #7550e8);
    border-radius: 11px;
    font-size: 17px;
    box-shadow: 0 5px 20px rgba(133, 87, 238, .2);
}

.brand-dot {
    color: var(--purple-light);
}

/* =========================================
   WORKSPACE
   ========================================= */

.workspace {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    background: #1b1f2d;
    border: 1px solid #2b3041;
    border-radius: 11px;
    margin-bottom: 30px;
}

.workspace-avatar {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 9px;
    color: white;
    font-weight: 700;
    font-size: 15px;
    background: linear-gradient(135deg, #6c63db, #9c68f7);
}

.workspace-info,
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.workspace-info strong,
.profile-info strong {
    font-size: 11px;
    font-weight: 600;
    color: #f3f4fa;
}

.workspace-info small,
.profile-info small {
    color: var(--muted);
    font-size: 10px;
}

.workspace-arrow {
    margin-left: auto;
    font-size: 10px;
    color: var(--muted);
}

/* =========================================
   MENU
   ========================================= */

.menu-label {
    padding: 0 10px;
    margin: 0 0 11px;
    color: #727c91;
    font-size: 9px;
    letter-spacing: 1.15px;
    font-weight: 700;
}

.second-label {
    margin-top: 30px;
}

.main-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item {
    position: relative;
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    color: #969fb2;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}

.nav-item>i {
    width: 17px;
    text-align: center;
    font-size: 14px;
}

.nav-item:hover {
    background: var(--surface-hover);
    color: white;
}

.nav-item.active {
    background: rgba(149, 103, 245, .13);
    color: #c0a9ff;
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: -17px;
    top: 9px;
    height: 25px;
    width: 3px;
    border-radius: 0 5px 5px 0;
    background: var(--purple);
}

.nav-counter {
    margin-left: auto;
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 20px;
    padding: 0 5px;
    border-radius: 6px;
    background: #292e40;
    color: #bdc3d4;
    font-size: 10px;
}

.ai-mini-badge {
    margin-left: auto;
    padding: 3px 5px;
    border-radius: 4px;
    background: rgba(149, 103, 245, .17);
    color: #b69bff;
    font-size: 9px;
    font-weight: 800;
}

/* =========================================
   RODAPÉ DO MENU
   ========================================= */

.sidebar-bottom {
    margin-top: auto;
    padding-top: 30px;
}

.upgrade-card {
    padding: 15px;
    border: 1px solid #383052;
    border-radius: 12px;
    background:
        radial-gradient(ellipse at top right, rgba(149, 103, 245, .16), transparent 65%),
        #1b1a2a;
}

.upgrade-icon {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: rgba(149, 103, 245, .18);
    color: var(--purple-light);
}

.upgrade-card>strong {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
}

.upgrade-card p {
    margin: 0 0 12px;
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.7;
}

.upgrade-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #bba5ff;
    font-size: 10px;
    font-weight: 700;
}

.upgrade-link:hover {
    color: white;
}

.profile-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 19px;
    padding: 13px 5px 3px;
    border: 0;
    border-top: 1px solid var(--border);
    color: var(--text);
    background: transparent;
    text-align: left;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    background: linear-gradient(135deg, #e4b18a, #9164b9);
    color: white;
    font-size: 11px;
    font-weight: 800;
}

.profile-button>i {
    margin-left: auto;
    color: var(--muted);
}

/* =========================================
   TOPBAR
   ========================================= */

.topbar {
    height: 76px;
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 0 34px;
    border-bottom: 1px solid var(--border);
    background: rgba(16, 19, 28, .94);
    backdrop-filter: blur(16px);
}

.topbar-left,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 11px;
    white-space: nowrap;
    color: #7e899f;
    font-size: 11px;
}

.breadcrumb i {
    font-size: 9px;
    color: #4e586d;
}

.breadcrumb strong {
    color: #e6e8f1;
    font-weight: 600;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 260px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #2a3041;
    border-radius: 9px;
    background: #171b27;
    color: #8993a9;
}

.search-box>i {
    font-size: 12px;
}

.search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 10px;
}

.search-box input::placeholder {
    color: #7f899d;
}

.search-box kbd {
    white-space: nowrap;
    padding: 3px 5px;
    border: 1px solid #353b4d;
    border-radius: 4px;
    background: #212635;
    color: #9ca5b8;
    font-family: inherit;
    font-size: 9px;
}

.icon-button {
    position: relative;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid #2b3142;
    border-radius: 9px;
    background: #191d2a;
    color: #a8b0c2;
    transition: background var(--transition), color var(--transition);
}

.icon-button:hover {
    background: #272c3d;
    color: white;
}

.notification-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 6px;
    height: 6px;
    border: 1px solid var(--bg);
    border-radius: 50%;
    background: var(--purple);
}

.topbar-divider {
    width: 1px;
    height: 30px;
    background: var(--border);
}

.topbar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: var(--muted);
}

.small-avatar {
    width: 34px;
    height: 34px;
    font-size: 10px;
}

.mobile-menu-button {
    display: none;
}

/* =========================================
   BOAS-VINDAS
   ========================================= */

.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;
    margin-bottom: 27px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #929bb0;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.15px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px rgba(67, 214, 160, .35);
}

.welcome-section h1 {
    margin: 0 0 9px;
    color: #f6f6fc;
    font-size: clamp(24px, 2.1vw, 31px);
    font-weight: 700;
    letter-spacing: -1.15px;
}

.wave {
    display: inline-block;
    color: #b59aff;
    font-size: .8em;
}

.welcome-description {
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.7;
}

.welcome-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-primary-custom,
.btn-secondary-custom {
    min-height: 39px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 0 15px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    transition: transform var(--transition), background var(--transition);
}

.btn-primary-custom {
    border: 1px solid #9c7af8;
    background: linear-gradient(135deg, #9a70f7, #8058e9);
    color: white;
    box-shadow: 0 4px 16px rgba(130, 88, 233, .15);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #aa87ff, #8d65f4);
    color: white;
    transform: translateY(-1px);
}

.btn-secondary-custom {
    border: 1px solid #32394b;
    background: #191d2a;
    color: #c6ccda;
}

.btn-secondary-custom:hover {
    background: #252b3b;
    color: white;
}

/* =========================================
   CARDS DE INDICADORES
   ========================================= */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 20px;
}

.metric-card {
    position: relative;
    min-width: 0;
    min-height: 168px;
    overflow: hidden;
    padding: 19px 17px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(145deg, #191d2a, #171b26);
    transition: border-color var(--transition), transform var(--transition);
}

.metric-card:hover {
    border-color: #44405e;
    transform: translateY(-2px);
}

.metric-top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
}

.metric-icon {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 9px;
    font-size: 13px;
}

.metric-icon.purple {
    color: #b69aff;
    background: rgba(149, 103, 245, .15);
}

.metric-icon.blue {
    color: #63c9ff;
    background: rgba(72, 185, 248, .13);
}

.metric-icon.green {
    color: #54e0ac;
    background: rgba(67, 214, 160, .13);
}

.metric-icon.orange {
    color: #ffc47f;
    background: rgba(255, 183, 101, .13);
}

.metric-label {
    color: #a2aabd;
    font-size: 10px;
    font-weight: 500;
}

.metric-menu {
    margin-left: auto;
    align-self: flex-start;
    color: #657087;
    font-size: 12px;
    letter-spacing: 2px;
}

.metric-value {
    margin: 17px 0 10px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1.3px;
    color: #f3f4fa;
    font-variant-numeric: tabular-nums;
}

.metric-unit {
    font-size: 13px;
    font-weight: 500;
    color: #a7b0c3;
    letter-spacing: 0;
}

.metric-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.metric-positive {
    color: var(--green);
    font-size: 10px;
    font-weight: 600;
}

.metric-positive i {
    font-size: 9px;
}

.metric-caption {
    color: #778198;
    font-size: 9px;
}

.metric-sparkline {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 83px;
    height: 37px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    opacity: .75;
}

.metric-sparkline span {
    flex: 1;
    border-radius: 3px 3px 0 0;
}

.purple-line span {
    background: #9166ed;
}

.blue-line span {
    background: #40aeea;
}

.green-line span {
    background: #35c995;
}

.orange-line span {
    background: #e9a553;
}

/* =========================================
   PAINÉIS
   ========================================= */

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, 1fr);
    gap: 18px;
    margin-bottom: 19px;
}

.panel {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #171b27;
}

.chart-panel,
.activity-panel,
.jobs-panel,
.funnel-panel {
    padding: 21px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.panel-header h2 {
    margin: 0 0 7px;
    font-size: 13px;
    font-weight: 650;
    color: #f0f1f8;
    letter-spacing: -.15px;
}

.panel-header p {
    margin: 0;
    color: #8791a6;
    font-size: 10px;
    line-height: 1.7;
}

.select-control {
    max-width: 145px;
    padding: 9px 10px;
    border: 1px solid #30364a;
    border-radius: 7px;
    background: #1e2331;
    color: #c2c9d8;
    outline: none;
    font-size: 10px;
}

.select-control:focus {
    border-color: var(--purple);
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 24px 0 16px;
    color: #a6afc1;
    font-size: 10px;
}

.chart-legend>span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.legend-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.purple-dot {
    background: var(--purple);
}

.blue-dot {
    background: var(--blue);
}

/* =========================================
   GRÁFICO
   ========================================= */

.chart-container {
    height: 205px;
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 8px;
}

.chart-y-labels {
    height: 174px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 2px;
    color: #737e94;
    font-size: 9px;
}

.chart-plot {
    position: relative;
    min-width: 0;
    height: 205px;
}

.chart-grid-lines {
    position: absolute;
    inset: 0 0 31px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-grid-lines span {
    display: block;
    width: 100%;
    border-top: 1px dashed #2d3343;
}

.line-chart {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 174px;
    overflow: visible;
}

.chart-x-labels {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    color: #778197;
    font-size: 9px;
}

/* =========================================
   ATIVIDADES
   ========================================= */

.text-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #b69aff;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 600;
}

.text-action:hover {
    color: white;
}

.activity-list {
    margin-top: 17px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid #282d3d;
}

.activity-item:first-child {
    padding-top: 5px;
}

.activity-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.activity-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 9px;
    font-size: 12px;
}

.avatar-purple {
    background: rgba(149, 103, 245, .14);
    color: #b59aff;
}

.avatar-blue {
    background: rgba(72, 185, 248, .13);
    color: #69c9ff;
}

.avatar-green {
    background: rgba(67, 214, 160, .13);
    color: #4ad9a3;
}

.avatar-orange {
    background: rgba(255, 183, 101, .13);
    color: #ffc17b;
}

.activity-body {
    flex: 1;
    min-width: 0;
}

.activity-body p {
    margin: 0 0 5px;
    color: #d7dbe7;
    font-size: 10px;
    line-height: 1.6;
}

.activity-body p strong {
    color: #f6f6fb;
    font-weight: 600;
}

.activity-body>span {
    display: block;
    margin-bottom: 5px;
    color: #a4aec1;
    font-size: 9px;
}

.activity-body small {
    color: #768197;
    font-size: 9px;
}

.activity-status {
    flex-shrink: 0;
    padding: 5px 7px;
    border-radius: 5px;
    font-size: 8px;
    font-weight: 600;
}

.activity-status.approved {
    color: #50dba7;
    background: rgba(67, 214, 160, .11);
}

/* =========================================
   VAGAS
   ========================================= */

.bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.table-responsive {
    width: 100%;
    margin-top: 20px;
    overflow-x: auto;
}

.jobs-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.jobs-table th {
    padding: 0 10px 13px;
    color: #79849a;
    border-bottom: 1px solid #2b3040;
    font-size: 8px;
    letter-spacing: .6px;
    font-weight: 700;
    text-align: left;
}

.jobs-table th:first-child,
.jobs-table td:first-child {
    padding-left: 0;
}

.jobs-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #292e3e;
    color: #b9c1d2;
    font-size: 10px;
    vertical-align: middle;
}

.jobs-table tbody tr:last-child td {
    border-bottom: 0;
}

.jobs-table tbody tr {
    transition: background var(--transition);
}

.jobs-table tbody tr:hover {
    background: rgba(255, 255, 255, .018);
}

.job-title-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 9px;
    font-size: 12px;
}

.job-purple {
    color: #bba4ff;
    background: rgba(149, 103, 245, .14);
}

.job-blue {
    color: #5cc7ff;
    background: rgba(72, 185, 248, .13);
}

.job-pink {
    color: #f49bcd;
    background: rgba(230, 114, 181, .13);
}

.job-title-cell>div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.job-title-cell strong {
    color: #e5e8f1;
    font-size: 10px;
    font-weight: 600;
}

.job-title-cell small {
    color: #828da3;
    font-size: 9px;
}

.job-status {
    display: inline-flex;
    padding: 6px 8px;
    border-radius: 5px;
    font-size: 8px;
    font-weight: 600;
}

.status-active {
    color: #4dd8a4;
    background: rgba(67, 214, 160, .11);
}

.status-review {
    color: #ffc16e;
    background: rgba(255, 183, 101, .11);
}

.progress-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-track {
    width: 65px;
    height: 5px;
    overflow: hidden;
    border-radius: 5px;
    background: #2c3243;
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7953e8, #ad8cff);
}

.progress-cell small {
    color: #a9b1c3;
    font-size: 9px;
}

.row-action {
    width: 27px;
    height: 27px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #8690a6;
}

.row-action:hover {
    background: #272c3c;
    border-color: #373d50;
    color: white;
}

/* =========================================
   FUNIL
   ========================================= */

.small-icon {
    width: 29px;
    height: 29px;
    font-size: 11px;
}

.funnel-list {
    display: flex;
    flex-direction: column;
    gap: 21px;
    margin-top: 26px;
}

.funnel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.funnel-heading>span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #aeb6c8;
    font-size: 10px;
}

.funnel-heading strong {
    color: #f1f2f8;
    font-size: 11px;
    font-weight: 650;
}

.funnel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.funnel-purple {
    background: #a17af8;
}

.funnel-blue {
    background: #4abaf6;
}

.funnel-orange {
    background: #ffba6d;
}

.funnel-green {
    background: #42d6a0;
}

.funnel-track {
    height: 7px;
    overflow: hidden;
    border-radius: 10px;
    background: #2b3040;
}

.funnel-track>span {
    display: block;
    height: 100%;
    border-radius: inherit;
    transition: width .4s ease;
}

.funnel-purple-bg {
    background: #9a72f5;
}

.funnel-blue-bg {
    background: #48b9f8;
}

.funnel-orange-bg {
    background: #f6b365;
}

.funnel-green-bg {
    background: #43d6a0;
}

.funnel-footer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 27px;
    padding: 13px;
    border: 1px solid #37304f;
    border-radius: 9px;
    background: rgba(149, 103, 245, .07);
}

.funnel-footer-icon {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 7px;
    color: #b49aff;
    background: rgba(149, 103, 245, .15);
}

.funnel-footer p {
    margin: 0;
    color: #9fa8bd;
    font-size: 9px;
    line-height: 1.7;
}

.funnel-footer p strong {
    color: #d5c7ff;
}

/* =========================================
   RODAPÉ DA PÁGINA
   ========================================= */

.dashboard-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 0 22px;
    border-top: 1px solid #282d3d;
    color: #707b91;
    font-size: 9px;
}

.footer-right {
    text-align: right;
}

.footer-right i {
    margin-left: 4px;
    color: #b08cff;
}

/* =========================================
   MODAL
   ========================================= */

.modal-backdrop-custom {
    position: fixed;
    z-index: 300;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4, 6, 12, .76);
    backdrop-filter: blur(7px);
}

.modal-backdrop-custom.open {
    display: flex;
    animation: fadeIn .16s ease;
}

.custom-modal {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
    border: 1px solid #353b4f;
    border-radius: 16px;
    background: #191d2a;
    box-shadow: 0 24px 90px rgba(0, 0, 0, .4);
    animation: modalIn .2s ease;
}

.modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.modal-eyebrow {
    color: #ac92ff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.modal-heading h2 {
    margin: 8px 0 0;
    color: white;
    font-size: 22px;
    font-weight: 700;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 17px;
}

.form-field label {
    color: #cdd2e0;
    font-size: 11px;
    font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 42px;
    padding: 11px 12px;
    border: 1px solid #343b4f;
    border-radius: 8px;
    outline: none;
    background: #121621;
    color: #f1f2f8;
    font-size: 11px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #707b90;
}

.form-field select:invalid {
    color: #8993a7;
}

.form-field select option {
    background: #191d2a;
    color: white;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(149, 103, 245, .1);
}

.form-field textarea {
    min-height: 90px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

/* =========================================
   TOAST
   ========================================= */

.toast-message {
    position: fixed;
    z-index: 500;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 32px);
    padding: 14px 18px;
    border: 1px solid #3a4650;
    border-radius: 10px;
    background: #1b2430;
    color: #e5f5ee;
    font-size: 11px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .3);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.toast-message i {
    color: var(--green);
    font-size: 15px;
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   FILTROS E ESTADOS
   ========================================= */

.jobs-table tbody tr.search-hidden {
    display: none;
}

.empty-state {
    padding: 35px 15px;
    color: #8e98ac;
    text-align: center;
    line-height: 1.8;
}

.empty-state i {
    display: block;
    margin-bottom: 10px;
    color: #a98cff;
    font-size: 24px;
}

/* =========================================
   ANIMAÇÕES
   ========================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================
   RESPONSIVIDADE
   ========================================= */

.sidebar-overlay {
    display: none;
}

@media (min-width: 1600px) {
    .dashboard-content {
        padding-right: 45px;
        padding-left: 45px;
    }

    .metric-card {
        min-height: 178px;
    }
}

@media (max-width: 1250px) {
    :root {
        --sidebar-width: 225px;
    }

    .dashboard-content {
        padding-right: 24px;
        padding-left: 24px;
    }

    .topbar {
        padding-right: 24px;
        padding-left: 24px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-grid,
    .bottom-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .activity-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
    }

    .activity-item:nth-child(3) {
        border-bottom: 0;
    }

    .funnel-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
    }
}

@media (max-width: 850px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 15px 0 50px rgba(0, 0, 0, .3);
    }

    .sidebar-overlay.active {
        display: block;
        position: fixed;
        z-index: 90;
        inset: 0;
        background: rgba(0, 0, 0, .55);
    }

    .main-container {
        margin-left: 0;
    }

    .mobile-menu-button {
        display: grid;
    }

    .topbar {
        height: 68px;
    }
}

@media (max-width: 600px) {
    .topbar {
        gap: 10px;
        padding: 0 15px;
    }

    .topbar-left,
    .topbar-actions {
        gap: 10px;
    }

    .breadcrumb {
        gap: 7px;
        font-size: 10px;
    }

    .search-box {
        width: 37px;
        padding: 0 10px;
        justify-content: center;
        cursor: pointer;
    }

    .search-box input,
    .search-box kbd {
        display: none;
    }

    .search-box.search-open {
        position: absolute;
        left: 60px;
        right: 110px;
        z-index: 5;
        width: auto;
        justify-content: flex-start;
        cursor: text;
    }

    .search-box.search-open input {
        display: block;
    }

    .topbar-divider,
    .topbar-profile>i {
        display: none;
    }

    .dashboard-content {
        padding: 25px 15px 0;
    }

    .welcome-section {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .welcome-section h1 {
        font-size: 26px;
    }

    .welcome-actions {
        width: 100%;
    }

    .welcome-actions button {
        flex: 1;
        padding: 0 9px;
        font-size: 10px;
    }

    .metrics-grid {
        gap: 10px;
    }

    .metric-card {
        min-height: 156px;
        padding: 14px 12px;
    }

    .metric-top {
        flex-wrap: wrap;
        gap: 7px;
    }

    .metric-label {
        font-size: 9px;
    }

    .metric-value {
        margin-top: 16px;
        font-size: 27px;
    }

    .metric-sparkline {
        right: 10px;
        bottom: 12px;
        width: 55px;
        height: 27px;
        gap: 3px;
        opacity: .5;
    }

    .metric-caption {
        font-size: 8px;
    }

    .panel {
        border-radius: 12px;
    }

    .chart-panel,
    .activity-panel,
    .jobs-panel,
    .funnel-panel {
        padding: 15px;
    }

    .panel-header {
        gap: 10px;
    }

    .panel-header h2 {
        font-size: 12px;
    }

    .panel-header p {
        font-size: 9px;
    }

    .select-control {
        max-width: 125px;
        padding: 8px 6px;
        font-size: 9px;
    }

    .chart-container {
        grid-template-columns: 25px minmax(0, 1fr);
        gap: 5px;
    }

    .chart-x-labels {
        font-size: 8px;
    }

    .activity-list {
        display: flex;
        flex-direction: column;
    }

    .activity-item:nth-child(3) {
        border-bottom: 1px solid #292e3e;
    }

    .activity-status {
        display: none;
    }

    .funnel-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .jobs-table {
        min-width: 580px;
    }

    .dashboard-footer {
        flex-direction: column;
        gap: 9px;
        font-size: 8px;
    }

    .footer-right {
        text-align: left;
    }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .custom-modal {
        padding: 19px;
    }

    .toast-message {
        right: 16px;
        bottom: 16px;
        left: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}