/* ОСНОВНІ CSS ЗМІННІ - ТІЛЬКИ ОДИН БЛОК :root */
:root {
    --primary: #FF6B6B;
    --primary-dark: #FF4757;
    --secondary: #2ED573;
    --accent: #5352ED;
    --danger: #FF3838;
    --warning: #FF9F1A;
    --success: #2ED573;
    
    /* СВІТЛА ТЕМА (за замовчуванням) */
    --bg: #F8F9FA;
    --card: #FFFFFF;
    --text: #2F3542;
    --text-light: #747D8C;
    --border: #E8E8E8;
    --dark: #2F3542;
    --dark-light: #747D8C;
    
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.12);
    --radius: 20px;
    --radius-sm: 14px;
    --radius-lg: 24px;
    
    --gradient-primary: linear-gradient(135deg, #FF6B6B, #FF4757);
    --gradient-secondary: linear-gradient(135deg, #2ED573, #1DD1A1);
    --gradient-accent: linear-gradient(135deg, #5352ED, #3742FA);
}

/* ТЕМНА ТЕМА - застосовується коли є атрибут data-theme="dark" */
html[data-theme="dark"] {
    --bg: #1A1E29;
    --card: #2F3542;
    --text: #FFFFFF;
    --text-light: #A4B0BE;
    --border: #404B5A;
    --dark: #2F3542;
    --dark-light: #A4B0BE;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding-bottom: 90px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

/* Мобільний контейнер */
.mobile-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: var(--bg);
    min-height: 100vh;
    position: relative;
}

/* App Header */
.app-header {
    background: var(--dark);
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.app-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.app-title h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.app-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 400;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.header-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Кнопка перемикання теми */
#themeToggle i {
    transition: transform 0.3s ease;
}

#themeToggle:hover i {
    transform: rotate(30deg);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card);
    display: flex;
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding: 10px 0;
    backdrop-filter: blur(20px);
    height: 80px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 11px;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.nav-item i {
    font-size: 22px;
    transition: all 0.3s;
    color: var(--text-light);
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    transform: translateY(-4px);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    top: -10px;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

.nav-badge {
    position: absolute;
    top: 0;
    right: 20px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* Content Area */
.content {
    padding: 20px;
    animation: fadeIn 0.4s ease;
    display: none;
    min-height: calc(100vh - 180px);
}

.content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s;
    color: var(--text);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Input Groups */
.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: all 0.3s;
    background: var(--card);
    font-family: inherit;
    color: var(--text);
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

/* Buttons */
.btn {
    padding: 16px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    letter-spacing: -0.3px;
    color: white;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 213, 115, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 20px;
}

/* Lists */
.list-container {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

.list-container::-webkit-scrollbar {
    width: 4px;
}

.list-container::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 10px;
}

.list-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    background: var(--card);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    cursor: pointer;
    color: var(--text);
}

.list-item:hover {
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.list-item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
}

.meta-badge {
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
}

.meta-date {
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.7;
}

.list-item-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.list-item:hover .list-item-actions {
    opacity: 1;
}

.action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 15px;
}

.action-btn:hover {
    transform: scale(1.1);
}

.action-btn.edit:hover {
    background: var(--accent);
    color: white;
}

.action-btn.delete:hover {
    background: var(--danger);
    color: white;
}

/* Scanner Section */
.scanner-card {
    position: relative;
    overflow: hidden;
    color: var(--text);
}

.scanner-preview {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #2F3542, #1A1E29);
    border-radius: var(--radius);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    display: none;
}

.scanner-preview.active {
    display: block;
    animation: scannerActive 0.5s ease;
}

@keyframes scannerActive {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

#scanner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.6));
}

.scanner-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 150px;
    border: 2px solid var(--primary);
    border-radius: 15px;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.5);
}

.scanner-guide {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Manual Input */
.manual-input {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
    color: var(--text);
}

.quick-input {
    display: flex;
    gap: 10px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding: 10px;
    background: var(--card);
    border-radius: var(--radius-sm);
    color: var(--text);
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: white;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    transform: scale(1.1);
}

.qty-value {
    min-width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
}

/* Recent Items */
.recent-items {
    display: grid;
    gap: 12px;
}

.recent-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--card);
    border-radius: var(--radius-sm);
    animation: slideIn 0.3s ease-out;
    border: 1px solid var(--border);
    color: var(--text);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.recent-item-code {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    color: var(--text);
}

.recent-item-time {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 25px 0;
}

.stat-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    color: var(--text);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-card.green::before {
    background: var(--gradient-secondary);
}

.stat-card.blue::before {
    background: var(--gradient-accent);
}

.stat-card.orange::before {
    background: linear-gradient(135deg, #FF9F1A, #FF7F50);
}

.stat-icon {
    width: 52px;
    height: 52px;
    background: var(--bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 15px;
}

.stat-card .stat-icon {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 71, 87, 0.1));
    color: var(--primary);
}

.stat-card.green .stat-icon {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.1), rgba(29, 209, 161, 0.1));
    color: var(--secondary);
}

.stat-card.blue .stat-icon {
    background: linear-gradient(135deg, rgba(83, 82, 237, 0.1), rgba(55, 66, 250, 0.1));
    color: var(--accent);
}

.stat-card.orange .stat-icon {
    background: linear-gradient(135deg, rgba(255, 159, 26, 0.1), rgba(255, 127, 80, 0.1));
    color: var(--warning);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--dark), var(--dark-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Progress Bar */
.progress-card {
    background: var(--card);
    padding: 24px;
    border-radius: var(--radius);
    margin: 25px 0;
    color: var(--text);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text);
}

.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--border);
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.empty-subtitle {
    font-size: 14px;
    color: var(--text-light);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(47, 53, 66, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: modalFadeIn 0.3s ease;
    backdrop-filter: blur(10px);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--card);
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(60px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    background: var(--dark);
    color: white;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 28px;
    color: var(--text);
}

.modal-footer {
    padding: 20px 28px;
    background: var(--bg);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    color: var(--text);
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--card);
    color: var(--text);
    padding: 18px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 3000;
    animation: notificationSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 320px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-left: 4px solid var(--primary);
    transform-origin: top right;
}

.notification.success {
    border-left-color: var(--success);
}

.notification.error {
    border-left-color: var(--danger);
}

.notification.warning {
    border-left-color: var(--warning);
}

.notification.info {
    border-left-color: var(--accent);
}

@keyframes notificationSlideIn {
    from { transform: translateX(100%) scale(0.9); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes notificationSlideOut {
    from { transform: translateX(0) scale(1); opacity: 1; }
    to { transform: translateX(100%) scale(0.9); opacity: 0; }
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.notification.success .notification-icon {
    background: rgba(46, 213, 115, 0.1);
    color: var(--success);
}

.notification.error .notification-icon {
    background: rgba(255, 56, 56, 0.1);
    color: var(--danger);
}

.notification.warning .notification-icon {
    background: rgba(255, 159, 26, 0.1);
    color: var(--warning);
}

.notification.info .notification-icon {
    background: rgba(83, 82, 237, 0.1);
    color: var(--accent);
}

.notification-content {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
    color: var(--text);
}

/* Loader */
.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(47, 53, 66, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.loader.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Стилі для поля введення кількості */
.quantity-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-input {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    background: var(--card);
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

/* Стилі для кнопок у списку товарів */
.recent-item-card .list-item-actions {
    display: flex !important;
    gap: 8px;
    opacity: 1 !important;
    visibility: visible !important;
}

.recent-item-card .action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
    opacity: 1 !important;
    visibility: visible !important;
}

.recent-item-card .action-btn:hover {
    transform: scale(1.1);
}

.recent-item-card .action-btn.edit:hover {
    background: var(--accent);
    color: white;
}

.recent-item-card .action-btn.delete:hover {
    background: var(--danger);
    color: white;
}

.recent-item-card .action-btn.qty-minus,
.recent-item-card .action-btn.qty-plus {
    background: var(--gradient-primary);
    color: white;
}

.recent-item-card .action-btn.qty-minus:hover,
.recent-item-card .action-btn.qty-plus:hover {
    background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 480px) {
    .content {
        padding: 16px;
    }
    
    .card {
        padding: 20px;
    }
    
    .app-header {
        padding: 14px 16px;
    }
    
    .app-title h1 {
        font-size: 1.3rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .scanner-frame {
        width: 200px;
        height: 120px;
    }
    
    .bottom-nav {
        height: 70px;
    }
    
    .nav-item {
        font-size: 10px;
    }
    
    .nav-item i {
        font-size: 20px;
    }
}

@media (max-width: 360px) {
    .app-header-content {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .header-actions {
        align-self: flex-end;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .quick-input {
        flex-direction: column;
    }
}

/* ДЕБАГ ТЕМИ - ВИДАЛИТИ ПОТІМ */
.theme-debug-panel {
    position: fixed;
    top: 10px;
    left: 10px;
    background: var(--card);
    color: var(--text);
    padding: 15px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    font-family: monospace;
    font-size: 12px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.theme-debug-panel h4 {
    margin: 0 0 10px 0;
    color: var(--primary);
    font-size: 14px;
}

.theme-debug-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
}

.theme-debug-label {
    font-weight: bold;
    color: var(--text-light);
}

.theme-debug-value {
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg);
}

.theme-test-box {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 100px;
    height: 100px;
    background: var(--card);
    border: 3px solid var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: var(--text);
    z-index: 99998;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}