/* 
 * Hlídač Webů - Moderní CSS Stylopis
 * Téma: Midnight Glassmorphism (Tmavé prémiové rozhraní)
 */

:root {
    --bg-app: #0a0d16;
    --bg-card: rgba(22, 28, 45, 0.65);
    --bg-card-hover: rgba(26, 34, 55, 0.8);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --color-primary: #7c4dff;
    --color-primary-hover: #9e75ff;
    --color-secondary: #00b0ff;
    --color-secondary-hover: #40c4ff;
    
    --color-text-main: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-text-dark: #0f172a;
    
    --color-success: #10b981;
    --color-success-bg: rgba(16, 185, 129, 0.15);
    --color-warning: #f59e0b;
    --color-warning-bg: rgba(245, 158, 11, 0.15);
    --color-danger: #ef4444;
    --color-danger-bg: rgba(239, 68, 68, 0.15);
    --color-info: #3b82f6;
    --color-info-bg: rgba(59, 130, 246, 0.15);

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset a základní styly */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-app);
    color: var(--color-text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /* Dva zářící barevné gradienty na pozadí */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(124, 77, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 176, 255, 0.06) 0%, transparent 40%);
    background-attachment: fixed;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--color-secondary-hover);
}

/* Layout aplikace */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hlavička */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-glass);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 28px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.logo-text span {
    background: linear-gradient(135deg, #a78bfa, var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 14px;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.header-nav a:hover, .header-nav a.active {
    background: var(--bg-card);
    border-color: var(--border-glass);
    color: var(--color-secondary);
}

.header-nav a.nav-logout {
    color: #fda4af;
}
.header-nav a.nav-logout:hover {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
}

/* Hlavní obsah */
.app-content {
    flex: 1;
    padding: 32px 0 48px 0;
}

/* Patička */
.app-footer {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
    border-top: 1px solid var(--border-glass);
}

/* Nástěnka - Hlavička */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}

.dashboard-title h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}
.dashboard-title p {
    color: var(--color-text-muted);
    font-size: 14px;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Tlačítka */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    font-family: var(--font-sans);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #6366f1);
    color: white;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-hover), #4f46e5);
    box-shadow: 0 0 15px rgba(124, 77, 255, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    border-color: var(--border-glass);
    color: var(--color-text-main);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--color-secondary);
}

.btn-danger {
    background: var(--color-danger-bg);
    border-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}
.btn-danger:hover {
    background: var(--color-danger);
    border-color: var(--color-danger);
    color: white;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 7px 12px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--color-text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-icon:hover {
    background: var(--bg-card-hover);
    color: var(--color-secondary);
    border-color: rgba(255, 255, 255, 0.15);
}
.btn-icon.btn-danger:hover {
    background: var(--color-danger);
    color: white;
    border-color: var(--color-danger);
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    padding: 0;
}
.btn-link:hover {
    color: var(--color-text-main);
}

/* Statistiky */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(12px);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.stat-icon.purple { background: rgba(124, 77, 255, 0.15); color: #a78bfa; }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.stat-icon.yellow { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.stat-icon.blue { background: rgba(0, 176, 255, 0.15); color: #38bdf8; }

.stat-info {
    display: flex;
    flex-direction: column;
}
.stat-value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}
.stat-label {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Karta */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
}
.card-title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 24px;
}

/* Tabulky */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.data-table th {
    padding: 16px 24px;
    font-weight: 600;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--border-glass);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background-color var(--transition-fast);
}
.data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.font-medium {
    font-weight: 500;
}

.site-link {
    color: var(--color-text-main);
    font-size: 15px;
    font-weight: 600;
}
.site-link:hover {
    color: var(--color-secondary);
}

.external-link {
    color: var(--color-text-muted);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.external-link:hover {
    color: var(--color-text-main);
}

.icon-small {
    font-size: 10px;
}

.table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }

.no-data {
    padding: 48px 0 !important;
    color: var(--color-text-muted);
}
.no-data i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Switch (přepínač) */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--color-success);
    border-color: var(--color-success);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--color-success);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Formuláře */
.input-group {
    display: flex;
    gap: 8px;
}
.input-group input {
    flex: 1;
}
.input-group button {
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.row-align-center {
    display: flex;
    align-items: center;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text-muted);
}

input[type="text"],
input[type="url"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 11px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    font-size: 14px;
    transition: all var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.15);
}

.help-text {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

/* Modální okna (nativní <dialog>) */
.modal-dialog {
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    background: #0f1322;
    color: var(--color-text-main);
    padding: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    max-width: 500px;
    width: 90%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    transition: opacity 0.25s ease-out, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-dialog[open] {
    display: flex;
    flex-direction: column;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Animace backdropu */
.modal-dialog::backdrop {
    background: rgba(4, 6, 12, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.25s ease-out;
}

.modal-dialog[open]::backdrop {
    opacity: 1;
}

.modal-lg {
    max-width: 800px;
}
.modal-xl {
    max-width: 1100px;
}

.dialog-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dialog-header h3 {
    font-size: 18px;
    font-weight: 600;
}
.btn-close-dialog {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}
.btn-close-dialog:hover {
    color: var(--color-text-main);
}

.dialog-body {
    padding: 24px;
    overflow-y: auto;
    max-height: 70vh;
}

.dialog-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Přihlášení */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: rgba(22, 28, 45, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(20px);
    padding: 40px 32px;
    text-align: center;
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}
.login-logo .logo-icon {
    font-size: 40px;
}
.login-logo .logo-text {
    font-size: 28px;
}

.login-subtitle {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.input-with-icon {
    position: relative;
}
.input-with-icon .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}
.input-with-icon input {
    padding-left: 44px;
}

.login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 13px;
    text-align: left;
    line-height: 1.4;
}
.login-alert.error {
    background: var(--color-danger-bg);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}
.login-alert.info {
    background: var(--color-info-bg);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

/* Detail stránky - Layout */
.detail-back-nav {
    margin-bottom: 16px;
}
.detail-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-info-box .info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}
.card-info-box .info-row:last-child {
    border-bottom: none;
}
.info-label {
    color: var(--color-text-muted);
}
.info-value {
    font-weight: 600;
}
.hash-value {
    font-family: monospace;
    font-size: 12px;
}

/* Záložky (Tabs) */
.tab-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.tab-headers {
    display: flex;
    border-bottom: 1px solid var(--border-glass);
    gap: 8px;
}
.tab-button {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.tab-button:hover {
    color: var(--color-text-main);
}
.tab-button.active {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Timeline (Historie změn) */
.timeline {
    position: relative;
    padding-left: 32px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-glass);
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: -32px;
    top: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #171d31;
    border: 2px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--color-text-muted);
    z-index: 1;
}
.timeline-item:first-child .timeline-badge {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.timeline-panel {
    border-radius: var(--radius-lg);
    background: rgba(22, 28, 45, 0.4);
}

.timeline-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.timeline-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-main);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.timeline-actions {
    display: flex;
    gap: 8px;
}

.timeline-body {
    padding: 20px;
}
.text-preview {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-muted);
    font-family: monospace;
    white-space: pre-wrap;
    background: rgba(0, 0, 0, 0.15);
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

/* Přílohy u konkrétní změny */
.change-attachments-list {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.attachments-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 8px;
}
.attachment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.attachment-tag-link {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 12px;
    color: var(--color-text-main);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}
.attachment-tag-link:hover {
    background: rgba(124, 77, 255, 0.1);
    border-color: rgba(124, 77, 255, 0.3);
    color: var(--color-secondary);
}
.tag-size {
    color: var(--color-text-muted);
    font-size: 10px;
}

/* Tab Přílohy - Grid */
.attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.attachment-card {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(22, 28, 45, 0.3);
}

.attachment-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-pdf { color: #f87171; }
.icon-word { color: #60a5fa; }
.icon-excel { color: #34d399; }
.icon-zip { color: #fbbf24; }

.attachment-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}
.attachment-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.attachment-meta {
    font-size: 11px;
    color: var(--color-text-muted);
}
.btn-download {
    flex-shrink: 0;
}

.no-data-inner {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
    background: rgba(22, 28, 45, 0.2);
    border: 1px dashed var(--border-glass);
    border-radius: var(--radius-lg);
}
.no-data-inner i {
    font-size: 44px;
    opacity: 0.4;
    margin-bottom: 16px;
}

/* Diff styly */
.diff-content {
    font-family: monospace;
    white-space: pre-wrap;
    line-height: 1.8;
    background: #090b11;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    max-height: 60vh;
    overflow-y: auto;
    font-size: 13px;
}

.diff-ins {
    background-color: rgba(16, 185, 129, 0.25);
    color: #a7f3d0;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 3px;
    border-bottom: 1px solid #10b981;
}

.diff-del {
    background-color: rgba(239, 68, 68, 0.25);
    color: #fecaca;
    text-decoration: line-through;
    padding: 2px 4px;
    border-radius: 3px;
    border-bottom: 1px solid #ef4444;
}

.diff-no-change {
    padding: 20px;
    text-align: center;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
}

.diff-too-long {
    padding: 12px 16px;
    background: var(--color-warning-bg);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #fde68a;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin-bottom: 16px;
}
.diff-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.diff-split-column {
    background: #090b11;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    max-height: 50vh;
    overflow-y: auto;
}
.diff-split-column h4 {
    margin-bottom: 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
}
.diff-split-column p {
    font-family: monospace;
    font-size: 12px;
    white-space: pre-wrap;
}

/* Screenshot modal a obrázky */
.modal-screenshot {
    max-width: 90%;
}
.img-responsive {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.loading-spinner {
    text-align: center;
    padding: 40px 0;
    color: var(--color-text-muted);
    font-size: 16px;
}
.loading-spinner i {
    margin-right: 8px;
}

/* Pokrok bar */
.progress-bar-container {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
}
.progress-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}
.progress-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Toast notifikace (AJAX odpovědi) */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    background: #1e293b;
    border: 1px solid var(--border-glass);
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.toast.active {
    transform: translateY(0);
    opacity: 1;
}
.toast-success {
    border-left: 4px solid var(--color-success);
}
.toast-success i { color: var(--color-success); }
.toast-error {
    border-left: 4px solid var(--color-danger);
}
.toast-error i { color: var(--color-danger); }
.toast-info {
    border-left: 4px solid var(--color-info);
}
.toast-info i { color: var(--color-info); }
