/*
 * Stopy v srdci v2.0 – dashboard.css
 * Zdroj: dashboard.css + dashboard_guide.css
 *        + inline <style> z user_memorials.php, user_settings.php, user_animations.php
 */

/* =====================================================================
 * DASHBOARD – hlavní styly dashboardu
 * Zdroj: dashboard.css
 * ===================================================================== */
/* 
 * Dashboard - Základní styly
 * Sdíleno mezi user_dashboard a admin_dashboard
 */

/* ====== Základní proměnné ====== */
:root {
    /* Dashboard barvy – identické s v1 */
    --dashboard-sidebar-bg: #555;            /* v1: sidebar background */
    --dashboard-sidebar-active: #b08968;     /* v1: aktivní položka menu */
    --primary-color: #b08968;                /* v1: primary = béžovohnědá */
    --primary-color-dark: #96735a;
    --secondary-color: #d5cbc2;
    --accent-color: #b08968;
    --text-color: #333333;
    --light-bg: #f8f8f8;
    --success-color: #28a745;
    --info-color: #0d6efd;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --border-color: #d5cbc2;
    --hover-color: #e9e5e0;
    --shadow-color: rgba(0, 0, 0, 0.1);

    /* Rozměry a pozicování */
    --sidebar-width: 250px;                  /* v1: 250px */
    --stats-height: 80px;
    --stats-collapsed-height: 40px;
    --border-radius: 8px;
    --content-padding: 20px;
    --header-mobile-height: 50px;
}

/* Reset stylů */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Celá stránka */
body {
    font-family: var(--font-secondary);
    display: flex;
    height: 100vh;
    background: #f4f4f4;
    color: var(--text-color);
}

/* Hlavní kontejner */
.dashboard-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* ====== Levé menu ====== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--dashboard-sidebar-bg);
    color: white;
    padding: 20px;
    height: 100dvh;
    height: 100vh; /* fallback pro starší prohlížeče */
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    z-index: 100;
    transition: left 0.3s ease;
}

/* Logo a název */
.sidebar-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-button.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
    transition: background 0.2s, transform 0.2s;
}

.nav-button.home-button:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.08);
}

.nav-button.home-button svg {
    width: 20px;
    height: 20px;
}

.sidebar-header h2 {
    font-size: 18px;
    color: white;
}

/* Položky menu */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 10px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    text-align: left;
    font-size: 14px;
    transition: background 0.3s;
}

.sidebar-menu a svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    opacity: .9;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-menu a.active {
    background: var(--dashboard-sidebar-active);
    font-weight: bold;
}

/* ====== Hlavní obsah ====== */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding-top: var(--stats-height);
    overflow: hidden;
    transition: margin-left 0.3s ease, width 0.3s ease, padding-top 0.3s ease;
}

/* Hlavní mobilní panel s ovládacími prvky */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-mobile-height);
    background: white;
    box-shadow: 0 2px 5px var(--shadow-color);
    z-index: 90;
    padding: 0 15px;
    align-items: center;
    justify-content: space-between;
}

.mobile-header-title {
    font-weight: bold;
    font-size: 16px;
    color: var(--primary-color);
}

/* Statistiky nahoře */
.stats-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px var(--shadow-color);
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    height: var(--stats-height);
    z-index: 50;
    transition: left 0.3s ease, width 0.3s ease, transform 0.3s ease, height 0.3s ease;
}

/* Kontejner pro mobilní statistiky */
.stats-mobile-container {
    display: none;
    position: fixed;
    top: var(--header-mobile-height);
    right: -250px;
    width: 250px;
    background: white;
    box-shadow: -2px 0 5px var(--shadow-color);
    z-index: 95;
    height: calc(100vh - var(--header-mobile-height));
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 15px;
}

.stats-mobile-container.active {
    right: 0;
}
/* Toggle pro statistiky v desktopu */
.stats-bar .stats-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    text-align: center;
    line-height: 22px;
    font-size: 12px;
    color: var(--primary-color);
}

/* Toggle pro statistiky v mobilní hlavičce */
.mobile-header .stats-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--dashboard-sidebar-bg);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.stats-content {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    transition: opacity 0.3s;
}

.stats-bar.collapsed .stats-content {
    opacity: 0;
    pointer-events: none;
}

.stats-bar.collapsed {
    height: var(--stats-collapsed-height);
    padding: 5px 15px;
}

.stats-bar.collapsed .stats-toggle {
    transform: translateY(-50%) rotate(180deg);
}

.stat-box {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    min-width: 120px;
    flex-grow: 1;
    margin: 5px;
    font-size: 14px;
    transition: transform 0.2s;
}

.stat-box svg {
    stroke: var(--primary-color);
    margin-bottom: 4px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

/* Kontejner pro obsah (nahrazuje iframe) */
.content-container {
    flex: 1;
    padding: var(--content-padding);
    overflow-y: auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px var(--shadow-color);
    margin: 10px;
}

/* Mobilní hamburger menu */
.menu-toggle {
    width: 36px;
    height: 36px;
    z-index: 200;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    position: absolute;
    height: 3px;
    width: 24px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle span {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span::before {
    content: '';
    top: -8px;
}

.menu-toggle span::after {
    content: '';
    top: 8px;
}

/* Aktivní stav hamburgeru */
.menu-toggle.active span {
    background-color: transparent;
}

.menu-toggle.active span::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Overlay pro mobilní menu */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Overlay pro mobilní statistiky */
.stats-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 85;
    opacity: 0;
    transition: opacity 0.3s;
}

.stats-overlay.active {
    display: block;
    opacity: 1;
}

/* ====== Karty a panely ====== */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px var(--shadow-color);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    background-color: var(--light-bg);
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 15px;
}

.card-footer {
    background-color: var(--light-bg);
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

/* QR kódy - karty v memoriálech */
.qr-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    background-color: white;
    transition: box-shadow 0.2s;
}

.qr-card:hover {
    box-shadow: 0 4px 10px var(--shadow-color);
}

.qr-card-header {
    padding: 12px 15px;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.qr-card-title {
    flex: 1;
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.qr-code-text {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.memorial-count-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    color: #333;
    background-color: var(--secondary-color);
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .qr-card-title {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .memorial-count-badge {
        margin-top: 5px;
    }
}

.expand-icon {
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: transform 0.3s;
}

.qr-card.expanded .expand-icon,
.memorial-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.qr-card-body {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.qr-card.expanded .qr-card-body {
    max-height: 2000px;
    border-top: 1px solid var(--border-color);
}

.qr-actions {
    padding: 10px;
}

/* Memorial karty */
.memorial-container {
    padding: 10px;
}

.memorial-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    background-color: white;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.memorial-card:hover {
    box-shadow: 0 2px 8px var(--shadow-color);
}

.memorial-card-header {
    padding: 10px 15px;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    cursor: pointer;
}

.memorial-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.memorial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.memorial-avatar span {
    font-size: 16px;
    text-transform: uppercase;
}

.memorial-card-title {
    flex: 1;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

.memorial-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.memorial-status-indicator.active {
    background-color: var(--success-color);
}

.memorial-status-indicator.inactive {
    background-color: var(--danger-color);
}

.btn-activate {
    margin-right: 10px;
    background-color: var(--danger-color);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
}

.memorial-card-body {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.memorial-card.expanded .memorial-card-body {
    max-height: 1000px;
    padding: 15px;
}

.memorial-info-group {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.memorial-info-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.memorial-info-row {
    display: flex;
    margin-bottom: 5px;
}

.memorial-info-label {
    min-width: 120px;
    font-weight: 500;
    color: #666;
}

.memorial-info-value {
    flex: 1;
}

.memorial-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.memorial-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.btn-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* QR kódy - boxy v samostatném zobrazení */
.qr-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.qr-box {
    width: 250px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.qr-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.qr-box-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.qr-box-title {
    padding: 10px;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    font-weight: bold;
    text-align: center;
    word-break: break-word;
    hyphens: auto;
}

.qr-box-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-image img {
    max-width: 100%;
    max-height: 100%;
}

.qr-box-footer {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    background-color: var(--light-bg);
}

.download-section {
    margin-bottom: 10px;
    text-align: center;
}

.downloads-title {
    font-weight: 500;
    margin-bottom: 8px;
    text-align: center;
    font-size: 14px;
}

.delete-section {
    text-align: center;
    margin-top: 10px;
}

.qr-note {
    font-size: 12px;
    text-align: center;
}
/* ====== Tabulky ====== */
.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

tr:nth-child(even) {
    background-color: var(--light-bg);
}

tr:hover {
    background-color: var(--hover-color);
}

/* ====== Formuláře ====== */
.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-row .form-group {
    flex: 1 0 200px;
    padding: 0 10px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(176, 137, 104, 0.25);
}

label {
    display: inline-block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

.form-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 500;
}

/* ====== Záložky ====== */
.tab-container {
    width: 100%;
}

.tab-navigation {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.tab-link {
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: all 0.3s;
}

.tab-link:hover {
    background-color: var(--hover-color);
}

.tab-link.active {
    color: var(--primary-color);
    font-weight: bold;
}

.tab-link.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
}

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

/* ====== Alerty a zprávy ====== */
.alert {
    position: relative;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* ====== Tlačítka ====== */
.btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    border: none;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
}

.btn-secondary {
    background-color: var(--primary-color-dark);
    color: #fff;
    border: 1px solid var(--primary-color-dark);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-info {
    background-color: var(--info-color);
    color: white;
}

.btn-info:hover {
    background-color: #0b5ed7;
}

.btn-warning {
    background-color: var(--warning-color);
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-lg {
    padding: 10px 20px;
    font-size: 16px;
}

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

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* ====== Utility třídy ====== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.word-break {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* ====== Responzivní design ====== */
@media (max-width: 992px) {
    .stats-bar {
        height: auto;
        flex-wrap: wrap;
    }
    
    .stat-box {
        min-width: calc(50% - 10px);
        margin-bottom: 10px;
    }
    
    .qr-grid {
        justify-content: space-between;
    }
    
    .qr-box {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    /* Zobrazení mobilního headeru */
    .mobile-header {
        display: flex;
    }
    
    /* Hlavní obsah padded pro mobile header */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: var(--header-mobile-height);
    }
    
    /* Skrytí desktop statistik */
    .stats-bar {
        display: none;
    }
    
    /* Zobrazení mobilních statistik */
    .stats-mobile-container {
        display: block;
    }
    
    /* Skrytí sidebar a přidání stínů */
    .sidebar {
        left: -250px;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        top: var(--header-mobile-height);
        height: calc(100dvh - var(--header-mobile-height));
        height: calc(100vh - var(--header-mobile-height)); /* fallback */
        padding-bottom: env(safe-area-inset-bottom, 20px);
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 80px);
        z-index: 96;
        overflow-y: auto;
        overflow-x: visible;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    /* QR Grid - 1 sloupec */
    .qr-box {
        width: 100%;
    }
    
    /* Menší padding pro content */
    .content-container {
        padding: 12px;
        margin: 5px;
    }
    
    /* Formuláře na mobilu */
    .form-row .form-group {
        flex: 1 0 100%;
    }
    
    /* Karty na mobilních zařízeních */
    .card-header {
        padding: 12px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    /* Tlačítka pod sebou na mobilech */
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 5px;
    }
    
    /* Tabulky na mobilech */
    .table-container {
        margin-left: -12px;
        margin-right: -12px;
        width: calc(100% + 24px);
    }
    
    /* Responzivní záložky */
    .tab-navigation {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-link {
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }
    
    .tab-link.active:after {
        display: none;
    }
    
    .tab-link.active {
        background-color: var(--primary-color);
        color: white;
    }
    
    /* Memorial karty na mobilech */
    .memorial-card-header {
        flex-wrap: wrap;
    }
    
    .memorial-card-title {
        width: 100%;
        white-space: normal;
        margin-bottom: 5px;
    }
    
    .btn-activate {
        margin-left: auto;
    }
}

@media (max-width: 576px) {
    /* Menší fonts */
    body {
        font-size: 14px;
    }
    
    .sidebar-menu a {
        padding: 10px 12px;
        font-size: 14px;
        gap: 10px;
    }
    
    /* Ještě menší padding */
    .content-container {
        padding: 8px;
        margin: 3px;
    }
    
    /* Menší padding pro karty */
    .card-header, .card-body, .card-footer {
        padding: 10px;
    }
    
    /* Menší formuláře */
    .form-control {
        padding: 6px 10px;
    }
    
    /* Menší tlačítka */
    .btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* Přizpůsobení info blocks */
    .memorial-info-row {
        flex-direction: column;
    }
    
    .memorial-info-label {
        margin-bottom: 3px;
    }
}

/* ====== Stav načítání ====== */
.loading-indicator {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-bg);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ====== Animace ====== */
.fade-in {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.memorial-avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

/* Styly pro profilovou fotografii v detailu memoriálu */

/* Sekce s profilovou fotografií */
.memorial-photo-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

/* Kontejner pro profilovou fotografii */
.memorial-profile-photo-container {
    margin-right: 20px;
    flex-shrink: 0;
}

/* Samotná profilová fotografie */
.memorial-profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--light-bg);
    box-shadow: 0 2px 5px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Stylování obrázku uvnitř profilové fotografie */
.memorial-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder pro chybějící profilovou fotografii */
.memorial-profile-photo-placeholder {
    background-color: var(--primary-color);
    color: white;
    font-size: 48px;
    font-weight: bold;
}

/* Jméno a data zesnulého */
.memorial-profile-name {
    flex: 1;
}

.memorial-profile-name h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: var(--primary-color);
}

.memorial-dates {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Responzivní úpravy pro mobilní zařízení */
@media (max-width: 576px) {
    .memorial-photo-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .memorial-profile-photo-container {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .memorial-profile-photo {
        width: 100px;
        height: 100px;
    }
    
    .memorial-profile-name h4 {
        font-size: 18px;
    }
}

/* =====================================================================
 * DASHBOARD GUIDE – průvodce pro nové uživatele
 * Zdroj: dashboard_guide.css
 * ===================================================================== */
/**
 * Stopy v srdci - Dashboard Guide
 * CSS pro modální průvodce dashboardem
 */

/* Overlay - překrytí celé obrazovky s průhledným pozadím */
.dashboard-guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: var(--z-index-modal-backdrop, 900);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    animation: guideOverlayFadeIn 0.4s ease;
}

/* Modální okno průvodce */
.dashboard-guide-modal {
    background-color: var(--white, #ffffff);
    border-radius: var(--border-radius-large, 12px);
    box-shadow: var(--shadow-large, 0 6px 15px rgba(0, 0, 0, 0.2));
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: guideModalSlideIn 0.5s ease;
}

/* Hlavička průvodce */
.guide-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-light, rgba(176, 137, 104, 0.1));
}

.guide-title {
    margin: 0;
    font-family: var(--font-title, 'Patrick Hand', cursive);
    font-size: 1.8rem;
    color: var(--primary-color, #b08968);
}

.guide-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary, #555);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast, 0.2s ease);
}

.guide-close-btn:hover {
    color: var(--primary-color, #b08968);
}

/* Obsah průvodce */
.guide-content {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    overflow-x: hidden;
}

/* Krok průvodce */
.guide-step {
    display: none;
}

.guide-step.active {
    display: block;
    animation: guideStepFadeIn 0.4s ease;
}

.guide-step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.guide-step-title {
    font-family: var(--font-title, 'Patrick Hand', cursive);
    font-size: 1.5rem;
    color: var(--primary-color, #b08968);
    margin-top: 15px;
    margin-bottom: 10px;
}

.guide-step-description {
    font-family: var(--font-secondary, 'Patrick Hand', cursive);
    font-size: 1.1rem;
    color: var(--text-color, #2C2C2C);
    line-height: 1.5;
    margin-bottom: 15px;
    max-width: 600px;
}

/* Kontejner pro obrázek */
.guide-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.guide-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--primary-light, rgba(176, 137, 104, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary-color, #b08968);
    box-shadow: var(--shadow-medium, 0 4px 10px rgba(0, 0, 0, 0.15));
}

.guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder pro obrázek */
.guide-placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light, rgba(176, 137, 104, 0.1));
}

.guide-icon {
    font-size: 4rem;
}

/* Rozbalovací část "Zobrazit více" */
.guide-more-container {
    width: 100%;
    max-width: 600px;
    margin-top: 10px;
}

.guide-more-btn {
    background: none;
    border: none;
    color: var(--primary-color, #b08968);
    text-decoration: underline;
    cursor: pointer;
    font-family: var(--font-secondary, 'Patrick Hand', cursive);
    font-size: 1rem;
    padding: 5px 10px;
    margin-bottom: 10px;
    transition: color var(--transition-fast, 0.2s ease);
}

.guide-more-btn:hover {
    color: var(--primary-hover, #96735a);
}

.guide-more-content {
    display: none;
    background-color: var(--primary-light, rgba(176, 137, 104, 0.1));
    border-radius: var(--border-radius-medium, 8px);
    padding: 15px;
    margin-top: 10px;
    text-align: left;
    animation: guideMoreContentShow 0.3s ease;
}

.guide-more-content.active {
    display: block;
}

.guide-more-content p {
    font-family: var(--font-secondary, 'Patrick Hand', cursive);
    font-size: 1rem;
    color: var(--text-color, #2C2C2C);
    line-height: 1.5;
    margin-bottom: 10px;
}

.guide-more-content ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.guide-more-content li {
    font-family: var(--font-secondary, 'Patrick Hand', cursive);
    font-size: 1rem;
    color: var(--text-color, #2C2C2C);
    line-height: 1.5;
    margin-bottom: 5px;
}

/* Patička průvodce */
.guide-footer {
    padding: 15px 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-light, rgba(176, 137, 104, 0.1));
}

/* Indikátory kroků */
.guide-indicators {
    display: flex;
    gap: 10px;
}

.guide-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-color, #bcbcbc);
    cursor: pointer;
    transition: background-color var(--transition-fast, 0.2s ease);
}

.guide-indicator.active {
    background-color: var(--primary-color, #b08968);
}

/* Navigační tlačítka */
.guide-navigation {
    display: flex;
    gap: 10px;
}

.guide-hide-option {
    padding: 15px 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    display: none;
}

.guide-hide-option.active {
    display: flex;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--secondary-color, #bcbcbc);
    transition: .4s;
    border-radius: 24px;
}

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

input:checked + .toggle-slider {
    background-color: var(--primary-color, #b08968);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.guide-hide-text {
    font-family: var(--font-secondary, 'Patrick Hand', cursive);
    font-size: 1rem;
    color: var(--text-color, #2C2C2C);
}

/* Animace */
@keyframes guideOverlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes guideModalSlideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes guideStepFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes guideMoreContentShow {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsivita */
@media (max-width: 768px) {
    .dashboard-guide-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .guide-title {
        font-size: 1.5rem;
    }
    
    .guide-step-title {
        font-size: 1.3rem;
    }
    
    .guide-image {
        width: 150px;
        height: 150px;
    }
    
    .guide-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .guide-navigation {
        width: 100%;
        justify-content: space-between;
    }
    
    .guide-hide-option {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .guide-hide-confirm {
        margin-top: 10px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dashboard-guide-overlay {
        padding: 10px;
    }
    
    .dashboard-guide-modal {
        width: 100%;
        max-height: 100vh;
        border-radius: 8px;
    }
    
    .guide-content {
        padding: 15px;
    }
    
    .guide-image {
        width: 120px;
        height: 120px;
    }
    
    .guide-icon {
        font-size: 3rem;
    }
    
    .guide-step-title {
        font-size: 1.2rem;
    }
    
    .guide-step-description {
        font-size: 1rem;
    }
}

/* Vylepšení pro obrázky a videa v průvodci */
.guide-image img,
.guide-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Zajištění správného zobrazení na Safari a iOS */
.guide-image video {
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    overflow: hidden;
}

/* Oprava případných problémů s rozměry */
@supports (-webkit-overflow-scrolling: touch) {
    /* Speciální opravy pro iOS zařízení */
    .guide-image video {
        width: 100% !important;
        height: 100% !important;
        object-position: center;
    }
}

/* =====================================================================
 * USER MEMORIALS – inline styles z user_memorials.php
 * ===================================================================== */

@media (max-width: 768px) {
    /* Jméno v kartách s tlačítkem */
    .has-activate-button .memorial-card-title {
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Tlačítko aktivace na mobilech */
    .btn-activate {
        white-space: nowrap;
        padding: 4px 5px;
        font-size: 11px;
    }
    
    /* Přepínání textů pro desktop a mobil */
    .activate-text-desktop {
        display: none;
    }
    
    .activate-text-mobile {
        display: inline;
    }
}

/* Pro desktop zobrazíme plnou verzi textu */
@media (min-width: 769px) {
    .activate-text-mobile {
        display: none;
    }
    
    .activate-text-desktop {
        display: inline;
    }
}

/* Styly pro video animace */
.memorial-avatar video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.memorial-profile-photo video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* PŘIDÁNO: Styl pro trial badge */
.trial-badge {
    font-size: 0.85em;
    color: #b08968;
    font-weight: normal;
}

/* ✅ PŘIDÁNO: Info boxy v přehledu memoriálů */
.memorial-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin: 0 0 12px 0;
    border-radius: 8px;
    border-left: 4px solid;
    font-size: 1em;
    line-height: 1.55;
}

.memorial-notice .notice-icon {
    font-size: 1.4em;
    flex-shrink: 0;
    margin-top: 2px;
}

.memorial-notice .notice-content {
    flex: 1;
    min-width: 0;
}

.memorial-notice .notice-content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.05em;
}

.memorial-notice .notice-content p {
    margin: 0;
    font-size: 0.95em;
    color: inherit;
    opacity: 0.9;
}

/* Informační - modrý */
.notice-info {
    background-color: #e8f4f8;
    border-left-color: #5b9bd5;
    color: #2c5f7c;
}

/* Varování - oranžový/žlutý */
.notice-warning {
    background-color: #fff8e1;
    border-left-color: #f0a830;
    color: #7a5d00;
}

/* Mobilní optimalizace info boxů */
@media (max-width: 575px) {
    .memorial-notice {
        padding: 12px 14px;
        gap: 10px;
        margin: 0 0 10px 0;
    }
    
    .memorial-notice .notice-icon {
        font-size: 1.2em;
    }
    
    .memorial-notice .notice-content strong {
        font-size: 0.95em;
    }
    
    .memorial-notice .notice-content p {
        font-size: 0.88em;
    }
}



/* =====================================================================
 * USER SETTINGS – inline styles z user_settings.php
 * ===================================================================== */

/* Styly pro pole hesla s ikonou zobrazení/skrytí */
.password-field-container {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #555;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

.password-toggle:hover {
    color: var(--primary-color, #b08968);
    background-color: rgba(0, 0, 0, 0.05);
}

/* Třída pro platná pole - zelený okraj a ikona zaškrtnutí */
.field-valid {
    border-color: #2ecc71 !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" fill="%232ecc71"/></svg>');
    background-position: right 40px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 70px !important;
}

/* Třída pro neplatná pole - červený okraj a ikona křížku */
.field-error {
    border-color: #e74c3c !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" fill="%23e74c3c"/></svg>');
    background-position: right 40px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 70px !important;
}


/* =====================================================================
 * USER ANIMATIONS – inline styles z user_animations.php
 * ===================================================================== */

/* Úprava základního rozložení prvků */
.animation-tool-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow-x: hidden;
}

/* Zajištění dostatečné šířky iframe */
#animation-tool-frame {
    width: 100%;
    min-width: 100%;
    border: none;
    overflow: hidden;
}

/* Optimalizace rozložení pro user dashboard */
.content-container .did-control-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
}

.content-container .did-control-btn,
.content-container .did-credits-info {
    flex: 1;
    min-width: 0;
    max-width: calc(33.33% - 8px);
}

/* Úprava zobrazení na menších obrazovkách */
@media (max-width: 1100px) {
    .content-container {
        padding: 0 !important;
    }
    
    .page-header {
        padding-left: 15px;
    }
    
    .content-container .did-control-buttons {
        padding: 0 15px;
    }
}

/* Extra styl pro iframe obsah */
#animation-tool-frame {
    height: 900px;  /* Zvýšení výchozí výšky */
}

/* Styl pro upozornění */
.alert {
    margin: 0 0 20px 0;
}

/* ======================================================
   GDPR CONSENT POPUP
   Zdroj: V1 templates/layout/gdpr_popup.php (inline style)
   ====================================================== */

/* Overlay - blokuje interakci s pozadím */
.gdpr-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  z-index: 9998;
  display: block;
  animation: gdprFadeIn 0.3s ease;
}

@keyframes gdprFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ====== DESKTOP VERSION ====== */
.gdpr-consent-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  max-width: 90%;
  background-color: white;
  color: #333333;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  z-index: 9999;
  font-family: 'Patrick Hand', 'Comic Sans MS', 'Arial', cursive;
  overflow: hidden;
  display: none;
  animation: gdprPopupFadeIn 0.5s ease;
}

@keyframes gdprPopupFadeIn {
  from { opacity: 0; transform: translate(-50%, -55%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.gdpr-popup-content {
  display: flex;
  flex-direction: column;
}

.gdpr-popup-header {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background-color: #f8f8f8;
}

.gdpr-popup-header h3 {
  margin: 0;
  font-size: 20px;
  color: #b08968;
  font-weight: 600;
}

.gdpr-popup-body {
  padding: 20px;
}

.gdpr-popup-body p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.5;
}

.gdpr-popup-body a {
  color: #b08968;
  text-decoration: underline;
}

.gdpr-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.gdpr-consent-popup .cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.gdpr-consent-popup .cookie-option:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.gdpr-consent-popup .cookie-option-text {
  display: flex;
  flex-direction: column;
}

.gdpr-consent-popup .cookie-option-description {
  font-size: 14px;
  color: #666;
  margin-top: 3px;
}

.gdpr-consent-popup .cookie-toggle {
  width: 46px;
  height: 24px;
  background-color: #ccc;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s;
}

.gdpr-consent-popup .cookie-toggle.enabled {
  background-color: #b08968;
}

.gdpr-consent-popup .toggle-slider {
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.gdpr-consent-popup .cookie-toggle.enabled .toggle-slider {
  left: 24px;
}

.gdpr-popup-footer {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(0,0,0,0.05);
  background-color: #f8f8f8;
}

.gdpr-consent-popup .cookie-btn {
  flex: 1;
  display: block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  border: 1px solid transparent;
  padding: 10px 15px;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
  margin: 0 8px;
}

.gdpr-consent-popup .cookie-btn:first-child { margin-left: 0; }
.gdpr-consent-popup .cookie-btn:last-child  { margin-right: 0; }

.gdpr-consent-popup .cookie-btn-primary {
  color: white;
  background-color: #b08968;
  border-color: #b08968;
}

.gdpr-consent-popup .cookie-btn-primary:hover:not([disabled]) {
  background-color: #96735a;
  border-color: #96735a;
}

.gdpr-consent-popup .cookie-btn-light {
  color: #333;
  background-color: #f8f9fa;
  border-color: #ddd;
}

.gdpr-consent-popup .cookie-btn-light:hover {
  background-color: #e2e6ea;
  border-color: #dae0e5;
}

/* ====== MOBILE VERSION ====== */
.gdpr-consent-popup-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  color: #333333;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
  z-index: 9999;
  font-family: 'Patrick Hand', 'Comic Sans MS', 'Arial', cursive;
  display: none;
  animation: gdprSlideUp 0.5s ease;
}

@keyframes gdprSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.gdpr-popup-mobile-content {
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.gdpr-popup-mobile-header {
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.gdpr-popup-mobile-header h3 {
  margin: 0;
  font-size: 18px;
  color: #b08968;
  font-weight: 600;
}

.gdpr-popup-mobile-body {
  margin-bottom: 15px;
}

.gdpr-popup-mobile-body p {
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.4;
}

.gdpr-popup-mobile-body a {
  color: #b08968;
  text-decoration: underline;
}

.gdpr-mobile-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gdpr-mobile-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.gdpr-mobile-option label {
  flex: 1;
  font-size: 15px;
}

.gdpr-mobile-checkbox {
  width: 20px;
  height: 20px;
  margin-left: 10px;
  accent-color: #b08968;
}

.gdpr-popup-mobile-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gdpr-mobile-btn {
  display: block;
  width: 100%;
  padding: 12px 10px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: all 0.3s ease;
}

.gdpr-mobile-btn-primary {
  color: white;
  background-color: #b08968;
  border-color: #b08968;
}

.gdpr-mobile-btn-primary:not([disabled]):hover {
  background-color: #96735a;
  border-color: #96735a;
}

.gdpr-mobile-btn-light {
  color: #333;
  background-color: #f8f9fa;
  border-color: #ddd;
  margin-bottom: 5px;
}

.gdpr-mobile-btn-light:hover {
  background-color: #e2e6ea;
  border-color: #dae0e5;
}

/* Chybové zprávy */
.gdpr-popup-error,
.gdpr-popup-mobile-error {
  margin-bottom: 15px;
  border-left: 4px solid #e74c3c;
}

/* Responzivita */
@media (max-width: 576px) {
  .gdpr-consent-popup {
    display: none !important;
  }
  .gdpr-consent-popup-mobile {
    border-radius: 0;
  }
}

@media (min-width: 577px) {
  .gdpr-consent-popup-mobile {
    display: none !important;
  }
}

/* ================================================================
   MEMORIAL ACTION BUTTONS – globální (mimo media query!)
   ================================================================ */
.mem-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
    padding: 0 14px !important;
    height: 34px !important;
    border: none !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    box-sizing: border-box;
    line-height: 1;
    white-space: nowrap;
    transition: opacity .15s;
}

.mem-btn:hover { opacity: .85; }

.mem-btn-edit    { background: #2563eb !important; color: #fff !important; }
.mem-btn-publish { background: #16a34a !important; color: #fff !important; }
.mem-btn-hide    { background: #dc2626 !important; color: #fff !important; }
.mem-btn-activate{ background: #dc2626 !important; color: #fff !important; }
.mem-btn-view    { background: #374151 !important; color: #fff !important; }

@media (max-width: 600px) {
    .memorial-actions {
        flex-direction: column;
        gap: 8px;
    }
    .memorial-buttons-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }
    .memorial-view-container {
        width: 100%;
    }
    .btn-container {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .mem-btn {
        justify-content: center !important;
        width: 100% !important;
        height: 42px !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
    }
}

/* ================================================================
   MEMORIAL STATUS BADGES (dvě kolečka jako v partner dashboardu)
   ================================================================ */
.memorial-status-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-right: 8px;
}

.mem-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-color);
    white-space: nowrap;
}

.mem-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mem-status-dot.dot-active {
    background: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, .25);
}

.mem-status-dot.dot-inactive {
    background: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, .25);
}

/* ================================================================
   MEMORIAL STATUS BADGES (dvě kolečka jako v partner dashboardu)
   ================================================================ */
@media (max-width: 600px) {
    .memorial-status-badges {
        flex-wrap: wrap;
        gap: 6px;
    }
    .mem-status-badge {
        font-size: 11px;
    }
}

/* ================================================================
   DASHBOARD LANG SWITCHER (1:1 z partner dashboardu)
   ================================================================ */
.dash-lang-dropdown {
    position: relative;
    padding: 12px 0 16px;
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 16px;
    overflow: visible;
}



.partner-lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 12px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    letter-spacing: .04em;
}

.partner-lang-btn:hover { background: rgba(255,255,255,.22); }

.partner-lang-menu {
    position: absolute;
    bottom: calc(100% - 10px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    overflow: hidden;
    z-index: 1000;
    border: 1px solid rgba(0,0,0,.08);
}

@media (max-width: 768px) {
    .partner-lang-menu {
        position: fixed;
        bottom: auto;
        top: auto;
        left: 10px;
        right: 10px;
        width: auto;
        /* JS nastaví top pozici dynamicky */
    }
}

.partner-lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: #334155;
    font-size: 13px;
    transition: background .12s;
    border-bottom: 1px solid #f1f5f9;
}

.partner-lang-item:last-child { border-bottom: none; }
.partner-lang-item:hover { background: #f8fafc; }
.partner-lang-item.active { background: #f0fdf4; }
.partner-lang-item-name { flex: 1; color: #334155; }
.partner-lang-item-code { font-size: 11px; font-weight: 600; color: #94a3b8; letter-spacing: .06em; }
