/* =============================================================
   LUMINA Beauty Studio - Admin Dashboard & CMS Styles
   Designed for GreitasWeb.lt Business Systems
   ============================================================= */

:root {
    --admin-bg: #F8F9FA;
    --admin-card: #FFFFFF;
    --admin-sidebar: #1E1B18;
    --admin-sidebar-text: #E5E7EB;
    --admin-sidebar-hover: rgba(255, 255, 255, 0.08);
    --admin-text-main: #111827;
    --admin-text-muted: #6B7280;
    --admin-border: #E5E7EB;
    --accent-gold: #B89260;
    --accent-gold-light: #FBF7F0;
    --accent-gold-hover: #9E7949;
    --status-new: #D97706;
    --status-new-bg: #FEF3C7;
    --status-confirmed: #059669;
    --status-confirmed-bg: #D1FAE5;
    --status-completed: #2563EB;
    --status-completed-bg: #DBEAFE;
    --status-canceled: #DC2626;
    --status-canceled-bg: #FEE2E2;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --shadow-dropdown: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: var(--font-sans);
    background-color: var(--admin-bg);
    color: var(--admin-text-main);
    line-height: 1.5;
    overflow-x: hidden;
    max-width: 100%;
}

/* 1. Top Demo Navigation Bar */
.admin-top-bar {
    background-color: #0F172A;
    color: #F8FAFC;
    padding: 0.45rem 1.25rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.badge-demo {
    background-color: rgba(184, 146, 96, 0.25);
    color: #FDE68A;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
}

.top-bar-title strong {
    color: #fff;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.btn-top-link {
    color: #CBD5E1;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.08);
}

.btn-top-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.btn-top-order {
    background-color: #fff;
    color: #0F172A;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-top-order:hover {
    background-color: #E2E8F0;
}

/* 2. Admin Layout */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 38px);
}

/* 3. Sidebar */
.admin-sidebar {
    width: 250px;
    background-color: var(--admin-sidebar);
    color: var(--admin-sidebar-text);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
    z-index: 999;
}

.sidebar-brand {
    padding: 1.5rem 1.25rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.brand-logo .logo-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #fff;
    line-height: 1;
}

.brand-logo .logo-subtitle {
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    font-weight: 600;
    margin-top: 3px;
}

.sidebar-nav {
    padding: 1.25rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-grow: 1;
}

.nav-group-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6B7280;
    padding: 0.85rem 0.65rem 0.35rem 0.65rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    color: #9CA3AF;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
}

.nav-item svg {
    color: #9CA3AF;
    transition: color 0.2s;
}

.nav-item:hover {
    background-color: var(--admin-sidebar-hover);
    color: #F3F4F6;
}

.nav-item:hover svg {
    color: #F3F4F6;
}

.nav-item.active {
    background-color: var(--accent-gold);
    color: #fff;
    font-weight: 600;
}

.nav-item.active svg {
    color: #fff;
}

.nav-counter {
    margin-left: auto;
    background-color: var(--status-new);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 12px;
}

.sidebar-footer {
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.user-role {
    font-size: 0.72rem;
    color: #9CA3AF;
}

.system-tag {
    font-size: 0.65rem;
    color: #6B7280;
    text-align: center;
}

/* 4. Main Content */
.admin-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-y: auto;
}

.main-header {
    background-color: #fff;
    border-bottom: 1px solid var(--admin-border);
    padding: 1rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background-color: var(--admin-text-main);
}

.page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--admin-text-main);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--admin-bg);
    border: 1px solid var(--admin-border);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    width: 280px;
}

.search-box svg {
    color: var(--admin-text-muted);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.85rem;
    color: var(--admin-text-main);
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-family: var(--font-sans);
    font-weight: 600;
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--admin-sidebar);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-gold);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--admin-border);
    color: var(--admin-text-main);
}

.btn-outline:hover {
    border-color: var(--admin-text-main);
    background-color: #F3F4F6;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
}

/* View Panels */
.view-panel {
    display: none;
    padding: 1.75rem;
}

.view-panel.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 5. KPI Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.stat-card {
    background-color: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.stat-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--admin-text-muted);
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-gold { background: #FEF3C7; color: #B45309; }
.icon-green { background: #D1FAE5; color: #047857; }
.icon-orange { background: #FFEDD5; color: #C2410C; }
.icon-blue { background: #DBEAFE; color: #1D4ED8; }

.stat-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--admin-text-main);
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.stat-change {
    font-size: 0.75rem;
}

.stat-change.positive { color: #059669; font-weight: 600; }
.stat-change.neutral { color: var(--admin-text-muted); }

/* 6. Dashboard Grid */
.overview-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
}

.dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-panel {
    background-color: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.panel-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--admin-text-main);
}

.panel-subtitle {
    font-size: 0.8rem;
    color: var(--admin-text-muted);
    margin-top: 2px;
}

/* Timeline */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-sm);
    background-color: var(--admin-bg);
    border: 1px solid var(--admin-border);
    transition: all 0.2s ease;
}

.timeline-item:hover {
    border-color: #D1D5DB;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.timeline-time-box {
    display: flex;
    flex-direction: column;
    width: 65px;
    flex-shrink: 0;
}

.timeline-time {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--admin-text-main);
}

.timeline-duration {
    font-size: 0.72rem;
    color: var(--admin-text-muted);
}

.timeline-details {
    flex-grow: 1;
    padding: 0 1rem;
}

.timeline-client {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--admin-text-main);
}

.timeline-service {
    font-size: 0.8rem;
    color: var(--admin-text-muted);
}

.timeline-master {
    font-size: 0.72rem;
    color: var(--accent-gold);
    font-weight: 600;
}

.timeline-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.quick-action-btn {
    background-color: var(--admin-bg);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    border-color: var(--accent-gold);
    background-color: #fff;
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
}

.qa-icon {
    font-size: 1.4rem;
}

.qa-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--admin-text-main);
    line-height: 1.3;
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.act-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.act-bullet.green { background-color: #059669; }
.act-bullet.gold { background-color: var(--accent-gold); }
.act-bullet.blue { background-color: #2563EB; }

.act-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--admin-text-main);
}

.act-meta {
    font-size: 0.75rem;
    color: var(--admin-text-muted);
}

/* 7. Tables & Controls */
.toolbar-section {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--admin-border);
}

.toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.85rem;
    flex: 1;
    min-width: 250px;
    max-width: 380px;
}

.filter-search-box.full-width {
    max-width: 100%;
}

.filter-search-box svg {
    color: #9CA3AF;
    flex-shrink: 0;
}

.filter-search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.85rem;
    color: var(--admin-text-main);
    width: 100%;
}

.filter-select-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.header-action-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.client-summary-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-gold);
    background: rgba(184, 146, 96, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(184, 146, 96, 0.25);
    white-space: nowrap;
}

.table-controls {
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.filter-tabs {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--admin-border);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--admin-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--admin-text-main);
    color: var(--admin-text-main);
}

.filter-btn.active {
    background-color: var(--admin-text-main);
    border-color: var(--admin-text-main);
    color: #fff;
    font-weight: 600;
}

.select-input {
    border: 1px solid var(--admin-border);
    background-color: #fff;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--admin-text-main);
    outline: none;
    cursor: pointer;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.data-table th {
    background-color: var(--admin-bg);
    color: var(--admin-text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--admin-border);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--admin-border);
    vertical-align: middle;
}

.data-table tr:hover td {
    background-color: #F9FAFB;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.status-badge.nauja {
    background-color: var(--status-new-bg);
    color: var(--status-new);
    border: 1px solid rgba(217, 119, 6, 0.25);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(217, 119, 6, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

.status-badge.patvirtinta {
    background-color: var(--status-confirmed-bg);
    color: var(--status-confirmed);
}

.status-badge.įvykdyta {
    background-color: var(--status-completed-bg);
    color: var(--status-completed);
}

.status-badge.atšaukta {
    background-color: var(--status-canceled-bg);
    color: var(--status-canceled);
}

/* Table Actions */
.th-actions {
    text-align: right;
    min-width: 140px;
}

.text-right {
    text-align: right !important;
}

.text-danger {
    color: #DC2626 !important;
}

.action-btn-group {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.data-table td.text-right .action-btn-group,
.data-table td .action-btn-group {
    justify-content: flex-end;
}

.btn-action-icon {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--admin-border);
    background: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--admin-text-main);
    transition: all 0.2s;
}

.btn-action-icon.btn-confirm:hover {
    background-color: #D1FAE5;
    border-color: #059669;
    color: #059669;
}

.btn-action-icon.btn-cancel:hover {
    background-color: #FEE2E2;
    border-color: #DC2626;
    color: #DC2626;
}

.btn-action-icon.btn-edit:hover {
    background-color: #EFF6FF;
    border-color: #2563EB;
    color: #2563EB;
}

.btn-action-icon.btn-delete:hover {
    background-color: #FEE2E2;
    border-color: #DC2626;
    color: #DC2626;
}

.btn-danger {
    background-color: #DC2626;
    color: #fff;
    border: 1px solid #DC2626;
}

.btn-danger:hover {
    background-color: #B91C1C;
    border-color: #B91C1C;
    color: #fff;
}

/* Service Pricing Inputs */
.service-price-input {
    width: 75px;
    padding: 0.35rem 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid var(--admin-border);
    border-radius: 4px;
    text-align: right;
}

.service-duration-input {
    width: 65px;
    padding: 0.35rem 0.5rem;
    font-size: 0.88rem;
    border: 1px solid var(--admin-border);
    border-radius: 4px;
    text-align: center;
}

/* Settings Form */
.settings-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-row label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--admin-text-main);
}

.input-field {
    border: 1px solid var(--admin-border);
    background-color: #fff;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--admin-text-main);
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.input-field:focus {
    border-color: var(--accent-gold);
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--admin-border);
}

.toggle-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--admin-text-main);
}

.toggle-desc {
    font-size: 0.78rem;
    color: var(--admin-text-muted);
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

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

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

input:checked + .slider {
    background-color: var(--accent-gold);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* 8. Modals */
.admin-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.65);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.admin-modal-backdrop.open {
    display: flex;
}

.admin-modal-card {
    background-color: #fff;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.75rem;
    box-shadow: var(--shadow-dropdown);
    animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-modal-card.modal-card-sm {
    max-width: 440px;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.modal-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--admin-text-main);
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--admin-text-muted);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

/* 8.5. Interactive Date & Time Slot Controls */
.date-picker-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.date-input {
    flex: 1;
    min-width: 170px;
}

.quick-date-pills {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-pill {
    background: #F3F4F6;
    border: 1px solid var(--admin-border);
    padding: 0.35rem 0.65rem;
    border-radius: 16px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--admin-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-pill:hover,
.btn-pill.active {
    background: var(--admin-text-main);
    color: #fff;
    border-color: var(--admin-text-main);
}

.date-human-display {
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-top: 0.35rem;
}

.slot-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.slot-legend {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--admin-text-muted);
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.25rem;
}

.legend-dot.free { background-color: #059669; }
.legend-dot.busy { background-color: #DC2626; }

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.time-slot-chip {
    padding: 0.5rem 0.35rem;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--admin-border);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.time-slot-chip .slot-time {
    font-size: 0.88rem;
    font-weight: 700;
}

.time-slot-chip .slot-tag {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Free Slot */
.time-slot-chip.free {
    border-color: #A7F3D0;
    background-color: #F0FDF4;
    color: #065F46;
}

.time-slot-chip.free:hover {
    border-color: #059669;
    background-color: #D1FAE5;
    transform: translateY(-1px);
}

.time-slot-chip.free.selected {
    background-color: #059669;
    border-color: #059669;
    color: #fff;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.time-slot-chip.free.selected .slot-tag {
    color: #A7F3D0;
}

/* Busy / Occupied Slot */
.time-slot-chip.busy {
    border-color: #FECACA;
    background-color: #FEF2F2;
    color: #991B1B;
    opacity: 0.75;
}

.time-slot-chip.busy:hover {
    opacity: 1;
    border-color: #DC2626;
}

.time-slot-chip.busy.selected {
    background-color: #DC2626;
    border-color: #DC2626;
    color: #fff;
}

.time-slot-chip.busy.selected .slot-tag {
    color: #FEE2E2;
}

/* Slot status banner */
.slot-status-notice {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    display: none;
}

.slot-status-notice.available {
    display: block;
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.slot-status-notice.conflict {
    display: block;
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.conflict-override-box {
    margin-top: 0.5rem;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #92400E;
    cursor: pointer;
}

/* 8.6. Timetable & Master Schedule View */
.schedule-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--admin-border);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.schedule-date-nav {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.date-picker-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sched-date-input {
    width: 155px;
    padding: 0.45rem 0.65rem;
}

.sched-date-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--admin-text-main);
    white-space: nowrap;
}

.schedule-stats-summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.sched-stat-pill {
    background: #F9FAFB;
    border: 1px solid var(--admin-border);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
}

.sched-stat-label {
    color: var(--admin-text-muted);
}

.sched-stat-val {
    font-weight: 700;
}

.text-green { color: #059669 !important; }
.text-orange { color: #D97706 !important; }

.timetable-legend-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F9FAFB;
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.legend-items {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.legend-chip {
    font-size: 0.78rem;
    font-weight: 600;
}

.legend-chip.free { color: #059669; }
.legend-chip.busy { color: #DC2626; }
.legend-chip.pause { color: #6B7280; }

.legend-hint {
    font-size: 0.75rem;
    color: var(--admin-text-muted);
    font-style: italic;
}

.timetable-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.master-column {
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.master-col-header {
    background: #FAF7F2;
    border-bottom: 1px solid var(--admin-border);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.master-col-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--admin-text-main);
}

.master-col-role {
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 600;
}

.master-status-badge {
    border: 1px solid var(--admin-border);
    background: #fff;
    border-radius: 12px;
    padding: 0.25rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.master-status-badge.active {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: #065F46;
}

.master-status-badge.off {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #991B1B;
}

.master-slots-list {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex-grow: 1;
}

/* Individual Slot Card in Master Schedule */
.sched-slot-card {
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
}

.sched-slot-card.free {
    background: #FAFBFB;
    border: 1px dashed #D1D5DB;
}

.sched-slot-card.free:hover {
    border-color: #059669;
    background: #F0FDF4;
}

.sched-slot-card.free .sched-slot-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sched-slot-card.free .btn-slot-book {
    background: transparent;
    border: 1px solid #059669;
    color: #059669;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sched-slot-card.free:hover .btn-slot-book {
    background: #059669;
    color: #fff;
}

/* Busy Slot Card */
.sched-slot-card.busy {
    background: #FFF;
    border: 1px solid #E5E7EB;
    border-left: 4px solid var(--accent-gold);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sched-slot-card.busy.status-nauja {
    border-left-color: #D97706;
}

.sched-slot-card.busy.status-įvykdyta {
    border-left-color: #6B7280;
    opacity: 0.8;
}

.sched-slot-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sched-slot-time {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--admin-text-main);
}

.sched-client-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--admin-text-main);
}

.sched-service-info {
    font-size: 0.78rem;
    color: var(--admin-text-muted);
}

.sched-slot-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    border-top: 1px dashed #F3F4F6;
}

.sched-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.sched-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Pause Slot Card */
.sched-slot-card.pause {
    background: #F3F4F6;
    border: 1px dashed #9CA3AF;
    color: #4B5563;
}

/* 9. Toast */
.admin-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #1E1B18;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-dropdown);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.88rem;
    font-weight: 500;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3000;
    border-left: 4px solid var(--accent-gold);
}

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

.toast-icon {
    color: var(--accent-gold);
    font-weight: 700;
}

/* 10. Responsive */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .timetable-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .schedule-header-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .schedule-date-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .date-picker-wrapper {
        width: 100%;
        justify-content: space-between;
    }

    .sched-date-input {
        flex: 1;
    }

    .schedule-stats-summary {
        justify-content: space-between;
    }
    .admin-sidebar {
        position: fixed;
        top: 38px;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        box-shadow: var(--shadow-dropdown);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .search-box {
        display: none;
    }

    .view-panel {
        padding: 1rem 0.75rem;
    }

    .dashboard-panel {
        padding: 1rem 0.85rem;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .panel-header button {
        align-self: flex-start;
    }

    .timeline-item {
        flex-wrap: wrap;
        gap: 0.65rem;
        padding: 0.85rem;
    }

    .timeline-time-box {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px dashed var(--admin-border);
        padding-bottom: 0.35rem;
    }

    .timeline-details {
        padding: 0;
        width: 100%;
    }

    .timeline-actions {
        width: 100%;
        justify-content: space-between;
        border-top: 1px dashed var(--admin-border);
        padding-top: 0.5rem;
    }

    .overview-grid {
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .top-bar-title {
        display: none;
    }

    .btn-top-order {
        display: none;
    }

    .admin-top-bar {
        padding: 0.35rem 0.65rem;
    }

    .main-header {
        padding: 0.75rem 0.85rem;
        gap: 0.5rem;
    }

    .header-left {
        min-width: 0;
        flex: 1;
    }

    .page-title {
        font-size: 1.05rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .header-actions #btn-create-booking span {
        display: none;
    }

    .header-actions #btn-create-booking {
        padding: 0.45rem 0.65rem;
    }

    .filter-search-box {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .toolbar-row,
    .filter-controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .filter-select-group {
        width: 100%;
    }

    .filter-select-group .select-input {
        flex: 1;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}
