/* Tempora Design System - Premium Desktop & Mobile CSS */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Dark Theme Design Tokens (Default) */
    --bg-app: #080c14;
    --bg-card: #111827;
    --bg-card-hover: #1f2937;
    --border-color: #1f2937;
    --border-light: #374151;

    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --primary: #6366f1;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --primary-light: rgba(99, 102, 241, 0.15);

    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.15);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.15);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.15);
    --info: #3b82f6;
    --info-light: rgba(59, 130, 246, 0.15);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    --nav-height: 72px;
    --sidebar-width: 240px;
}

body.light-theme {
    /* Light Theme Design Tokens */
    --bg-app: #f3f4f6;
    --bg-card: #ffffff;
    --bg-card-hover: #f9fafb;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;

    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;

    --primary-light: rgba(99, 102, 241, 0.08);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-app);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding-bottom: calc(var(--nav-height) + 20px);
    transition: background-color 0.3s, color 0.3s;
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Button & Interactive styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:active {
    background-color: var(--bg-card-hover);
    transform: scale(0.96);
}

.btn-icon {
    padding: 10px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-icon:active {
    background-color: var(--bg-card-hover);
    transform: scale(0.92);
}

.btn-icon.btn-round {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-app);
    border: 1px solid transparent;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.btn-icon.btn-round:hover {
    background-color: var(--bg-card-hover);
}

/* Inputs & Form Elements */
.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    font-family: var(--font-primary);
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, background-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
}

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

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Bottom Navigation Bar (Mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(18, 24, 36, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 10px;
    transition: background-color 0.3s;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.bottom-nav::-webkit-scrollbar {
    display: none;
}

body.light-theme .bottom-nav {
    background: rgba(255, 255, 255, 0.85);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 64px;
    flex-shrink: 0;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 0.2s;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active svg {
    transform: translateY(-2px);
}

/* Hide Desktop-only Sidebar Elements on Mobile */
.sidebar-brand,
.sidebar-user-info {
    display: none;
}

/* Main Container */
.container {
    padding: 16px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

/* Cards & Layout Items */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s, border-color 0.3s;
}

/* Scheduler & Timeline styles */
.date-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    margin-bottom: 16px;
}

.date-display {
    font-weight: 700;
    font-size: 15px;
    text-align: center;
}

.date-sub {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

/* Board columns switcher for mobile view */
.resource-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 16px;
    scrollbar-width: none;
}

.resource-tabs::-webkit-scrollbar {
    display: none;
}

.resource-tab {
    padding: 8px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
}

.resource-tab.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

/* Grid Layout for Columns */
.scheduler-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.position-column {
    display: none;
    /* Mobile hides by default */
}

.position-column.active {
    display: block;
    /* Show active mobile position */
}

.position-header {
    font-size: 14px;
    font-weight: 700;
    padding: 10px 14px;
    background-color: var(--bg-card-hover);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.timeline {
    position: relative;
    padding-left: 55px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 45px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

.time-slot {
    position: relative;
    min-height: 80px;
    margin-bottom: 8px;
}

.time-marker {
    position: absolute;
    left: -55px;
    top: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    width: 40px;
    text-align: right;
}

/* Appointment block styling */
.appt-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s, background-color 0.15s;
    cursor: pointer;
}

.appt-card:active {
    transform: scale(0.98);
    background-color: var(--bg-card-hover);
}

.appt-card.status-attended {
    border-left-color: var(--success);
}

.appt-card.status-no-show {
    border-left-color: var(--danger);
}

.appt-card.status-cancelled {
    border-left-color: var(--text-muted);
    opacity: 0.5;
}

.appt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.appt-client {
    font-weight: 700;
    font-size: 14px;
}

.appt-duration {
    font-size: 11px;
    color: var(--text-muted);
}

.appt-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.appt-notes {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--border-color);
}

.badge {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-scheduled {
    background-color: var(--primary-light);
    color: #818cf8;
}

.badge-attended {
    background-color: var(--success-light);
    color: #34d399;
}

.badge-no-show {
    background-color: var(--danger-light);
    color: #f87171;
}

.badge-cancelled {
    background-color: var(--border-light);
    color: var(--text-muted);
}

/* Bottom slide-up drawer */
.drawer-backdrop {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-light);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    padding: 24px;
    z-index: 2001;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.drawer.open {
    transform: translateY(0);
}

.drawer-backdrop.open {
    display: block;
    opacity: 1;
}

.drawer-handle {
    width: 40px;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    margin: -12px auto 16px auto;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.drawer-title {
    font-size: 18px;
    font-weight: 700;
}

.close-drawer {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

/* Client Profile / Karton styles */
.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-box {
    background-color: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

/* Alert notifications on top */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
}

.alert-success {
    background-color: var(--success-light);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-danger {
    background-color: var(--danger-light);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

/* Login screen styles */
.login-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 90vh;
    padding: 20px;
}

.login-logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo-text {
    font-size: 32px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

/* Search Results dropdown/list */
.search-results {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
}

.search-item {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    background-color: var(--bg-card);
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:active {
    background-color: var(--bg-card-hover);
}

/* SVG Chart styling */
.chart-container {
    background-color: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

.chart-grid {
    stroke: var(--border-color);
    stroke-width: 1;
    stroke-dasharray: 4, 4;
}

.chart-line-sms {
    stroke: var(--warning);
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
}

.chart-line-email {
    stroke: var(--info);
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
}

.chart-axis-text {
    fill: var(--text-muted);
    font-size: 9px;
    font-weight: 600;
}

.chart-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 600;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* -------------------------------------------------------------
   DESKTOP MEDIA QUERIES (WIDTH >= 768px)
   ------------------------------------------------------------- */
@media (min-width: 768px) {
    body {
        padding-left: var(--sidebar-width);
        padding-bottom: 20px;
    }

    .container {
        max-width: 1100px;
        padding: 30px;
    }

    /* Transform Bottom Menu into Left Sidebar */
    .bottom-nav {
        left: 0;
        right: auto;
        top: 0;
        bottom: 0;
        width: var(--sidebar-width);
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 40px 14px;
        border-top: none;
        border-right: 1px solid var(--border-color);
        gap: 10px;
    }

    .nav-item {
        flex: none;
        height: 48px;
        flex-direction: row;
        justify-content: flex-start;
        padding: 0 16px;
        gap: 12px;
        border-radius: var(--radius-sm);
        font-size: 14px;
        color: var(--text-secondary);
    }

    .nav-item svg {
        width: 20px;
        height: 20px;
    }

    .nav-item.active {
        background-color: var(--primary-light);
        color: var(--primary);
    }

    .nav-item.active svg {
        transform: none;
    }

    /* Calendar Grid Side-by-Side on Desktop */
    .resource-tabs {
        display: none;
        /* Hide tab switcher since all columns are visible */
    }

    .scheduler-grid {
        flex-direction: row;
        align-items: flex-start;
        overflow-x: auto;
        gap: 20px;
        background-color: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 20px;
    }

    .position-column {
        flex: 1;
        min-width: 250px;
        display: block !important;
        /* Force show all columns on desktop */
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 12px;
        background-color: var(--bg-app);
    }

    .position-header {
        background-color: var(--bg-card);
        text-align: center;
        font-size: 15px;
        margin-bottom: 16px;
    }

    .timeline {
        padding-left: 45px;
    }

    .timeline::before {
        left: 35px;
    }

    .time-marker {
        left: -45px;
        width: 32px;
        font-size: 11px;
    }

    /* Double column grid layouts for panels */
    .desktop-two-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .sidebar-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0 16px 24px 16px;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 24px;
    }

    .sidebar-brand-icon {
        background: var(--primary-gradient);
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
        flex-shrink: 0;
    }

    .sidebar-brand-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }

    .sidebar-brand-name {
        font-size: 18px;
        font-weight: 800;
        color: var(--text-primary);
        letter-spacing: -0.02em;
        line-height: 1.1;
    }

    .sidebar-brand-tagline {
        font-size: 9px;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-top: 4px;
        line-height: 1.3;
        white-space: normal;
    }

    .sidebar-user-info {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 12px 16px;
        margin: 0 12px 24px 12px;
        background-color: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        gap: 12px;
        box-shadow: var(--shadow-sm);
        transition: background-color 0.2s, transform 0.2s;
        cursor: pointer;
    }

    .sidebar-user-info:hover {
        background-color: var(--bg-card-hover);
        transform: translateY(-1px);
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: var(--primary-light);
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 16px;
        flex-shrink: 0;
    }

    .user-details {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .sidebar-user-info .user-name {
        font-size: 14px;
        font-weight: 700;
        color: var(--text-primary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sidebar-user-info .user-role {
        font-size: 10px;
        color: var(--primary);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-top: 2px;
    }
}

/* -------------------------------------------------------------
   LARAVEL PAGINATION VANILLA OVERRIDES
   ------------------------------------------------------------- */
nav[role="navigation"] {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 16px !important;
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    margin-top: 16px !important;
    width: 100% !important;
}

nav[role="navigation"]>div.sm\:hidden {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

nav[role="navigation"]>div:not(.sm\:hidden) {
    display: none !important;
}

@media (min-width: 768px) {
    nav[role="navigation"]>div.sm\:hidden {
        display: none !important;
    }

    nav[role="navigation"]>div:not(.sm\:hidden) {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
}

nav[role="navigation"] svg {
    width: 16px !important;
    height: 16px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Reset outer styling of container and wrappers */
nav[role="navigation"] span.shadow-sm,
nav[role="navigation"] span[aria-disabled="true"],
nav[role="navigation"] span[aria-current="page"] {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    height: auto !important;
    box-shadow: none !important;
    display: inline-flex !important;
}

/* Style only the actual buttons */
nav[role="navigation"] a,
nav[role="navigation"] span[aria-disabled="true"] span,
nav[role="navigation"] span[aria-current="page"] span,
nav[role="navigation"] div.sm\:hidden>span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border-color) !important;
    background-color: var(--bg-app) !important;
    background-image: none !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    margin: 0 2px !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

nav[role="navigation"] a:hover {
    border-color: var(--primary) !important;
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
}

nav[role="navigation"] span[aria-current="page"] span {
    background: var(--primary-gradient) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2) !important;
}

nav[role="navigation"] span[aria-disabled="true"] span,
nav[role="navigation"] div.sm\:hidden>span {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background-color: var(--bg-card) !important;
    color: var(--text-muted) !important;
}





/* ==========================================================================
   Centralized View Styles (Centralizovani stilovi za ekrane i layout)
   ========================================================================== */

/* Login page brand and demo accounts styling */
.brand-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.brand-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    margin-bottom: 16px;
    animation: pulse-glow 3s infinite ease-in-out;
}

.brand-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.brand-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.login-card {
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--border-light) !important;
    overflow: hidden;
}

.demo-info-box {
    margin-top: 24px;
    padding: 16px;
    border-radius: var(--radius-md);
    background-color: var(--bg-card-hover);
    border: 1px dashed var(--border-color);
    font-size: 12px;
}

.demo-credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.demo-role-badge {
    padding: 6px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.demo-role-badge:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 12px 30px rgba(99, 102, 241, 0.5);
    }
}

/* Superadmin panels and tables */
.table-container {
    width: 100%;
    overflow-x: auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.admin-table th {
    background-color: var(--bg-card-hover);
    color: var(--text-secondary);
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.05em;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.setting-section-title {
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
    margin: 20px 0 12px 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Desktop Sidebar conditional layouts */
@media (min-width: 768px) {
    .sidebar-submenu-title {
        display: block !important;
    }

    .sidebar-location-link {
        display: flex !important;
    }

    .hide-on-desktop {
        display: none !important;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    gap: 4px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-item .page-link {
    position: relative;
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background: var(--primary-gradient);
    border-color: transparent;
}

.page-item.disabled .page-link {
    color: var(--text-muted);
    pointer-events: none;
    background-color: transparent;
    border-color: var(--border-color);
}

.page-link:hover {
    background-color: var(--bg-card-hover);
    color: var(--primary);
}