/**
 * SMARTSERVICE 5 - HLAVNÍ STYLESHEET
 * Design: Lak Racing 2026
 * Barvy: Oranžová #E8461D, Pozadí #111111
 */

/* ========================================
   CSS PROMĚNNÉ - TÉMATA
   ======================================== */

/* DARK-ORANGE TÉMA (Lak Racing) */
:root, .theme-dark-orange {
    /* Základní barvy */
    --bg-primary: #111111;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #222222;
    --bg-hover: #2a2a2a;
    
    /* Gradient hlavního obsahu - ZMĚNA: jednolité */
    --main-gradient: #111111;
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted: #888888;
    --text-dark: #666666;
    
    /* Accent barvy - ZMĚNA: Lak Racing oranžová */
    --accent-color: #E8461D;
    --accent-hover: #ff5a2e;
    --accent-light: rgba(232, 70, 29, 0.1);
    --accent-border: rgba(232, 70, 29, 0.3);
    
    /* Bordery */
    --border-color: #333333;
    --border-light: #444444;
    --border-lighter: #555555;
    
    /* Tabulky a karty - ZMĚNA: světlejší pro kontrast */
    --card-bg: rgba(50, 50, 50, 0.6);
    --card-hover: rgba(232, 70, 29, 0.2);
    
    /* Seznam zakázek - střídavé barvy */
    --row-even: #FFFFFF;
    --row-odd: #DEDEDE;
    --row-text: #111111;
    
    /* Sidebar */
    --sidebar-bg: #111111;
    --sidebar-border: #222222;
    
    /* Formuláře */
    --input-bg: #222222;
    --input-border: #444444;
    --input-focus-bg: #2a2a2a;
    
    /* Speciální */
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --section-bg: rgba(0, 0, 0, 0.2);
    --code-bg: #222222;
    
    /* Zakulacení - ZMĚNA: více zakulacené */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Ikony - inverze pro tmavé téma */
    --icon-filter: none;
}

/* WHITE-BLUE TÉMA */
.theme-white-blue {
    /* Základní barvy */
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8ecf1;
    --bg-hover: #dde3eb;
    
    /* Gradient hlavního obsahu */
    --main-gradient: linear-gradient(145deg, #e8ecf1 0%, #f0f4f8 30%, #f5f7fa 100%);
    
    /* Text */
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #64748b;
    --text-dark: #94a3b8;
    
    /* Accent barvy */
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --accent-light: rgba(59, 130, 246, 0.1);
    --accent-border: rgba(59, 130, 246, 0.3);
    
    /* Bordery */
    --border-color: #e2e8f0;
    --border-light: #cbd5e1;
    --border-lighter: #94a3b8;
    
    /* Tabulky a karty */
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-hover: rgba(59, 130, 246, 0.15);
    
    /* Sidebar */
    --sidebar-bg: #1e293b;
    --sidebar-border: #334155;
    
    /* Formuláře */
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --input-focus-bg: #f8fafc;
    
    /* Speciální */
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --section-bg: rgba(255, 255, 255, 0.6);
    --code-bg: #e2e8f0;
    
    /* Ikony - inverze pro světlé téma (pokud jsou bílé) */
    --icon-filter: none;
}

/* ========================================
   RESET A ZÁKLADY
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ========================================
   LAYOUT
   ======================================== */
.app-container {
    display: flex;
    min-height: 100vh;
}

#main-content {
    flex: 1;
    margin-left: 280px;
    background: var(--main-gradient);
    min-height: 100vh;
}

.content-wrapper {
    padding: 40px 50px;
    max-width: 100%;
    overflow-x: hidden;
}

/* ========================================
   SIDEBAR
   ======================================== */
#sidebar {
    width: 280px;
    min-width: 280px;
    background-color: var(--sidebar-bg);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 40px;
}

.sidebar-logo img {
    height: 25px;
    width: auto;
    filter: var(--icon-filter);
}

.sidebar-logo .smart-service {
    display: block;
    color: var(--text-dark);
    font-size: 11px;
    letter-spacing: 2px;
    margin-top: 8px;
    text-transform: uppercase;
}

.sidebar-nav ul {
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover {
    background-color: var(--accent-light);
    color: var(--text-primary);
}

.sidebar-nav a.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-nav a svg {
    width: 24px;
    height: 24px;
    margin-right: 14px;
    stroke: currentColor;
    flex-shrink: 0;
}

.sidebar-nav a .nav-icon {
    width: 28px;
    height: 28px;
    margin-right: 14px;
    flex-shrink: 0;
}

.sidebar-qr {
    text-align: center;
    margin: 40px 0;
}

.sidebar-qr-label {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.sidebar-qr-box {
    display: inline-block;
    padding: 12px;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    background: var(--accent-light);
}

.sidebar-qr-box svg,
.sidebar-qr-box img {
    width: 100px;
    height: 100px;
    display: block;
}

.sidebar-logout {
    margin-top: auto;
}

.sidebar-logout a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sidebar-logout a:hover {
    border-color: var(--accent-color);
    background-color: var(--accent-light);
}

.sidebar-logout a svg {
    width: 18px;
    height: 18px;
    margin-left: 10px;
}

/* ========================================
   MOBILE HEADER & HAMBURGER
   ======================================== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--sidebar-bg);
    z-index: 200;
    padding: 0 15px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--sidebar-border);
}

.mobile-header .mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-header .mobile-logo img {
    height: 22px;
}

.mobile-header .mobile-logo span {
    color: var(--text-dark);
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hamburger-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 250;
    padding: 10px;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.page-header .subtitle {
    color: var(--text-secondary);
    font-size: 12px;
}

.page-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ========================================
   FORMS
   ======================================== */
.search-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-select {
    appearance: none;
    background-color: var(--border-light);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    border: none;
    border-radius: 25px;
    padding: 12px 45px 12px 20px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    min-width: 140px;
}

.filter-select.orange {
    background-color: var(--accent-color);
    color: #000;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.search-input {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    padding: 12px 20px;
    border: 2px solid var(--border-lighter);
    border-radius: 25px;
    background-color: transparent;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    color: var(--accent-color);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background-color: var(--accent-color);
    color: #000;
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   TABLES
   ======================================== */
.orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
}

.orders-table thead th {
    padding: 10px 12px;
    text-align: left;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-table tbody tr {
    background-color: var(--card-bg);
    transition: all 0.2s ease;
}

.orders-table tbody tr:hover {
    background-color: var(--accent-color);
}

.orders-table tbody tr:hover td {
    color: #000;
}

.orders-table tbody tr:hover .order-badge {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.orders-table tbody tr:hover a {
    color: #000;
}

.orders-table tbody tr:hover svg {
    stroke: #000;
}

.orders-table tbody td {
    padding: 12px;
    color: var(--text-primary);
    font-size: 13px;
    vertical-align: middle;
}

.orders-table tbody tr td:first-child {
    border-radius: 8px 0 0 8px;
}

.orders-table tbody tr td:last-child {
    border-radius: 0 8px 8px 0;
}

.order-badge {
    display: inline-block;
    padding: 8px 14px;
    background-color: var(--bg-hover);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.order-badge:hover {
    background-color: var(--accent-color);
    color: #000;
}

/* ========================================
   ACTIONS
   ======================================== */
.actions-cell {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.action-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.action-link:hover {
    background-color: rgba(255,255,255,0.15);
}

.action-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-color);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--border-lighter);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    background: var(--accent-light);
}

.btn-danger {
    background: transparent;
    border: 2px solid #ef4444;
    color: #ef4444;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-success, .green {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.alert-error, .red {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.alert-warning, .orange {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.alert-info, .blue {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

/* ========================================
   SEARCH RESULTS
   ======================================== */
.search-results-box {
    background-color: var(--accent-light);
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 25px;
}

.search-results-box h2 {
    color: var(--accent-color);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

/* ========================================
   QR CHANGE FORM
   ======================================== */
.qr-change-form {
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 8px;
    margin-top: 8px;
}

.qr-change-form input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-lighter);
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 12px;
    margin-bottom: 8px;
}

.qr-change-form input[type="submit"] {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 6px;
    background: var(--accent-color);
    border: none;
    color: #000;
    cursor: pointer;
}

/* ========================================
   SETTINGS SECTIONS
   ======================================== */
.settings-section {
    background: var(--section-bg);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.settings-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-section h2 .count {
    background: var(--accent-color);
    color: #000;
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    min-width: 180px;
}

.form-group label {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--input-focus-bg);
}

.form-group input::placeholder {
    color: var(--text-dark);
}

/* ========================================
   DATA TABLES
   ======================================== */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 20px;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 16px;
    background: var(--card-bg);
    border: none;
}

.data-table tr td:first-child {
    border-radius: 10px 0 0 10px;
}

.data-table tr td:last-child {
    border-radius: 0 10px 10px 0;
}

.data-table tr:hover td {
    background: var(--card-hover);
}

/* ========================================
   GALLERY
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .item-number {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.gallery-item .item-actions {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 6px;
}

.gallery-item .item-action {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s;
}

.gallery-item .item-action:hover {
    transform: scale(1.2);
}

.gallery-item .item-action.public {
    background: #22c55e;
}

.gallery-item .item-action.private {
    background: #ef4444;
}

.gallery-item .item-action.delete {
    background: #666;
    color: #fff;
}

/* ========================================
   RESPONSIVE - 1024px
   ======================================== */
@media (max-width: 1024px) {
    #sidebar {
        width: 240px;
        min-width: 240px;
        padding: 25px 15px;
    }
    
    #main-content {
        margin-left: 240px;
    }
    
    .content-wrapper {
        padding: 30px 25px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .stat-value {
        font-size: 36px;
    }
    
    /* Skrýt méně důležité sloupce */
    .orders-table th:nth-child(5),
    .orders-table td:nth-child(5) {
        display: none;
    }
}

/* ========================================
   RESPONSIVE - 768px (MOBILE)
   ======================================== */
@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }
    
    .hamburger-btn {
        display: block;
    }
    
    .mobile-overlay {
        display: block;
    }
    
    #sidebar {
        width: 280px;
        min-width: 280px;
        transform: translateX(-100%);
        z-index: 150;
        padding-top: 80px;
    }
    
    #sidebar.open {
        transform: translateX(0);
    }
    
    #main-content {
        margin-left: 0;
        padding-top: 60px;
    }
    
    .content-wrapper {
        padding: 20px 15px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .page-stats {
        width: 100%;
        gap: 30px;
    }
    
    .stat-value {
        font-size: 32px;
    }
    
    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select,
    .search-input,
    .search-btn {
        width: 100%;
        max-width: 100%;
    }
    
    .search-btn {
        justify-content: center;
    }
    
    /* Tabulka jako karty */
    .orders-table {
        border-spacing: 0 10px;
    }
    
    .orders-table thead {
        display: none;
    }
    
    .orders-table tbody tr {
        display: block;
        padding: 15px;
        margin-bottom: 10px;
        border-radius: 10px;
    }
    
    .orders-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .orders-table tbody td:last-child {
        border-bottom: none;
        padding-top: 12px;
    }
    
    .orders-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 11px;
        text-transform: uppercase;
    }
    
    .orders-table tbody tr td:first-child,
    .orders-table tbody tr td:last-child {
        border-radius: 0;
    }
    
    .actions-cell {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .action-link {
        padding: 8px 12px;
        background: rgba(255,255,255,0.1);
        border-radius: 6px;
    }
    
    /* Skrýt některé sloupce */
    .orders-table td:nth-child(3),
    .orders-table td:nth-child(5) {
        display: none;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   RESPONSIVE - 480px (SMALL MOBILE)
   ======================================== */
@media (max-width: 480px) {
    .content-wrapper {
        padding: 15px 10px;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .orders-table tbody tr {
        padding: 12px;
    }
    
    .order-badge {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    /* Skrýt ještě více sloupců */
    .orders-table td:nth-child(4) {
        display: none;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   INDEX.PHP - DETAIL STRÁNKA
   ======================================== */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background-color: var(--accent-color);
    border-radius: 25px;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}
.back-btn:hover { background-color: var(--accent-hover); }

.detail-container { display: flex; gap: 40px; }
.detail-info { flex: 0 0 350px; }
.detail-gallery { flex: 1; }

.info-label { color: var(--text-muted); font-size: 13px; margin-bottom: 5px; }
.info-value { font-size: 32px; font-weight: 700; color: var(--text-primary); margin-bottom: 25px; }
.info-value.small { font-size: 20px; }

.info-stats { display: flex; gap: 30px; margin-bottom: 25px; }
.stat-box .stat-number { font-size: 42px; font-weight: 700; color: var(--text-primary); }
.stat-box .stat-unit { font-size: 18px; color: var(--text-muted); margin-left: 8px; }

.info-date { margin-bottom: 25px; }
.info-date .date-value { font-size: 28px; font-weight: 600; }
.info-date .time-value { color: var(--text-muted); font-size: 16px; margin-left: 10px; }

.info-note { color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin-bottom: 30px; max-width: 350px; }

.action-buttons { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--border-lighter);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.action-btn:hover { border-color: var(--accent-color); background: var(--accent-light); }
.action-btn svg { width: 20px; height: 20px; }

.gallery-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.gallery-header h2 { font-size: 18px; font-weight: 600; color: var(--text-primary); }

.home-content { max-width: 600px; margin: 0 auto; text-align: center; padding-top: 50px; }
.home-content h1 { font-size: 32px; margin-bottom: 20px; }
.home-content p { color: var(--text-secondary); margin-bottom: 30px; }

.home-form { background: var(--section-bg); border-radius: 15px; padding: 30px; margin-bottom: 30px; }
.home-form .radio-group { display: flex; gap: 20px; justify-content: center; margin-bottom: 20px; }
.home-form label { display: flex; align-items: center; gap: 8px; color: var(--text-primary); cursor: pointer; }
.home-form input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent-color); }
.home-form input[type="text"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-lighter);
    border-radius: 10px;
    background: transparent;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 20px;
}
.home-form input[type="text"]:focus { outline: none; border-color: var(--accent-color); }
.home-form input[type="submit"] {
    padding: 15px 40px;
    background: var(--accent-color);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.home-form input[type="submit"]:hover { background: var(--accent-hover); }

.qr-scan-box { 
    display: inline-block;
    padding: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    background: var(--accent-light);
    margin-top: 30px;
}
.qr-scan-box img,
.qr-scan-box svg { width: 180px; height: 180px; }
.qr-scan-box p { color: var(--accent-color); margin-top: 15px; font-weight: 600; }

.edit-form { background: var(--section-bg); border-radius: 15px; padding: 25px; margin-bottom: 30px; }
.edit-form .form-row { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 15px; }
.edit-form .form-group { flex: 1; min-width: 150px; }
.edit-form label { display: block; color: var(--text-muted); font-size: 12px; margin-bottom: 5px; }
.edit-form input[type="text"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}
.edit-form input[type="text"]:focus { outline: none; border-color: var(--accent-color); }

.upload-section { margin-bottom: 20px; }
.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--accent-color);
    border-radius: 10px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
}
.upload-btn:hover { background: var(--accent-hover); }
.upload-btn input[type="file"] { display: none; }

.bulk-actions {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-tertiary);
    padding: 15px 25px;
    border-radius: 15px;
    display: none;
    gap: 15px;
    align-items: center;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    z-index: 200;
}
.bulk-actions.show { display: flex; }
.bulk-actions label { display: flex; align-items: center; gap: 6px; color: var(--text-primary); cursor: pointer; }

/* ========================================
   NASTAVENI.PHP - SPECIFICKÉ STYLY
   ======================================== */
.radio-group {
    display: flex;
    gap: 20px;
    padding-top: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-primary);
    text-transform: none;
    font-size: 14px;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

.table-actions {
    display: flex;
    gap: 8px;
}

.edit-box {
    background: var(--accent-light);
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.edit-box h3 {
    color: var(--accent-color);
    font-size: 16px;
    margin-bottom: 20px;
}

.user-stats {
    display: flex;
    gap: 20px;
}

.user-stat {
    text-align: center;
}

.user-stat .number {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.user-stat .label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ========================================
   THEME SELECTOR - NÁHLEDY TÉMAT
   ======================================== */
.theme-selector {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.theme-option {
    cursor: pointer;
    border-radius: 12px;
    padding: 4px;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.theme-option:hover {
    border-color: var(--border-lighter);
}

.theme-option.active {
    border-color: var(--accent-color);
}

.theme-option input[type="radio"] {
    display: none;
}

.theme-preview {
    width: 200px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.theme-preview-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 100%;
}

.theme-preview-content {
    position: absolute;
    left: 50px;
    top: 0;
    right: 0;
    height: 100%;
    padding: 10px;
}

.theme-preview-header {
    height: 12px;
    border-radius: 3px;
    margin-bottom: 8px;
    width: 60%;
}

.theme-preview-card {
    height: 20px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.theme-preview-btn {
    display: inline-block;
    height: 14px;
    width: 40px;
    border-radius: 3px;
}

/* Dark-Orange Preview */
.theme-preview.dark-orange .theme-preview-sidebar { background: #111111; }
.theme-preview.dark-orange .theme-preview-content { background: linear-gradient(145deg, #5a5a5a, #3a3a3a); }
.theme-preview.dark-orange .theme-preview-header { background: #ffffff; }
.theme-preview.dark-orange .theme-preview-card { background: rgba(50,50,50,0.8); }
.theme-preview.dark-orange .theme-preview-btn { background: #D79239; }

/* White-Blue Preview */
.theme-preview.white-blue .theme-preview-sidebar { background: #1e293b; }
.theme-preview.white-blue .theme-preview-content { background: linear-gradient(145deg, #e8ecf1, #f5f7fa); }
.theme-preview.white-blue .theme-preview-header { background: #1a1a2e; }
.theme-preview.white-blue .theme-preview-card { background: rgba(255,255,255,0.8); }
.theme-preview.white-blue .theme-preview-btn { background: #3b82f6; }

.theme-name {
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

/* ========================================
   RESPONSIVE - DETAIL & SETTINGS
   ======================================== */
@media (max-width: 1200px) {
    .detail-container { flex-direction: column; }
    .detail-info { flex: none; }
}

@media (max-width: 768px) {
    /* DATA TABLES - Card layout */
    .data-table {
        border-spacing: 0;
    }
    
    .data-table thead {
        display: none;
    }
    
    .data-table tbody tr {
        display: block;
        background: var(--card-bg);
        margin-bottom: 15px;
        border-radius: 12px;
        padding: 15px;
    }
    
    .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        background: transparent;
    }
    
    .data-table td:last-child {
        border-bottom: none;
    }
    
    .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 11px;
        text-transform: uppercase;
        flex-shrink: 0;
        margin-right: 15px;
    }
    
    .data-table tr td:first-child,
    .data-table tr td:last-child {
        border-radius: 0;
    }
    
    .table-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    /* SETTINGS SECTIONS */
    .settings-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .settings-section h2 {
        font-size: 16px;
        flex-wrap: wrap;
    }
    
    /* FORM GROUP - fix padding on mobile */
    .form-group[style*="padding-top"] {
        padding-top: 0 !important;
    }
    
    .form-group[style*="flex:0"] {
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }
    
    /* USER STATS */
    .user-stats {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .user-stat .number {
        font-size: 20px;
    }
    
    /* EDIT BOX */
    .edit-box {
        padding: 15px;
    }
    
    .edit-box h3 {
        font-size: 14px;
        word-break: break-all;
    }
    
    /* BUTTONS */
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    /* Page header */
    .page-header h1 {
        font-size: 24px;
    }
    
    .page-header p {
        font-size: 13px;
    }
    
    /* DETAIL PAGE */
    .info-value {
        font-size: 24px;
        word-break: break-all;
    }
    
    .info-value.small {
        font-size: 16px;
    }
    
    .info-stats {
        flex-wrap: wrap;
    }
    
    .stat-box .stat-number {
        font-size: 32px;
    }
    
    .info-date .date-value {
        font-size: 22px;
    }
    
    .action-buttons {
        gap: 10px;
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Bulk actions */
    .bulk-actions {
        flex-wrap: wrap;
        padding: 12px 15px;
        gap: 10px;
        width: calc(100% - 30px);
        left: 15px;
        transform: none;
    }
    
    .bulk-actions label {
        font-size: 12px;
    }
    
    /* Radio group */
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Theme selector mobile */
    .theme-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .theme-preview {
        width: 180px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .settings-section {
        padding: 15px 12px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"] {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .form-group label {
        font-size: 10px;
    }
    
    .btn-sm {
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .data-table tbody tr {
        padding: 12px;
    }
    
    .user-stat .number {
        font-size: 18px;
    }
    
    .user-stat .label {
        font-size: 9px;
    }
    
    /* Hide less important columns even in card view */
    .data-table td.hide-mobile {
        display: none;
    }
}

/* ========================================
   LAK RACING DESIGN 2026
   ======================================== */

/* Font Tussilago pro SMART SERVICE */
@font-face {
    font-family: 'Tussilago';
    src: url('fonts/Tussilago-Regular.woff2') format('woff2'),
         url('fonts/Tussilago-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Fallback pokud Tussilago není dostupný */
.smart-service {
    font-family: 'Tussilago', 'Montserrat', Arial, sans-serif;
    color: #FFFFFF !important;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Sidebar logo - větší */
.sidebar-logo img {
    height: 50px !important;
    width: auto !important;
}

/* Hlavní obsah - jednolité pozadí */
#main-content {
    background: #111111 !important;
}

.content-wrapper {
    background: transparent;
}

/* ========== SEZNAM ZAKÁZEK - LAK RACING ========== */

/* Vyhledávací lišta - bílá */
.search-container input[type="text"],
.search-input,
input.search-field {
    background: #FFFFFF !important;
    color: #111111 !important;
    border: none !important;
    border-radius: var(--radius-lg) !important;
}

.search-container input[type="text"]::placeholder,
.search-input::placeholder {
    color: #888888 !important;
}

/* Tlačítko Vyhledat - plná oranžová */
.btn-search,
button[type="submit"].search-btn,
input[type="submit"].btn-primary {
    background: #E8461D !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: var(--radius-lg) !important;
    font-weight: 600;
}

.btn-search:hover,
button[type="submit"].search-btn:hover {
    background: #ff5a2e !important;
}

/* Dropdown filtry - tmavé */
.filter-select,
select.form-control {
    background: #111111 !important;
    color: #FFFFFF !important;
    border: 1px solid #333 !important;
    border-radius: var(--radius-lg) !important;
}

/* Tabulka zakázek - střídavé barvy */
.data-table.zakazky-table tbody tr:nth-child(odd) {
    background: #DEDEDE !important;
    color: #111111 !important;
}

.data-table.zakazky-table tbody tr:nth-child(even) {
    background: #FFFFFF !important;
    color: #111111 !important;
}

.data-table.zakazky-table tbody tr td {
    color: #111111 !important;
    border-bottom: 1px solid #cccccc !important;
}

.data-table.zakazky-table tbody tr td a {
    color: #111111 !important;
}

.data-table.zakazky-table tbody tr:hover {
    background: rgba(232, 70, 29, 0.15) !important;
}

/* Klikatelný celý řádek */
.data-table.zakazky-table tbody tr.clickable-row {
    cursor: pointer;
    transition: background 0.2s;
}

/* Záhlaví tabulky */
.data-table.zakazky-table thead {
    background: #111111 !important;
}

.data-table.zakazky-table thead th {
    color: #FFFFFF !important;
    font-weight: 600;
    border-bottom: 2px solid #E8461D !important;
}

/* Číslo zakázky - badge */
.zakázka-badge,
.qr-badge {
    background: #111111 !important;
    color: #FFFFFF !important;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-block;
}

/* Akční tlačítka v tabulce */
.data-table .action-link {
    background: #111111;
    color: #FFFFFF;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    margin: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.data-table .action-link:hover {
    background: #E8461D;
    color: #FFFFFF;
}

/* ========== VÍCE ZAKULACENÉ TLAČÍTKA ========== */
.btn,
button,
input[type="submit"],
input[type="button"],
.upload-btn,
.action-btn {
    border-radius: var(--radius-lg) !important;
}

.btn-sm {
    border-radius: var(--radius-md) !important;
}

/* ========== SIDEBAR - LAK RACING ========== */
#sidebar {
    background: #111111;
}

.sidebar-nav a {
    border-radius: var(--radius-md);
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    background: rgba(232, 70, 29, 0.15);
}

/* ========== LOGIN STRÁNKA - POZADÍ S LOGEM ========== */
.login-page {
    background: #111111;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    right: -150px;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background: url('images/lr-logo-bg.svg') no-repeat center;
    background-size: contain;
    opacity: 0.08;
    pointer-events: none;
}

.login-container {
    position: relative;
    z-index: 1;
}

/* Login formulář */
.login-box {
    background: transparent;
    border: none;
}

.login-box input[type="text"],
.login-box input[type="email"],
.login-box input[type="password"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    color: #FFFFFF;
}

.login-box input[type="text"]:focus,
.login-box input[type="email"]:focus,
.login-box input[type="password"]:focus {
    border-color: #E8461D;
    background: rgba(255, 255, 255, 0.15);
}

.login-box .btn-login {
    background: #E8461D;
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    padding: 14px 30px;
}

.login-box .btn-login:hover {
    background: #ff5a2e;
}

/* ========== GALERIE - DOKUMENTY BADGE ========== */
.doc-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #059669;
    color: #fff;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
}

/* ========== STATISTIKY KARTY ========== */
.stat-card {
    background: #1a1a1a;
    border-radius: var(--radius-lg);
    border: 1px solid #333;
}

.stat-card:hover {
    border-color: #E8461D;
}

.stat-card .stat-number {
    color: #E8461D;
}

/* ========== UPOZORNĚNÍ / ALERTY ========== */
.alert-success {
    background: rgba(5, 150, 105, 0.15);
    border-color: rgba(5, 150, 105, 0.3);
}

.alert-error {
    background: rgba(232, 70, 29, 0.15);
    border-color: rgba(232, 70, 29, 0.3);
}
