/* ==========================================
   TwójSalon - Nowoczesny styl Beauty 2026
   Kolorystyka: GabinetOnline-inspired
   ========================================== */

/* ---- Google Fonts ładowane w admin.header.php: Nunito + Lora ---- */

/* ---- CSS Variables / Palette ---- */
:root {
    /* Primary - elegancki róż/fiolet jak GabinetOnline */
    --color-primary:       #6c3fc5;   /* fiolet główny */
    --color-primary-dark:  #4e2d9b;
    --color-primary-light: #9b72e8;
    --color-primary-xlight:#f0ebff;

    /* Akcent */
    --color-accent:        #e84393;   /* różowy akcent */
    --color-accent-light:  #fce4f0;

    /* Neutralne */
    --color-bg:            #f7f5fc;   /* tło strony */
    --color-bg-card:       #ffffff;
    --color-sidebar-bg:    #1a1035;   /* ciemny sidebar */
    --color-sidebar-text:  #c9c1e8;
    --color-sidebar-active:#ffffff;
    --color-sidebar-accent:#6c3fc5;

    --color-text:          #2d2245;
    --color-text-muted:    #8a8098;
    --color-border:        #e8e2f5;

    /* Statusy */
    --color-success:       #22c55e;
    --color-warning:       #f59e0b;
    --color-danger:        #ef4444;
    --color-info:          #3b82f6;

    /* Gradient header */
    --gradient-header: linear-gradient(135deg, #6c3fc5 0%, #e84393 100%);
    --gradient-card:   linear-gradient(135deg, #f0ebff 0%, #fce4f0 100%);

    /* Typografia */
    --font-main:  'Nunito', system-ui, sans-serif;
    --font-decor: 'Lora', Georgia, serif;

    /* Wymiary */
    --sidebar-width:     260px;
    --sidebar-mini-width: 80px;
    --navbar-height:      70px;
    --radius-sm:  6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 4px rgba(108,63,197,.10);
    --shadow-md: 0 4px 20px rgba(108,63,197,.13);
    --shadow-lg: 0 8px 40px rgba(108,63,197,.18);
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-accent); }

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}

/* ==========================================
   LAYOUT - WRAPPER
   ========================================== */
.wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background-color: var(--color-sidebar-bg) !important;
    background-image: none !important;
    z-index: 1050;
    overflow: hidden;
    transition: width .3s cubic-bezier(.4,0,.2,1), transform .3s;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(26,16,53,.25);
}

/* Tło sidebar - usuwamy stare img */
.sidebar .sidebar-background {
    display: none !important;
}

/* Logo */
.sidebar .logo {
    display: flex;
    align-items: center;
    padding: 0 24px;
    height: var(--navbar-height);
    background: rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
    gap: 10px;
}

.sidebar .logo::before {
    content: '✦';
    font-size: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.sidebar .logo .simple-text {
    color: #fff !important;
    font-family: var(--font-decor);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: .5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar .logo .logo-mini { display: none; }

/* User panel */
.sidebar .user {
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}

.sidebar .user .photo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-primary-light);
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.sidebar .user .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar .user .user-info {
    display: inline-block;
    vertical-align: middle;
    max-width: calc(100% - 60px);
}

.sidebar .user .username span {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.sidebar .user .caret {
    color: var(--color-sidebar-text);
    border: none;
    width: 0; height: 0;
    display: inline-block;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--color-sidebar-text);
    margin-left: 4px;
    vertical-align: middle;
}

/* Sidebar wrapper scrollable */
.sidebar .sidebar-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.1) transparent;
}

.sidebar .sidebar-wrapper::-webkit-scrollbar { width: 4px; }
.sidebar .sidebar-wrapper::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }

/* Nav items */
.sidebar .nav {
    list-style: none;
    padding: 10px 0;
}

.sidebar .nav > .nav-item {
    margin: 2px 12px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.sidebar .nav > .nav-item > .nav-link {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    color: var(--color-sidebar-text) !important;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all .2s;
    gap: 12px;
    text-decoration: none;
    white-space: nowrap;
}

.sidebar .nav > .nav-item > .nav-link:hover {
    background: rgba(108,63,197,.25);
    color: #fff !important;
}

.sidebar .nav > .nav-item.active > .nav-link,
.sidebar .nav > .nav-item > .nav-link.active {
    background: var(--gradient-header);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(108,63,197,.4);
}

.sidebar .nav > .nav-item > .nav-link .material-icons {
    font-size: 20px;
    flex-shrink: 0;
    opacity: .85;
}

.sidebar .nav > .nav-item > .nav-link p {
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Subnav (collapse) */
.sidebar .nav > .nav-item .collapse .nav {
    padding: 4px 0;
}

.sidebar .nav > .nav-item .collapse .nav-item .nav-link {
    display: flex;
    align-items: center;
    padding: 8px 14px 8px 48px;
    color: var(--color-sidebar-text) !important;
    font-size: 12.5px;
    border-radius: var(--radius-sm);
    transition: all .2s;
    gap: 8px;
}

.sidebar .nav > .nav-item .collapse .nav-item .nav-link:hover {
    background: rgba(255,255,255,.07);
    color: #fff !important;
}

.sidebar .nav .sidebar-mini { display: none; }
.sidebar .nav .sidebar-normal { display: inline; }

/* ==========================================
   MAIN PANEL
   ========================================== */
.main-panel {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left .3s cubic-bezier(.4,0,.2,1);
    background: var(--color-bg);
}

/* ==========================================
   NAVBAR (TOP)
   ========================================== */
.navbar {
    position: fixed !important;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--navbar-height);
    background: rgba(255,255,255,.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1040;
    display: flex;
    align-items: center;
    padding: 0 28px;
    transition: left .3s;
    box-shadow: 0 2px 20px rgba(108,63,197,.08);
}

.navbar.navbar-transparent {
    background: rgba(255,255,255,.95) !important;
    box-shadow: 0 2px 20px rgba(108,63,197,.08);
}

.navbar .navbar-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Minimize button */
.navbar .navbar-minimize #minimizeSidebar {
    background: var(--color-primary-xlight);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    box-shadow: none;
    color: var(--color-primary);
}

.navbar .navbar-minimize #minimizeSidebar:hover {
    background: var(--color-primary);
    color: #fff;
}

.navbar .navbar-minimize #minimizeSidebar .material-icons {
    font-size: 20px;
}

/* Salon logo in navbar */
.navbar .navbar-brand img {
    max-height: 38px;
    width: auto;
    border-radius: var(--radius-sm);
}

/* Navbar search */
.navbar .navbar-form {
    margin: 0 auto 0 20px;
    flex: 1;
    max-width: 320px;
}

.navbar .navbar-form .input-group {
    background: var(--color-bg);
    border-radius: 30px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.navbar .navbar-form .input-group:focus-within {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(108,63,197,.12);
}

.navbar .navbar-form .form-control {
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--color-text);
    box-shadow: none;
    outline: none;
}

.navbar .navbar-form .form-control::placeholder { color: var(--color-text-muted); }

.navbar .navbar-form .btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    padding: 6px 12px;
    box-shadow: none;
    margin: 0;
}

.navbar .navbar-form .btn:hover { color: var(--color-primary); }

/* Navbar icons */
.navbar .navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.navbar .navbar-nav .nav-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted) !important;
    transition: all .2s;
    position: relative;
}

.navbar .navbar-nav .nav-link:hover {
    background: var(--color-primary-xlight);
    color: var(--color-primary) !important;
}

.navbar .navbar-nav .nav-link .material-icons { font-size: 22px; }

.navbar .navbar-nav .notification {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--color-accent);
    color: #fff;
    font-size: 9px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Dropdown menus */
.navbar .dropdown-menu {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    min-width: 180px;
    background: #fff;
    margin-top: 6px;
}

.navbar .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    color: var(--color-text);
    transition: all .15s;
}

.navbar .dropdown-item:hover {
    background: var(--color-primary-xlight);
    color: var(--color-primary);
}

/* ==========================================
   CONTENT AREA
   ========================================== */
.content {
    padding: calc(var(--navbar-height) + 24px) 28px 28px;
    flex: 1;
}

/* ==========================================
   CARDS
   ========================================== */
.card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header h4, .card-header h5, .card-header .card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.card-header .card-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--gradient-header);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-header .card-icon .material-icons {
    color: #fff;
    font-size: 20px;
}

.card-body {
    padding: 20px 24px;
}

.card-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--color-border);
    background: transparent;
    font-size: 12.5px;
    color: var(--color-text-muted);
}

/* Stats cards */
.card-stats .card-header {
    border-bottom: none;
    padding-bottom: 0;
}

.card-stats .card-header .card-icon {
    margin-top: -24px;
    box-shadow: var(--shadow-md);
}

.card-stats .card-body {
    padding-top: 8px;
}

.card-stats .card-category {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 2px;
}

.card-stats .card-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 13px;
    border-radius: 30px;
    padding: 8px 22px;
    border: none;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
    letter-spacing: .2px;
    box-shadow: none;
    text-decoration: none;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary, .btn-rose {
    background: var(--gradient-header);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(108,63,197,.35);
}

.btn-primary:hover, .btn-rose:hover {
    box-shadow: 0 6px 20px rgba(108,63,197,.45);
    color: #fff !important;
}

.btn-info {
    background: var(--color-info);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(59,130,246,.3);
}

.btn-info:hover {
    background: #2563eb;
    color: #fff !important;
}

.btn-success {
    background: var(--color-success);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(34,197,94,.3);
}

.btn-danger {
    background: var(--color-danger);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(239,68,68,.3);
}

.btn-warning {
    background: var(--color-warning);
    color: #fff !important;
}

.btn-white {
    background: #fff;
    color: var(--color-primary) !important;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.btn-white:hover {
    background: var(--color-primary-xlight);
    border-color: var(--color-primary-light);
}

.btn-link {
    background: transparent;
    color: var(--color-primary) !important;
    padding: 8px 12px;
    box-shadow: none;
}

.btn-link:hover { background: var(--color-primary-xlight); }

.btn-sm { padding: 5px 14px; font-size: 12px; }
.btn-lg { padding: 11px 28px; font-size: 15px; }

.btn-fab, .btn-just-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.btn-round { border-radius: 30px !important; }

/* ==========================================
   FORMS
   ========================================== */
.form-group { margin-bottom: 18px; }

label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-bg);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
}

.form-control:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(108,63,197,.12);
    background: #fff;
}

.form-control::placeholder { color: var(--color-text-muted); }

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a8098' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ==========================================
   TABLES
   ========================================== */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.table thead th {
    background: var(--color-primary-xlight);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    padding: 12px 16px;
    border: none;
    white-space: nowrap;
}

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

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

.table tbody tr:hover td { background: var(--color-primary-xlight); }

/* ==========================================
   BOOKING TABLE (data-table)
   ========================================== */
.data-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table table {
    border-collapse: separate;
    border-spacing: 8px;
    min-width: 100%;
}

.data-table td {
    min-width: 150px;
    padding: 16px 14px;
    vertical-align: top;
    text-align: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: all .2s;
}

.data-table td:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.data-table td.selborder {
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 0 4px rgba(108,63,197,.15);
}

/* Day name - big colored text */
.data-table .day-name {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    margin-bottom: 2px;
}

.data-table .day-date {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--color-accent);
    display: block;
    margin-bottom: 10px;
}

/* ==========================================
   BADGES
   ========================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
}

.badge-primary { background: var(--color-primary-xlight); color: var(--color-primary); }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-danger  { background: #fee2e2; color: #b91c1c; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-info    { background: #dbeafe; color: #1d4ed8; }
.badge-rose    { background: var(--color-accent-light); color: var(--color-accent); }

/* ==========================================
   MODALS
   ========================================== */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    background: var(--gradient-header);
    color: #fff;
    padding: 18px 24px;
    border: none;
}

.modal-header h4, .modal-header .modal-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.modal-header .close, .modal-header button.close {
    color: rgba(255,255,255,.8) !important;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 1;
}

.modal-header .close:hover { color: #fff !important; }

.modal-body {
    padding: 24px;
    background: #fff;
}

.modal-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--color-border);
    background: #fff;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ==========================================
   PAGE HEADER SECTION
   ========================================== */
.ts-page-header {
    background: var(--gradient-header);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.ts-page-header::before {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
}

.ts-page-header::after {
    content: '';
    position: absolute;
    right: 60px;
    bottom: -50px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}

.ts-page-header h4, .ts-page-header h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 4px;
}

.ts-page-header p {
    color: rgba(255,255,255,.8);
    font-size: 13.5px;
    margin: 0;
}

/* ==========================================
   SECTION DIVIDER / LABELS
   ========================================== */
.ts-section-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    padding: 6px 12px;
    margin: 8px 12px 4px;
    display: block;
}

/* ==========================================
   TEAM / EMPLOYEE CARDS
   ========================================== */
.employee-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
}

.employee-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.employee-card .avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid var(--color-border);
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
    transition: border-color .2s;
}

.employee-card:hover .avatar {
    border-color: var(--color-primary-light);
}

.employee-card .emp-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 2px;
}

.employee-card .emp-role {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ==========================================
   OPINIONS / RATINGS
   ========================================== */
.opinion-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 16px 18px;
    margin-bottom: 12px;
}

.opinion-card .stars { color: #f59e0b; font-size: 16px; }
.opinion-card .opinion-text { font-size: 13.5px; color: var(--color-text); margin: 8px 0 4px; }
.opinion-card .opinion-meta { font-size: 12px; color: var(--color-text-muted); }

/* ==========================================
   PAYMENT METHODS
   ========================================== */
.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.payment-icons img {
    height: 28px;
    width: auto;
    border-radius: 4px;
    filter: grayscale(20%);
    opacity: .85;
    transition: opacity .2s;
}

.payment-icons img:hover { opacity: 1; filter: none; }

/* ==========================================
   HOURS TABLE
   ========================================== */
.hours-table {
    width: 100%;
    font-size: 13.5px;
}

.hours-table tr td {
    padding: 6px 0;
    color: var(--color-text);
}

.hours-table tr td:first-child {
    color: var(--color-text-muted);
    font-weight: 500;
    width: 130px;
}

/* ==========================================
   COOKIE BANNER
   ========================================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-sidebar-bg);
    color: #fff;
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 500px;
    width: calc(100% - 40px);
    font-size: 13px;
}

.cookie-banner a { color: var(--color-primary-light); }
.cookie-banner .btn { flex-shrink: 0; font-size: 12px; padding: 6px 16px; }

/* ==========================================
   LOADER / SPINNER
   ========================================== */
.loader, .ts-loader {
    width: 44px;
    height: 44px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: ts-spin 0.8s linear infinite;
    margin: 20px auto;
}

@keyframes ts-spin {
    to { transform: rotate(360deg); }
}

.ts-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
}

/* ==========================================
   LOGIN AREA (top bar)
   ========================================== */
.ts-login-area {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ==========================================
   ALERTS & NOTIFICATIONS
   ========================================== */
.alert {
    border-radius: var(--radius-md);
    border: none;
    padding: 12px 18px;
    font-size: 13.5px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-success { background: #dcfce7; color: #15803d; }
.alert-danger   { background: #fee2e2; color: #b91c1c; }
.alert-warning  { background: #fef3c7; color: #b45309; }
.alert-info     { background: #dbeafe; color: #1d4ed8; }

/* ==========================================
   FAV ICON
   ========================================== */
#favicon { color: var(--color-accent) !important; cursor: pointer; vertical-align: middle; }

/* ==========================================
   FIXED PLUGIN - ukryty
   ========================================== */
.fixed-plugin { display: none; }

/* ==========================================
   INSTALL BUTTON (PWA)
   ========================================== */
#installButton {
    background: var(--gradient-header);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 13px;
    cursor: pointer;
    display: none; /* shown via JS */
}

/* ==========================================
   MAP
   ========================================== */
#map {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}

/* ==========================================
   TYPOGRAPHY HELPERS
   ========================================== */
.text-primary, .text-rose { color: var(--color-primary) !important; }
.text-accent { color: var(--color-accent) !important; }
.text-muted { color: var(--color-text-muted) !important; }
.text-success { color: var(--color-success) !important; }
.text-danger  { color: var(--color-danger) !important; }
.text-warning { color: var(--color-warning) !important; }

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */
@media (max-width: 991px) {
    :root {
        --sidebar-width: 260px;
    }

    .sidebar {
        transform: translateX(-100%);
        z-index: 1060;
    }

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

    .main-panel {
        margin-left: 0 !important;
    }

    .navbar {
        left: 0 !important;
        padding: 0 16px;
    }

    .content {
        padding: calc(var(--navbar-height) + 16px) 16px 20px;
    }

    /* Mobile overlay */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(26,16,53,.5);
        z-index: 1055;
        backdrop-filter: blur(2px);
    }

    .sidebar-overlay.visible { display: block; }
}

@media (max-width: 575px) {
    .card-body { padding: 16px; }
    .btn { font-size: 12.5px; padding: 7px 16px; }
    .data-table td { min-width: 130px; }
}

/* ==========================================
   SIDEBAR MINI MODE
   ========================================== */
body.sidebar-mini .sidebar {
    width: var(--sidebar-mini-width);
}

body.sidebar-mini .main-panel {
    margin-left: var(--sidebar-mini-width);
}

body.sidebar-mini .navbar {
    left: var(--sidebar-mini-width);
}

body.sidebar-mini .sidebar .logo {
    padding: 0 16px;
    justify-content: center;
}

body.sidebar-mini .sidebar .logo::before { margin: 0; }
body.sidebar-mini .sidebar .logo .simple-text.logo-normal { display: none; }
body.sidebar-mini .sidebar .logo .logo-mini { display: block !important; color: var(--color-accent); font-size: 13px; }

body.sidebar-mini .sidebar .user { padding: 16px; display: flex; justify-content: center; }
body.sidebar-mini .sidebar .user .photo { margin: 0; }
body.sidebar-mini .sidebar .user .user-info { display: none; }

body.sidebar-mini .sidebar .nav > .nav-item { margin: 2px 8px; }
body.sidebar-mini .sidebar .nav > .nav-item > .nav-link { padding: 12px 0; justify-content: center; }
body.sidebar-mini .sidebar .nav > .nav-item > .nav-link p { display: none; }
body.sidebar-mini .sidebar .nav > .nav-item > .nav-link .material-icons { margin: 0; }
body.sidebar-mini .sidebar .nav > .nav-item .collapse { display: none !important; }

/* Tooltip on hover in mini mode */
body.sidebar-mini .sidebar .nav > .nav-item:hover::after {
    content: attr(data-label);
    position: absolute;
    left: var(--sidebar-mini-width);
    background: var(--color-sidebar-bg);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    white-space: nowrap;
    z-index: 100;
    box-shadow: var(--shadow-md);
    pointer-events: none;
}

/* ==========================================
   MISC OVERRIDES (material-dashboard compat)
   ========================================== */
.card .card-header-primary .card-icon,
.card .card-header-primary .card-text { background: var(--gradient-header) !important; }

.card .card-header-rose .card-icon,
.card .card-header-rose .card-text { background: var(--gradient-header) !important; }

.card .card-header-info .card-icon,
.card .card-header-info .card-text { background: linear-gradient(60deg, #2196f3, #21cbf3) !important; }

.card .card-header-success .card-icon,
.card .card-header-success .card-text { background: linear-gradient(60deg, #43a047, #66bb6a) !important; }

.card .card-header-danger .card-icon,
.card .card-header-danger .card-text { background: linear-gradient(60deg, #ef5350, #e53935) !important; }

/* Scrollbar global */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary-light); }
