﻿/* #BEGIN ***skladito/shared/styles/base.css*** */
/* 2026-03-15 */
:root {
    --brand-primary: #667eea;
    --brand-secondary: #764ba2;
    --brand-primary-light: #dde0ff;
    --brand-primary-border: #c0c7ff;
    --brand-primary-12: rgba(102, 126, 234, 0.13);
    --brand-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --brand-light: #f0f0ff;
    --brand-chip: #dde4ff;
    --brand-chip-active: #c8d2ff;
    --brand-focus: #667eea;
    --brand-active: #764ba2;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', sans-serif; background: #F5F5F5; color: #333; padding-bottom: 200px; }

.header {
    background: var(--brand-gradient);
    color: white;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-content { display: flex; align-items: center; }
.back-btn { background: none; border: none; color: white; font-size: 24px; cursor: pointer; padding: 5px 10px; margin-right: 10px; }
.header-title { flex: 1; }
.header h1 { font-size: 22px; font-weight: 600; }
.burger-btn { background: none; border: none; color: white; font-size: 24px; cursor: pointer; padding: 5px 10px; }

.burger-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 199; display: none; }
.burger-overlay.active { display: block; }
.burger-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    z-index: 200;
    transition: right 0.3s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 40px;
}
.burger-menu.active { right: 0; }
.burger-header { background: var(--brand-gradient); color: white; padding: 20px; }
.burger-header h2 { font-size: 20px; margin-bottom: 5px; }
.burger-header p { font-size: 12px; opacity: 0.9; }
.burger-content { padding: 20px; }
.burger-item { padding: 15px; border-bottom: 1px solid #eee; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.burger-item:active { background: #f5f5f5; }
.burger-item-icon { font-size: 24px; }
.burger-item-text { flex: 1; }
.burger-item-title { font-weight: 600; font-size: 16px; }
.burger-item-subtitle { font-size: 12px; color: #555; margin-top: 2px; }

.storage-indicator { background: #f5f5f5; padding: 12px 15px; margin: 15px 0; border-radius: 8px; }
.storage-bar { height: 6px; background: #e0e0e0; border-radius: 3px; overflow: hidden; margin-top: 8px; }
.storage-fill { height: 100%; background: var(--brand-primary); transition: width 0.3s, background 0.3s; }
.storage-fill.warning { background: #ff9800; }
.storage-fill.danger { background: #f44336; }

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

.empty-state { text-align: center; padding: 60px 20px; color: #555; }
.empty-state-icon { font-size: 64px; margin-bottom: 15px; }
.empty-state-text { font-size: 18px; margin-bottom: 20px; }

.card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s;
}
.card:active { transform: scale(0.98); }
.card-header { display: flex; align-items: center; margin-bottom: 8px; }
.card-icon { font-size: 32px; margin-right: 12px; flex-shrink: 0; }
.card-thumb { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; margin-right: 12px; flex-shrink: 0; }
.card-title { flex: 1; font-size: 18px; font-weight: 600; }
.card-badge { background: var(--brand-primary); color: white; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.card-info { color: #444; font-size: 14px; margin-top: 5px; }
.card-photo { width: 100%; max-height: 200px; object-fit: cover; border-radius: 8px; margin-top: 10px; }

.card-with-photo {
    position: relative;
    height: 120px;
    overflow: hidden;
    padding: 0;
    margin-bottom: 12px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.card-with-photo:active { transform: scale(0.98); }
.card-photo-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; }
.card-photo-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 15px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: white; }
.card-photo-overlay .card-title { color: white; font-size: 16px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.card-photo-overlay .card-title span { color: white !important; opacity: 0.9; }

.received-badge { display: inline-block; background: #17a2b8; color: white; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; margin-left: 8px; }

.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cards-grid.single-column { grid-template-columns: 1fr; }
.cards-grid .card-new { margin-bottom: 0; }
@media (max-width: 360px) {
    .cards-grid { grid-template-columns: 1fr; }
}
@media (min-width: 768px) {
    .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.view-toggle { display: flex; gap: 4px; margin-left: auto; }
.view-toggle button { background: none; border: 2px solid #ddd; border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 16px; color: #555; }
.view-toggle button.active { border-color: var(--brand-primary); color: var(--brand-primary); background: var(--brand-light); }

.breadcrumb-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: var(--brand-chip);
    color: var(--brand-primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.breadcrumb-chip:active { transform: scale(0.95); background: var(--brand-chip-active); }
.breadcrumb-chip--current { background: var(--brand-primary); color: white; cursor: default; }
.breadcrumb-chip--current:active { transform: none; background: var(--brand-primary); }
.breadcrumb-separator { color: #555; font-size: 14px; margin: 0 2px; }

.btn {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background 0.2s;
}
.btn:active { background: var(--brand-secondary); }
.btn-secondary { background: #6c757d; }
.btn-danger { background: #dc3545; }
.btn-small { padding: 8px 16px; font-size: 14px; width: auto; display: inline-block; margin: 5px; }

.action-bar {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    position: sticky;
    bottom: 0;
    background: white;
    padding: 12px 0;
    border-top: 1px solid #eee;
    z-index: 10;
}
.action-bar .action-btn { flex: 1; padding: 14px; border: none; border-radius: 12px; font-size: 22px; cursor: pointer; text-align: center; transition: transform 0.15s; }
.action-bar .action-btn:active { transform: scale(0.93); }
.action-btn-save { background: #28a745; color: white; }
.action-btn-delete { background: #dc3545; color: white; }
.action-btn-cancel { background: #dc3545; color: white; }

.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; padding: 20px; overflow-y: auto; }
.modal.active { display: flex; align-items: center; justify-content: center; }
.modal-content { background: white; border-radius: 16px; padding: 24px; padding-bottom: 24px; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-header { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
#langModal { z-index: 2001 !important; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.form-input { width: 100%; padding: 12px; border: 2px solid #ddd; border-radius: 8px; font-size: 16px; }
.form-input:focus { outline: none; border-color: var(--brand-primary); }
.form-select { width: 100%; padding: 12px; border: 2px solid #ccc; border-radius: 8px; font-size: 16px; background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.search-bar { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 12px 40px 12px 12px; border: 2px solid #ddd; border-radius: 12px; font-size: 16px; }
.search-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 20px; color: #555; }

.fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 100;
}
.fab:active { transform: scale(0.95); }
.fab-scan {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 56px;
    height: 56px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 100;
}
.fab-menu { position: fixed; bottom: 150px; right: 20px; z-index: 99; display: none; }
.fab-menu.active { display: block; }
.fab-menu-item { background: white; padding: 12px 20px; margin-bottom: 10px; border-radius: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); cursor: pointer; white-space: nowrap; transition: transform 0.2s; }
.fab-menu-item:active { transform: scale(0.95); }

.photo-preview { width: 100%; max-height: 300px; object-fit: cover; border-radius: 8px; margin-top: 10px; }
.photo-upload { display: none; }
.photo-upload-btn { display: flex; align-items: center; justify-content: center; padding: 14px; border: none; border-radius: 10px; cursor: pointer; background: var(--brand-primary); color: white; font-size: 15px; font-weight: 600; transition: all 0.2s; margin-top: 10px; }
.photo-upload-btn:active { transform: scale(0.95); opacity: 0.9; }
.photo-actions { display: flex; gap: 10px; margin-top: 10px; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.alert-error { background: #f8d7da; color: #721c24; }

.toast-msg {
    background: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3000;
    max-width: 80%;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
}
.toast-msg.show {
    opacity: 1;
}

.lang-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 9999; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.lang-overlay-flag { font-size: 80px; animation: langPulse 0.8s infinite; }
@keyframes langPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.migration-screen { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--brand-gradient); z-index: 9999; color: white; justify-content: center; align-items: center; flex-direction: column; }
.migration-screen.active { display: flex; }
.migration-spinner { border: 4px solid rgba(255,255,255,0.3); border-top: 4px solid white; border-radius: 50%; width: 48px; height: 48px; animation: mspin 1s linear infinite; margin-bottom: 20px; }
@keyframes mspin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* #END ***skladito/shared/styles/base.css*** */
