/**
 * Worktab — staff management UI theme (Bootstrap 5 extension layer)
 */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
    --wt-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --wt-body: #f1f5f9;
    --wt-surface: #ffffff;
    --wt-border: #e2e8f0;
    --wt-muted: #64748b;
    --wt-admin-sidebar: #0f172a;
    --wt-admin-accent: #3b82f6;
    --wt-admin-accent-dim: rgba(59, 130, 246, 0.15);
    --wt-staff-sidebar: #134e4a;
    --wt-staff-accent: #2dd4bf;
    --wt-staff-accent-dim: rgba(45, 212, 191, 0.15);
    --wt-radius: 0.5rem;
    --wt-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    --wt-shadow-lg: 0 10px 40px -10px rgba(15, 23, 42, 0.12);
}

html {
    scroll-behavior: smooth;
}

body.wt-panel,
body.wt-auth {
    font-family: var(--wt-font);
    background: var(--wt-body);
    color: #0f172a;
}

/* ----- App shell ----- */
.wt-app {
    min-height: 100vh;
}

.wt-sidebar {
    width: 17.5rem;
    min-height: 100vh;
    flex-shrink: 0;
    padding: 1.25rem 0.875rem;
    color: rgba(255, 255, 255, 0.92);
}

.wt-panel--admin .wt-sidebar {
    background: linear-gradient(165deg, var(--wt-admin-sidebar) 0%, #1e293b 100%);
}

.wt-panel--staff .wt-sidebar {
    background: linear-gradient(165deg, var(--wt-staff-sidebar) 0%, #0f766e 100%);
}

.wt-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0.5rem 1.25rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wt-brand-logo {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.08);
}

.wt-brand-mark {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.12);
}

.wt-panel--admin .wt-brand-mark {
    color: #93c5fd;
}

.wt-panel--staff .wt-brand-mark {
    color: #99f6e4;
}

.wt-brand-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.25;
    word-break: break-word;
}

.wt-brand-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.65;
    margin-top: 0.15rem;
}

.wt-sidebar-nav {
    gap: 0.15rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding-right: 0.25rem;
}

.wt-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--wt-radius);
    color: rgba(255, 255, 255, 0.82) !important;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wt-nav-link i {
    font-size: 1.1rem;
    opacity: 0.9;
}

.wt-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

.wt-panel--admin .wt-nav-link.active {
    background: var(--wt-admin-accent-dim);
    border-color: rgba(59, 130, 246, 0.35);
    color: #fff !important;
}

.wt-panel--staff .wt-nav-link.active {
    background: var(--wt-staff-accent-dim);
    border-color: rgba(45, 212, 191, 0.35);
    color: #fff !important;
}

.wt-sidebar-footer {
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wt-sidebar-footer .btn {
    width: 100%;
}

.wt-offcanvas.wt-offcanvas {
    width: min(20rem, 92vw);
}

.wt-panel--admin .wt-offcanvas.text-bg-dark,
.wt-panel--admin .offcanvas.wt-offcanvas {
    background: linear-gradient(165deg, var(--wt-admin-sidebar) 0%, #1e293b 100%) !important;
    color: #fff;
}

.wt-panel--staff .wt-offcanvas.text-bg-dark,
.wt-panel--staff .offcanvas.wt-offcanvas {
    background: linear-gradient(165deg, var(--wt-staff-sidebar) 0%, #0f766e 100%) !important;
    color: #fff;
}

.wt-main {
    background: var(--wt-body);
    min-width: 0;
}

.wt-mobile-bar {
    background: var(--wt-surface);
    border-bottom: 1px solid var(--wt-border);
    min-height: 3.25rem;
    box-shadow: var(--wt-shadow);
}

.wt-mobile-bar .btn-link {
    text-decoration: none;
    padding: 0.25rem 0.5rem;
}

.wt-content {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* ----- Cards & stats ----- */
.wt-card {
    background: var(--wt-surface);
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-radius);
    box-shadow: var(--wt-shadow);
}

.wt-stat-card {
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-radius);
    background: var(--wt-surface);
    padding: 1.15rem 1.25rem;
    box-shadow: var(--wt-shadow);
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wt-stat-card:hover {
    box-shadow: var(--wt-shadow-lg);
    transform: translateY(-1px);
}

.wt-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--wt-muted);
    margin-bottom: 0.35rem;
}

.wt-stat-value {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
}

.wt-page-head h1 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ----- Clock widget (staff) ----- */
.wt-clock-card {
    border-radius: var(--wt-radius);
    border: 1px solid var(--wt-border);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.5rem;
    box-shadow: var(--wt-shadow);
}

.wt-panel--staff .wt-clock-card .btn-success {
    min-width: 8rem;
}

.wt-panel--staff .wt-clock-card .btn-danger {
    min-width: 8rem;
}

/* ----- Tables ----- */
.wt-table-wrap {
    border-radius: var(--wt-radius);
    border: 1px solid var(--wt-border);
    overflow: hidden;
    background: var(--wt-surface);
}

.wt-table-wrap .table {
    margin-bottom: 0;
}

.wt-table-wrap .table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--wt-muted);
    font-weight: 600;
    border-bottom-width: 1px;
    background: #f8fafc;
}

/* ----- Empty state ----- */
.wt-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px dashed var(--wt-border);
    border-radius: var(--wt-radius);
    background: #f8fafc;
    color: var(--wt-muted);
}

.wt-empty-icon {
    font-size: 2.5rem;
    opacity: 0.35;
    margin-bottom: 0.75rem;
}

/* ----- Auth ----- */
body.wt-auth {
    min-height: 100vh;
}

.wt-auth-hero {
    position: relative;
    background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 45%, #0c4a6e 100%);
    color: #fff;
    padding: 3rem;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.wt-auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.9;
    pointer-events: none;
}

.wt-auth-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 26rem;
}

.wt-auth-hero .wt-brand-mark {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.wt-live-clock {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.wt-auth-hero h2 {
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.wt-auth-hero p {
    opacity: 0.85;
    font-size: 0.95rem;
    line-height: 1.6;
}

.wt-auth-card {
    border: none;
    border-radius: var(--wt-radius);
    box-shadow: var(--wt-shadow-lg);
}

.wt-auth-logo {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    border-radius: 0.4rem;
}

@media (max-width: 991.98px) {
    .wt-sidebar {
        display: none !important;
    }
}
