/* Reset a základní styly */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #1e293b;
    --gray: #64748b;
    --light: #f1f5f9;
    --white: #ffffff;
	
	--border: #1e293b;
    
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    --radius: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation - Glassmorphism style */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-sm);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius);
}

.lang-link {
    color: var(--gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.lang-link:hover,
.lang-link.active {
    color: var(--primary);
}

.separator {
    color: var(--gray);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.qr-demo {
    width: 300px;
    height: 300px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.demo-qr {
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
}

/* Glassmorphism Cards */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-lg);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--gray);
    line-height: 1.7;
}

/* Benefits Section */
.benefits {
    padding: 6rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.benefit-item {
    text-align: center;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.benefit-item p {
    color: var(--gray);
}

/* CTA Section */
.cta {
    padding: 6rem 0;
}

.cta-content {
    text-align: center;
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        gap: 1.5rem;
        z-index: 1000;
        animation: slideDown 0.3s ease;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-link {
        font-size: 1.125rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .language-switcher {
        justify-content: center;
        width: 100%;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .qr-demo {
        width: 250px;
        height: 250px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Auth Pages */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.auth-card {
    max-width: 450px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: var(--radius-lg);
}

.auth-card h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 2rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control.error {
    border-color: var(--danger);
}

.error-message {
    display: block;
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-hint {
    display: block;
    color: var(--gray);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.btn-block {
    width: 100%;
}

.auth-footer {
    text-align: center;
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Dashboard */
.dashboard {
    padding: 4rem 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: var(--gray);
    font-size: 1.125rem;
}

.dashboard-header .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
}

.empty-icon {
    color: var(--gray);
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.empty-state h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 2rem;
}

/* QR Grid */
.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.qr-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    transition: transform 0.3s;
}

.qr-card:hover {
    transform: translateY(-4px);
}

.qr-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.qr-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.qr-type-badge.vcard {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.qr-type-badge.profile {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.qr-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.05);
    color: var(--dark);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--primary);
    color: var(--white);
}

.qr-card-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.qr-uid {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.qr-date {
    font-size: 0.875rem;
    color: var(--gray);
}

.qr-card-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .qr-grid {
        grid-template-columns: 1fr;
    }
}

/* Wide Auth Card */
.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.auth-card-wide {
    width: 100%;
    padding: 3rem;
    border-radius: var(--radius-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 3rem;
}

.auth-form-wide {
    margin-bottom: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

.required {
    color: var(--danger);
}

.optional {
    color: var(--gray);
    font-weight: 400;
    font-size: 0.875rem;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
    padding: 0.5rem;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--primary);
}

.password-toggle.active .eye-icon {
    opacity: 0.5;
}

/* Password Strength Meter */
.password-strength {
    margin-top: 0.75rem;
}

.strength-meter {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-meter-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-meter-fill.strength-weak {
    background: var(--danger);
}

.strength-meter-fill.strength-fair {
    background: #f59e0b;
}

.strength-meter-fill.strength-good {
    background: #eab308;
}

.strength-meter-fill.strength-strong {
    background: #22c55e;
}

.strength-meter-fill.strength-excellent {
    background: var(--success);
}

.strength-text {
    font-size: 0.875rem;
    color: var(--gray);
}

.strength-text span {
    font-weight: 600;
}

.strength-text .strength-weak {
    color: var(--danger);
}

.strength-text .strength-fair {
    color: #f59e0b;
}

.strength-text .strength-good {
    color: #eab308;
}

.strength-text .strength-strong {
    color: #22c55e;
}

.strength-text .strength-excellent {
    color: var(--success);
}

/* GDPR Section */
.gdpr-section {
    background: rgba(99, 102, 241, 0.05);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    gap: 0.75rem;
    cursor: pointer;
    align-items: flex-start;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-text {
    color: var(--dark);
    line-height: 1.6;
}

.checkbox-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

.checkbox-label.error .checkbox-text {
    color: var(--danger);
}

.gdpr-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--gray);
    line-height: 1.6;
}

.gdpr-notice svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .auth-card-wide {
        padding: 2rem 1.5rem;
    }
    
    .gdpr-section {
        padding: 1.5rem;
    }
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.forgot-password-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Success Card */
.success-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.success-icon {
    color: var(--success);
    margin-bottom: 2rem;
}

.success-card h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-card p {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.filters-bar {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.filters-form {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
}

.filter-group select {
    min-width: 150px;
}

.search-group {
    flex: 1;
    min-width: 300px;
}

.search-wrapper {
    position: relative;
}

.search-wrapper input {
    padding-right: 3rem;
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.qr-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.qr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.qr-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.qr-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-inactive {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.qr-card-menu {
    position: relative;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--gray);
    transition: color 0.3s ease;
}

.menu-btn:hover {
    color: var(--dark);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 100;
    display: none;
    padding: 0.5rem 0;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a,
.dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--dark);
    transition: background 0.2s ease;
    font-size: 0.875rem;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background: var(--primary-light);
}

.dropdown-menu button.text-danger {
    color: var(--danger);
}

.dropdown-menu hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.qr-card-body {
    padding: 1.5rem;
    text-align: center;
}

.qr-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: var(--radius);
}

.qr-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-card-body h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--dark);
}

.qr-type-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.qr-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.875rem;
}

.qr-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
}

.qr-date {
    color: var(--gray);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--dark);
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-pages {
    display: flex;
    gap: 0.5rem;
}

.pagination-page {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--dark);
    transition: all 0.3s ease;
}

.pagination-page:hover,
.pagination-page.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: 90%;
}

.modal-content h3 {
    margin: 0 0 1rem 0;
    color: var(--dark);
}

.modal-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .filters-form {
        flex-direction: column;
    }
    
    .filter-group,
    .search-group {
        width: 100%;
    }
    
    .qr-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    margin: 0 0 0.4rem 0;
    font-size: 2rem;
    color: var(--dark);
}

.dashboard-subtitle {
    margin: 0;
    color: var(--gray);
}

.dashboard-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.stat-icon-purple {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.stat-icon-pink {
    background: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
}

.stat-icon-blue {
    background: linear-gradient(135deg, #0ea5e9 0%, #22c55e 100%);
}

.stat-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.6rem;
    color: var(--dark);
}

.stat-content p {
    margin: 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-section {
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.section-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--dark);
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.empty-state svg {
    color: var(--gray-light);
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: var(--dark);
}

.empty-state p {
    margin: 0 0 1.25rem 0;
    color: var(--gray);
}

.empty-state-small {
    padding: 0.75rem 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.qr-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.qr-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius);
    transition: background 0.2s ease, transform 0.2s ease;
}

.qr-item:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateX(3px);
}

.qr-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #6366f1 0%, #22c55e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.qr-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: var(--dark);
}

.qr-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--gray);
    flex-wrap: wrap;
}

.qr-type {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.qr-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.qr-actions {
    margin-left: auto;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--gray);
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.5rem;
    border-radius: var(--radius);
}

.popular-rank {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.popular-info h4 {
    margin: 0 0 0.15rem 0;
    font-size: 0.9rem;
    color: var(--dark);
}

.popular-views {
    font-size: 0.8rem;
    color: var(--gray);
}

.chart-container {
    margin-top: 0.5rem;
    min-height: 260px;
}

.alert {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-icon {
    margin-top: 0.1rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

@media (max-width: 960px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 1.5rem 1rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-actions {
        width: 100%;
    }

    .dashboard-actions .btn {
        flex: 1;
    }
}

/* ========================================
   CREATE QR PAGE
======================================== */
.create-qr-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1.5rem;
    align-items: flex-start;
}

.qr-type-selector h2 {
    margin: 0 0 1.25rem 0;
    font-size: 1.15rem;
    color: var(--dark);
}

.qr-types-grid {
    display: grid;
    gap: 0.75rem;
}

.qr-type-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qr-type-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateX(3px);
}

.qr-type-card.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.qr-type-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

/* Barevné ikony podle typu */
.qr-type-card[data-type="url"] .qr-type-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.qr-type-card[data-type="text"] .qr-type-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.qr-type-card[data-type="email"] .qr-type-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.qr-type-card[data-type="wifi"] .qr-type-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.qr-type-card[data-type="vcard"] .qr-type-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.qr-type-card[data-type="profile"] .qr-type-icon {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.qr-type-card h3 {
    margin: 0 0 0.2rem 0;
    font-size: 0.95rem;
    color: var(--dark);
}

.qr-type-card p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.3;
}

.qr-form-container {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
}

.qr-form-section {
    display: none;
}

.qr-form-section.active {
    display: block;
}

.qr-form-section h3 {
    margin: 0 0 1.25rem 0;
    font-size: 1.15rem;
    color: var(--dark);
}

.form-section-title {
    margin: 1.75rem 0 1rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-error {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--error);
}

.required {
    color: var(--error);
}

.optional {
    font-weight: 400;
    color: var(--gray);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Avatar Upload */
.avatar-upload-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-preview svg {
    color: var(--gray);
}

.avatar-upload-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Custom Fields */
.custom-fields-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.custom-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    align-items: flex-start;
}

.custom-field-row .form-group {
    margin-bottom: 0;
}

.btn-remove-field {
    width: 38px;
    height: 38px;
    margin-top: 1.7rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--error);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove-field:hover {
    background: var(--error);
    border-color: var(--error);
    color: #fff;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    /*border-top: 1.5px solid var(--border);*/
}

@media (max-width: 1100px) {
    .create-qr-layout {
        grid-template-columns: 1fr;
    }
    
    .qr-types-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .custom-field-row {
        grid-template-columns: 1fr;
    }
    
    .btn-remove-field {
        margin-top: 0;
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}


.dropdown-menu a {
    text-decoration: none;
}

.dropdown-menu a:hover {
    text-decoration: none;
}
