/* --- 1. GLOBÁLNÍ PROMĚNNÉ BARVY & BASE --- */
:root {
    --app-bg: #f8fafc;              /* Jemný šedo-modrý podklad */
    --header-bg: #1e293b;          /* Moderní tmavě břidlicová (Slate 800) místo sytě modré */
    --header-active: #334155;       /* Světlejší břidlicová pro aktivní záložku */
    --primary-accent: #3b82f6;      /* Moderní soft modrá */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;       /* Velmi velice jemná hraniční čára */
    --card-bg: #ffffff;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
}

html, body {
    height: 100%;
    font-size: 0.9rem;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
}

body {
    display: flex;
    flex-direction: column;
    background-color: var(--app-bg);
}

/* --- 2. HORNÍ LIŠTA (HEADER) --- */
.app-header {
    background-color: var(--header-bg);
    padding: 0.35rem 0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.app-header .navbar-brand {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: #fff !important;
    margin-right: 1.5rem;
}

.app-header .nav-tabs {
    border-bottom: none;
    gap: 0.25rem;
}

.app-header .nav-link {
    color: #94a3b8; /* Soft šedá pro neaktivní */
    border: none !important;
    padding: 0.45rem 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm) !important;
    transition: all 0.15s ease-in-out;
}

.app-header .nav-link:hover {
    color: #f1f5f9;
    background-color: rgba(255, 255, 255, 0.05);
}

.app-header .nav-link.active {
    color: #ffffff !important;
    background-color: var(--header-active) !important;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.user-panel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.user-panel .btn-outline-light {
    border-color: #475569;
    color: #cbd5e1;
}

.user-panel .btn-outline-light:hover {
    background-color: #334155;
    border-color: #334155;
    color: #fff;
}

/* --- 3. AKČNÍ LIŠTA (TOOLBAR) --- */
.action-toolbar {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.toolbar-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Zpříjemněné tlačítka v toolbar */
.btn-action {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
    background-color: #fff;
    color: #475569;
    transition: all 0.15s ease-in-out;
}

.btn-action:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}

.btn-action i {
    font-size: 1.35rem;
    margin-bottom: 0.15rem;
}

/* Speciální úpravy barev pro primární tlačítka ( soft tlačítka ) */
.btn-action.btn-success {
    background-color: #10b981; /* Emerald green místo zářivé zelené */
    border-color: #10b981;
    color: #fff;
}
.btn-action.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
}

.btn-action.btn-outline-primary {
    color: #2563eb;
    border-color: #bfdbfe;
    background-color: #eff6ff;
}
.btn-action.btn-outline-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* Oddělovač */
.v-divider {
    width: 1px;
    height: 36px;
    background-color: var(--border-color);
    margin: 0 0.25rem;
}

/* --- 4. FILTRY --- */
.filter-panel {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
    background-color: #f8fafc;
}

.filter-panel select {
    border-color: #cbd5e1;
    color: #334155;
    font-size: 0.8rem;
}

/* --- 5. OBSAH A PATKA --- */
.main-content {
    flex: 1 1 auto;
    padding: 1.25rem;
    overflow: auto;
}

.content-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    height: 100%;
    padding: 1.25rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.app-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 0.35rem 1.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}