@import 'tailwindcss';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

:root {
    --bg-body: #f9fafb;
    --bg-panel: #ffffff;
    --bg-card: #ffffff;
    --bg-sidebar: #f8f9ff;
    --border: #e4e7ec;
    --border-soft: #f2f4f7;
    --text: #0f172a;
    --text-muted: #475467;
    --text-inverse: #f8fafc;
    --accent: #4d49fc;
    --accent-soft: #eff6ff;
    --success: #16a34a;
    --warning: #f7a602;
    --danger: #f04438;
    --surface-muted: #f3f6ff;
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: radial-gradient(circle at top left, #eff6ff 0%, #f9fafb 55%, #ffffff 100%);
    color: var(--text);
    min-height: 100vh;
}

.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid #e4e7ec;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: var(--text);
    overflow: hidden;
    z-index: 100;
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: radial-gradient(circle, #fff 0%, #dfe4ff 65%, #cbd4ff 100%);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #4d49fc;
}

.logo-mark.large {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
}

.sidebar__brand p {
    margin: 0;
    font-weight: 600;
    color: var(--text);
}

.sidebar__brand span {
    color: #667085;
    font-size: 0.85rem;
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-height: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #101828;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.nav-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.nav-link.active,
.nav-link:hover {
    background: #eef2ff;
    color: var(--accent);
}

.sidebar__user {
    margin-top: auto;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #d5dbff;
    background: #eef2ff;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    flex-shrink: 0;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #dfe4ff;
    display: grid;
    place-items: center;
    font-weight: 600;
    color: var(--accent);
}

.avatar.small {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.main {
    flex: 1;
    margin-left: 260px;
    background: var(--bg-body);
    overflow: auto;
    min-height: 100vh;
}

.main__inner {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.page-header h1 {
    margin: 4px 0;
    font-size: 2rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.muted {
    color: var(--text-muted);
    margin: 0;
}

.card-grid {
    display: grid;
    gap: 16px;
}

.four-col {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.five-col {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stat-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.stat-card--metric {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

.stat-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--card-accent-soft, var(--accent-soft));
    color: var(--card-accent, var(--accent));
    display: grid;
    place-items: center;
}

.stat-card__icon svg {
    width: 24px;
    height: 24px;
}

.stat-card__content h3 {
    margin: 4px 0;
    font-size: 1.75rem;
}

.stat-card__content .stat-meta {
    margin: 0;
    color: #667085;
}

.stat-card h3 {
    margin: 4px 0;
    font-size: 1.75rem;
}

.stat-card.compact h3 {
    font-size: 1.5rem;
}

.stat-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.panel {
    background: var(--bg-panel);
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 24px;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.08);
}

.panel--table {
    padding: 8px;
}

.panel--table .panel__body {
    padding: 16px;
}

.panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.panel__header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.panel__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.split-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.stack-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}

.stacked-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: var(--surface-muted);
    border: 1px solid var(--border-soft);
}

.list-row__body {
    flex: 1;
}

.list-row__avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-weight: 600;
}

.list-row__title {
    margin: 0;
    font-weight: 600;
}

.list-row__badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    background: var(--accent-soft);
    color: var(--accent);
}

.list-row__badge.applied {
    background: #eff6ff;
    color: #1d4ed8;
}

.list-row__badge.shortlisted {
    background: #f3e8ff;
    color: #7c3aed;
}

.list-row__badge.interviewed {
    background: #dcfce7;
    color: #16a34a;
}

.list-row__badge.hired {
    background: #fef9c3;
    color: #854d0e;
}

.list-row__actions {
    display: flex;
    gap: 8px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.ghost-btn,
.primary-btn,
.icon-btn {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 10px;
    padding: 10px 14px;
    font: inherit;
    cursor: pointer;
    transition: border 0.2s, background 0.2s;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.08);
}

.ghost-btn.small {
    padding: 6px 10px;
    font-size: 0.85rem;
}

.ghost-btn.danger {
    border-color: rgba(239, 68, 68, 0.5);
    color: #b42318;
    background: #fee4e2;
}

.ghost-btn--icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icon-btn--round {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.icon-btn--round svg {
    width: 16px;
    height: 16px;
}

.icon-btn--danger {
    border-color: rgba(239, 68, 68, 0.4);
    color: #b42318;
    background: #fff;
}

.icon-btn--success {
    border-color: rgba(34, 197, 94, 0.4);
    color: #15803d;
    background: #fff;
}

.icon-btn--ghost {
    border-color: rgba(148, 163, 184, 0.4);
    color: #475467;
}

.primary-btn {
    background: linear-gradient(135deg, #4d49fc, #6366f1);
    border: none;
    font-weight: 600;
    color: #fff;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.toolbar--filters {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 20px 24px;
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.05);
}

.toolbar--jobs .select {
    width: auto;
    min-width: 170px;
}

.toolbar--applications {
    flex-direction: column;
    align-items: stretch;
}

.toolbar--applications .tabs {
    justify-content: flex-start;
}

.toolbar__search {
    flex: 1;
    min-width: 240px;
}

.toolbar__search.full {
    width: 100%;
}

.toolbar__filters {
    display: flex;
    gap: 12px;
}

.select-wrapper {
    position: relative;
    min-width: 170px;
}

.select-wrapper .select {
    padding-right: 42px;
}

.select-wrapper .select-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.input-wrapper {
    position: relative;
    min-width: 170px;
}

.input-wrapper .input {
    padding-right: 42px;
}

.input-wrapper .input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.toolbar__filters .select {
    width: auto;
    min-width: 170px;
    flex: none;
}

.toolbar__actions {
    display: flex;
    gap: 12px;
}

.input,
.select {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 12px 14px;
    color: var(--text);
    font: inherit;
}

.select {
    appearance: none;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table--employees {
    border-collapse: separate;
    border-spacing: 0 12px;
}

.data-table--applications {
    border-collapse: separate;
    border-spacing: 0 12px;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid var(--border-soft);
}

.data-table th {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.data-table--employees thead th {
    border-bottom: none;
    padding-bottom: 8px;
}

.data-table--applications thead th {
    border-bottom: none;
    padding-bottom: 8px;
}

.data-table--employees tbody tr {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
}

.data-table--applications tbody tr {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
}

.data-table--employees tbody tr td {
    border-bottom: none;
    padding: 18px 16px;
}

.data-table--applications tbody tr td {
    border-bottom: none;
    padding: 18px 16px;
    vertical-align: middle;
}

.data-table--employees tbody tr td:first-child {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.data-table--applications tbody tr td:first-child {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.data-table--employees tbody tr td:last-child {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.data-table--applications tbody tr td:last-child {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}
.table-person {
    display: flex;
    gap: 10px;
    align-items: center;
}

.table-actions {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0;
}

.table-actions--stacked {
    justify-content: flex-start;
}

.table-actions--stacked .icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border-color: var(--border);
}

.application-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}


.table-date {
    white-space: nowrap;
    font-weight: 500;
    color: var(--text);
}

.pill {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    background: var(--accent-soft);
    color: var(--accent);
}

.pill--status {
    font-weight: 600;
}

.pill--status.pill--applied {
    background: #eef2ff;
    color: #1d4ed8;
}

.pill--status.pill--shortlisted {
    background: #f3e8ff;
    color: #7c3aed;
}

.pill--status.pill--interviewed {
    background: #d1fae5;
    color: #047857;
}

.pill--status.pill--hired {
    background: #dcfce7;
    color: #166534;
}

.pill.success {
    color: var(--success);
    background: #dcfce7;
}

.pill.warning {
    color: var(--warning);
    background: #fef9c3;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tab {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
}

.tab.active {
    color: var(--text);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.tab__count {
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 6px;
    color: var(--text-muted);
}

.job-card {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.job-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.shift-card {
    padding: 24px;
    border-radius: 26px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.shift-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.shift-card__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.shift-card__meta p {
    margin: 4px 0 0;
}

.shift-card__meta .muted {
    margin: 0;
}

.job-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--accent);
}

.job-status--active {
    background: #dcfce7;
    color: #166534;
}

.job-status--draft {
    background: #fef9c3;
    color: #854d0e;
}

.job-status--closed {
    background: #fee4e2;
    color: #b42318;
}

.job-status--open {
    background: #fef3c7;
    color: #92400e;
}

.job-status--filled {
    background: #dcfce7;
    color: #166534;
}

.job-card__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.job-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.job-card__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.analytics-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.panel.chart-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.chart--bars {
    align-items: flex-end;
}

.chart__column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bar {
    width: 18px;
    border-radius: 8px 8px 2px 2px;
}

.chart--bars .chart__column {
    align-items: flex-end;
    gap: 6px;
}

.chart--bars .bar {
    width: 12px;
}

.bar--primary {
    background: #60a5fa;
}

.bar--secondary {
    background: #34d399;
}

.bar--accent {
    background: #c084fc;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.chart-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.legend-dot--primary {
    background: #60a5fa;
}

.legend-dot--secondary {
    background: #34d399;
}

.legend-dot--accent {
    background: #c084fc;
}

.chart--line {
    position: relative;
    height: 220px;
}

.line-point {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    position: relative;
}

.line-point::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 2px;
    height: 120px;
    background: linear-gradient(180deg, var(--accent), transparent);
    transform: translateX(-50%);
}

.donut {
    display: grid;
    gap: 12px;
}

.distribution-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.distribution-item__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: var(--border-soft);
    overflow: hidden;
}

.progress__bar {
    height: 100%;
    background: var(--accent);
    border-radius: inherit;
}

.stat-pill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.stat-pill {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    align-items: end;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.field.full {
    grid-column: span 2;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    grid-column: 1 / -1;
}

body.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal.is-visible {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}

.modal__content {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    width: min(560px, calc(100% - 32px));
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.12);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.modal__header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.2s;
}

.modal__close:hover {
    background: var(--border-soft);
    color: var(--text);
}

.modal__body {
    padding-top: 0;
}

.branding {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.logo-upload {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.admin-user-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.permission-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.permission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #4d49fc;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.client-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.client-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.client-card__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}
