/* assets/css/pages/b2b_style.css - UI for B2B Portal */
:root {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --primary: #2ecc71;
    --primary-dark: #27ae60;
    --border-color: #dfe6e9;
    --danger: #e74c3c;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.header-brand-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.header-public-link {
    color: var(--primary);
    font-size: 20px;
}
.card-empty-state {
    text-align: center;
    padding: 40px 20px;
}
.module-locked-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}
.module-locked-text {
    color: var(--text-muted);
    font-size: 14px;
}
.badge-pending {
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.card-notice {
    border-left: 4px solid var(--primary);
    background: rgba(46, 204, 113, 0.1);
}
.icon-fb { color: #1877f2; }
.icon-ig { color: #e1306c; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

.tags-container {
    max-height: 150px;
}
.gallery-upload-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}
.gallery-main-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}
.gallery-item-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}
.btn-gallery-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(231,76,60,0.9);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo {
    height: 24px;
    width: auto;
    max-width: 120px;
    display: block;
}

.media-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.media-picker-container {
    background: var(--card-bg);
    width: 95%;
    max-width: 1200px;
    height: 85vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

.media-picker-header {
    padding: 15px 20px;
    background: var(--card-bg);
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.media-picker-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--primary);
}

.media-picker-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
}

.media-picker-toolbar {
    padding: 15px 20px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 15px;
    align-items: center;
}

.media-picker-toolbar input,
.media-picker-toolbar select {
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--card-bg);
    color: var(--text-main);
}

.media-picker-toolbar input[type="text"] {
    flex-grow: 1;
}

.media-picker-grid {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    background: var(--bg-color);
    align-content: start;
}

/* Accordion Styles */
.accordion-card {
    padding: 0 !important;
    overflow: hidden;
}

.accordion-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--card-bg);
    transition: background 0.3s ease;
}

.flex-align-center {
    display: flex;
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

.page-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-header-view {
    padding: 6px 12px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    white-space: nowrap;
    flex-shrink: 0;
    flex-grow: 0;
    height: auto !important;
    width: auto !important;
    display: inline-flex !important;
    justify-content: center;
}

.accordion-header:hover {
    background: var(--bg-color);
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.accordion-card.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 20px;
    opacity: 0;
}

.accordion-card.active .accordion-content {
    max-height: 2000px; /* Dovolj veliko za največjo vsebino */
    padding: 0 20px 20px 20px;
    opacity: 1;
    transition: max-height 0.5s ease-in, padding 0.3s ease, opacity 0.5s ease;
}

/* Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-primary-dark { color: var(--primary-dark); }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 14px; }
.text-xsmall { font-size: 12px; }
.font-bold { font-weight: bold; }
.mt-0 { margin-top: 0; }
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }
.mb-40 { margin-bottom: 40px; }
.p-0 { padding: 0; }
.border-0 { border: none; }
.block { display: block; }
.no-decoration { text-decoration: none; }

/* Login specific */
.login-container-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-bottom: 0;
    background-color: var(--bg-color); /* Zagotovimo, da ima cel ekran barvo */
}
.login-box {
    max-width: 450px; /* Še malce širše za desktop */
    width: calc(100% - 30px);
    margin: 15px;
    padding: 40px 30px;
    box-sizing: border-box;
    border-radius: 16px; /* Malce bolj moderne zaobljene linije */
}
.login-logo {
    height: 40px;
    width: auto;
    max-width: 200px; /* Prepreči razteg na desktopu */
    margin-bottom: 12px; /* Malce več spacinga nazaj, prej je bil 4px */
}
.login-subtitle {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--text-muted);
}
.login-footer {
    margin-top: -5px; /* Negativen margin da ga res povleče gor bližje kartici */
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}
.login-box h2 {
    font-size: 32px; /* Večji naslov */
    font-weight: 700;
}
.login-box label {
    font-size: 15px; /* Malce večji labeli na loginu */
    margin-bottom: 8px;
}
.login-box .btn-primary {
    padding: 16px 20px; /* Res velik, debel gumb za prijavo */
    font-size: 18px;
    border-radius: 10px;
    margin-top: 15px;
}
.alert-danger {
    background: var(--danger);
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.login-separator {
    display: flex; 
    align-items: center; 
    text-align: center; 
    margin: 25px 0; 
    color: #6c757d; 
    font-size: 14px;
}
.login-separator-line {
    flex: 1; 
    height: 1px; 
    background: #dee2e6;
}
.login-separator span {
    padding: 0 10px;
}

.btn-google-login {
    background-color: white !important; 
    color: #333 !important; 
    border: 1px solid #ccc !important; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    width: 100%; 
    box-sizing: border-box; 
    text-decoration: none;
}
.btn-google-login img {
    width: 18px; 
    height: 18px;
}

/* Header Actions & Theme Toggle */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-brand {
    font-size: 16px;
}
/* Odstranjen star header-restaurant-name */

/* Card variants */
.b2b-card.danger-border {
    border-left: 4px solid var(--danger);
}

/* Flex & Grid layouts */
.flex-col-gap-10 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.flex-none { flex: none; }
.justify-end { justify-content: flex-end; }
.min-w-150 { min-width: 150px; }
.min-w-80 { min-width: 80px; }
.w-auto { width: auto !important; }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.pb-10 { padding-bottom: 10px; }
.btn-sm { padding: 8px 15px !important; font-size: 14px !important; }
.table-malice { width: 100%; border-collapse: collapse; }
.table-malice th { padding: 8px 0; color: var(--text-main); text-align: left; }
.table-malice td { padding: 10px 0; vertical-align: middle; border-bottom: 1px solid var(--border-color); }
.table-malice tr { border-bottom: 1px solid var(--border-color); }
.w-80 { width: 80px; }
.align-right { text-align: right; }
.white-space-nowrap { white-space: nowrap; }
.mr-10 { margin-right: 10px; }
.form-box {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 4px;
    border: 1px dashed var(--border-color);
}
.d-inline-block { display: inline-block; }
.flex-between-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Secondary Button (for selections) */
.btn-secondary {
    display: block;
    text-align: center;
    text-decoration: none;
    background: var(--bg-color);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    box-sizing: border-box;
}
.btn-secondary:hover {
    background: var(--border-color);
}

/* Delovni čas (Hours) Grid */
.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.day-row {
    background: var(--bg-color);
    padding: 20px 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.day-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.day-name {
    width: 100px;
    font-weight: 600;
    font-size: 14px; /* Ujemanje z labeli iz osnovnih podatkov */
    color: var(--text-muted);
}
.closed-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}
.closed-toggle span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}
.closed-toggle input[type="checkbox"] {
    transform: scale(1.2);
}
.time-inputs-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.time-separator {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}
.btn-add-shift {
    width: auto;
    justify-content: flex-start;
    font-size: 14px;
    color: var(--primary);
    margin-top: 15px;
}
.split-shift-row {
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}
.btn-remove-shift {
    color: var(--danger);
    padding: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tags and Categories */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    background: var(--bg-color);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    max-height: 200px;
    overflow-y: auto;
}
.tag-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin: 0;
    cursor: pointer;
}
.tag-label span {
    font-weight: normal;
    color: var(--text-main);
    font-size: 14px;
}
.tag-label input[type="checkbox"] {
    transform: scale(1.2);
}

/* PDF Upload Box */
.pdf-upload-box {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.pdf-upload-box input[type="file"] {
    width: 100%;
    padding: 10px;
    background: var(--card-bg);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
}
.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #000;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}
.gallery-badge-main {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}
.btn-gallery-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(231,76,60,0.9);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Danger Box for Account Deletion */
.danger-box {
    background: rgba(231, 76, 60, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(231, 76, 60, 0.3);
}
.btn-danger {
    display: block;
    text-align: center;
    text-decoration: none;
    background: var(--danger);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    box-sizing: border-box;
}
.btn-danger:hover {
    background: #c0392b;
}

/* Divider */
.b2b-hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 20px 0;
}

/* Feature Boxes (Dashboard grid) */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.feature-box {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}
.feature-box i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

/* ==========================================================================
   STUDIO (VISUAL ENGINE) STYLES
   ========================================================================== */

.studio-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
@media (min-width: 992px) {
    .studio-grid {
        flex-direction: row;
    }
}

.studio-controls {
    flex: 1 1 100%;
}
@media (min-width: 992px) {
    .studio-controls {
        flex: 1 1 300px;
    }
}

/* Responsive scaling for the preview */
.studio-preview-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    flex: 1 1 100%;
    padding: 0;
}
@media (min-width: 992px) {
    .studio-preview-wrapper {
        flex: 1 1 300px;
        padding: 20px 0;
    }
}

/* The actual export area - Fixed dimensions handled by JS */
.studio-export-area {
    /* position:absolute removed so flex parent can center it properly */
    box-sizing: border-box; 
    padding: 80px; 
    display: flex; 
    flex-direction: column; 
    font-family: 'Inter', sans-serif; 
}

/* Header Elements */
.studio-export-header {
    text-align: center; 
    margin-bottom: 60px;
}
.studio-export-h1 {
    font-size: 72px; 
    margin: 0; 
    font-weight: 800; 
    letter-spacing: -1px; 
    text-transform: uppercase;
}
.studio-export-h2 {
    font-size: 42px; 
    margin: 20px 0 0 0; 
    font-weight: 600; 
    text-transform: uppercase;
}
.studio-export-date {
    font-size: 40px; 
    margin-top: 15px; 
    font-weight: 700;
}

/* Body / List */
.studio-export-body {
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    gap: 30px;
}

/* Footer / Contacts */
.studio-export-footer {
    margin-top: 60px; 
    padding-top: 40px; 
    border-top: 2px solid; 
    display: flex; 
    flex-direction: column;
    align-items: center;
    gap: 20px; 
    font-size: 26px; 
    font-weight: 500;
}
.studio-export-contact-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
}
.studio-export-contact-item {
    display: flex; 
    align-items: center; 
    gap: 12px;
    white-space: nowrap;
}
.studio-export-contact-item i {
    font-size: 28px;
    opacity: 0.8;
}

/* Malice Items inside export */
.studio-malica-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px dashed;
    padding-bottom: 20px;
}
.studio-malica-name {
    font-size: 38px;
    font-weight: 600;
    line-height: 1.3;
    display: flex;
    align-items: center;
}
.studio-malica-price {
    font-size: 42px;
    font-weight: 800;
    white-space: nowrap;
    margin-left: 30px;
}
.studio-malica-icon {
    margin-right: 15px; 
    font-size: 32px;
}

/* ==========================================================================
   STUDIO THEMES
   ========================================================================== */

/* Tema: Črno-bela (Za tisk) */
.theme-bw {
    background-color: #ffffff;
    color: #000000;
}
.theme-bw .theme-text-primary { color: #000000; }
.theme-bw .theme-text-muted { color: #222222; } /* Zelo temno siva za lepši raster print */
.theme-bw .theme-text-accent { color: #000000; }
.theme-bw .theme-border { border-top: 2px solid #000000; }
.theme-bw .studio-malica-category { border-bottom-color: #000000; }

/* Tema: Svetla (Light) */
.theme-light {
    background-color: #ffffff;
    color: #1a1a1a;
}
.theme-light .theme-text-primary { color: #1a1a1a; }
.theme-light .theme-text-muted { color: #666666; }
.theme-light .theme-text-accent { color: #f26b3c; } /* Uporabljena direktna Food.si oranžna */
.theme-light .theme-border { border-top: 1px solid #eeeeee; }
.theme-light .studio-malica-category { border-bottom-color: #eeeeee; }

/* Tema: Temna (Dark) */
.theme-dark {
    background-color: #121212;
    color: #f5f5f5;
}
.theme-dark .theme-text-primary { color: #ffffff; }
.theme-dark .theme-text-muted { color: #a0a0a0; }
.theme-dark .theme-text-accent { color: #f26b3c; } /* Uporabljena direktna Food.si oranžna */
.theme-dark .theme-border { border-top: 1px solid #333333; }
.theme-dark .studio-malica-category { border-bottom-color: #333333; }

/* Tema: Oranžna (Dvobarvna) */
.theme-orange-light {
    background-color: #ff9f43; /* Svetlejša in mehkejša oranžna */
    color: #ffffff;
}
.theme-orange-light .theme-text-primary { color: #ffffff; }
.theme-orange-light .theme-text-muted { color: rgba(255,255,255,0.8); }
.theme-orange-light .theme-text-accent { color: #c0392b; /* Temno oranžna/rdeča za močan kontrast */ }
.theme-orange-light .theme-border { border-top: 1px solid rgba(255,255,255,0.3); }
.theme-orange-light .studio-malica-category { border-bottom-color: rgba(255,255,255,0.3); }

/* Tema: Modra (Elegantna) */
.theme-blue {
    background-color: #1a365d; /* Globoka mornarsko modra */
    color: #ffffff;
}
.theme-blue .theme-text-primary { color: #ffffff; }
.theme-blue .theme-text-muted { color: rgba(255,255,255,0.7); }
.theme-blue .theme-text-accent { color: #48dbfb; /* Svetlo modra za kontrast */ }
.theme-blue .theme-border { border-top: 1px solid rgba(255,255,255,0.2); }
.theme-blue .studio-malica-category { border-bottom-color: rgba(255,255,255,0.2); }

/* Tema: Zelena (Sveža) */
.theme-green {
    background-color: #054a29; /* Temno gozdno zelena */
    color: #ffffff;
}
.theme-green .theme-text-primary { color: #ffffff; }
.theme-green .theme-text-muted { color: rgba(255,255,255,0.7); }
.theme-green .theme-text-accent { color: #55efc4; /* Mint zelena za kontrast */ }
.theme-green .theme-border { border-top: 1px solid rgba(255,255,255,0.2); }
.theme-green .studio-malica-category { border-bottom-color: rgba(255,255,255,0.2); }

/* Tema: Rumena (Živahna) */
.theme-yellow {
    background-color: #f1c40f; /* Živahna sončno rumena */
    color: #2d3436;
}
.theme-yellow .theme-text-primary { color: #2d3436; }
.theme-yellow .theme-text-muted { color: rgba(0,0,0,0.6); }
.theme-yellow .theme-text-accent { color: #d35400; /* Temno oranžna za kontrast */ }
.theme-yellow .theme-border { border-top: 1px solid rgba(0,0,0,0.15); }
.theme-yellow .studio-malica-category { border-bottom-color: rgba(0,0,0,0.15); }


/* Theme Data Attribute logic for Light/Dark Toggle */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --text-main: #f5f6fa;
    --text-muted: #b2bec3;
    --primary: #2ecc71;
    --primary-dark: #27ae60;
    --border-color: #4a4a4a;
    --danger: #ff7675;
    --shadow: 0 4px 15px rgba(0,0,0,0.3);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-color: #1a1a1a;
        --card-bg: #2d2d2d;
        --text-main: #f5f6fa;
        --text-muted: #b2bec3;
        --primary: #2ecc71;
        --primary-dark: #27ae60;
        --border-color: #4a4a4a;
        --danger: #ff7675;
        --shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    padding-bottom: 70px; /* Space for bottom nav */
}

/* Typography */
h1, h2, h3, h4 { margin: 0; padding: 0; }

/* Top Header */
.sticky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
}
.b2b-header {
    background: var(--card-bg);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.b2b-subheader {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.subheader-left {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.restaurant-switch-link,
.restaurant-switch-link:visited,
.restaurant-switch-link:active,
.restaurant-switch-link:hover {
    color: var(--text-main) !important;
    text-decoration: none;
    font-weight: 700;
}
.restaurant-switch-link {
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .restaurant-switch-link {
    border-bottom-color: rgba(0, 0, 0, 0.2);
}

.restaurant-switch-link:hover, .restaurant-switch-link:active {
    background: rgba(255, 255, 255, 0.05);
    border-bottom-color: #f26b3c;
}

[data-theme="light"] .restaurant-switch-link:hover, [data-theme="light"] .restaurant-switch-link:active {
    background: rgba(0, 0, 0, 0.03);
}

.restaurant-switch-link i.fa-caret-down {
    font-size: 16px;
    opacity: 0.7;
}

.b2b-subheader i {
    font-size: 20px; /* Povečana tudi ikona trgovine */
}

.b2b-header .logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Fiksiramo širino logotipa v headerju za desktop in mobile */
.b2b-header .logo-area img {
    height: 30px;
    width: auto;
    max-width: 150px;
}

.b2b-header .user-icon {
    font-size: 20px;
    color: var(--text-muted);
}

/* Bottom Tab Navigation (Mobile-first) */
.b2b-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    padding: 10px 5px;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom); /* iOS support */
    /* Scrollable container setup */
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Hide scrollbar for cleaner look but keep functionality */
.b2b-bottom-nav::-webkit-scrollbar {
    display: none;
}
.b2b-bottom-nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.b2b-bottom-nav a {
    text-decoration: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    gap: 5px;
    padding: 5px 10px;
    flex: 0 0 auto; /* Prevent shrinking so items don't squish */
    min-width: 70px;
}

.b2b-bottom-nav a.active {
    color: var(--primary);
}

.b2b-bottom-nav i {
    font-size: 20px;
}

/* Container */
.b2b-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Cards */
.b2b-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.b2b-card h3 {
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
}

input[type="text"], 
input[type="email"], 
input[type="password"],
input[type="url"],
input[type="time"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 16px 15px; /* Še povečana višina (padding-top in bottom) */
    border: 1px solid var(--border-color);
    border-radius: 10px; /* Malce bolj okrogli robovi */
    background: var(--bg-color);
    color: var(--text-main);
    box-sizing: border-box;
    font-size: 16px; /* 16px is critical to prevent iOS zoom and make it readable */
    font-family: inherit;
    resize: vertical; /* Omogoča večanje samo po višini */
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-active-state {
    transition: all 0.3s ease;
}

.btn-active-state.active {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

/* Desktop Overrides */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
    .b2b-bottom-nav {
        display: none; /* Hide bottom nav on desktop */
    }
    .b2b-header {
        padding: 20px 40px;
    }
    .b2b-container {
        padding: 40px;
    }
    /* Add desktop navigation */
    .b2b-header .logo-area::after {
        content: "";
        display: block;
        width: 1px;
        height: 24px;
        background: var(--border-color);
        margin: 0 15px;
    }
    .b2b-desktop-nav {
        display: flex !important;
        gap: 20px;
    }
    .b2b-desktop-nav a {
        text-decoration: none;
        color: var(--text-muted);
        font-weight: 600;
        font-size: 18px; /* Povečano z 14px na 18px */
        padding: 10px 15px; /* Povečan padding za večji klikabilni prostor */
        border-radius: 8px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .b2b-desktop-nav a:hover {
        color: var(--text-main);
        background: var(--bg-color);
    }
    .b2b-desktop-nav a.active {
        color: var(--primary);
        background: var(--bg-color);
    }
}
.b2b-desktop-nav {
    display: none; /* Hidden on mobile */
}

/* Mobile specific overrides */
@media (max-width: 576px) {
    .day-row-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .reviews-message-header {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .reviews-message-header-stats {
        width: 100%;
        gap: 10px !important;
        justify-content: space-between;
    }
    .reviews-message-header-stats .reviews-stat-box {
        padding: 6px 10px !important;
        border-radius: 9999px !important;
        display: flex;
        align-items: baseline;
        gap: 6px;
    }
    .reviews-message-header-stats .reviews-stat-num {
        display: inline !important;
        font-size: 16px !important;
    }
    .reviews-message-header-stats .reviews-stat-label {
        font-size: 10px !important;
        text-transform: none !important;
    }

    .reviews-click-stats {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px !important;
        margin-bottom: 8px !important;
        padding-bottom: 4px;
    }
    .reviews-click-stats .reviews-stat-box {
        min-width: auto !important;
        padding: 6px 10px !important;
        border-radius: 9999px !important;
        display: flex;
        align-items: baseline;
        gap: 6px;
        white-space: nowrap;
        flex: 0 0 auto;
    }
    .reviews-click-stats .reviews-stat-num {
        display: inline !important;
        font-size: 16px !important;
    }
    .reviews-click-stats .reviews-stat-label {
        font-size: 10px !important;
        text-transform: none !important;
    }
    .reviews-clicks-disclaimer {
        display: none !important;
    }
    .reviews-message-header-stats .reviews-stat-box {
        flex: 1 1 0;
    }
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    flex-shrink: 0;
    margin: 0;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}
.switch .slider.round {
    border-radius: 34px;
}
.switch .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
.switch input:checked + .slider {
    background-color: #28a745;
}
.switch input:focus + .slider {
    box-shadow: 0 0 1px #28a745;
}
.switch input:checked + .slider:before {
    transform: translateX(26px);
}
