/* ============================================
   REZEPTE GURU - STYLE.CSS
   Modernes, State-of-the-Art Design
   ============================================ */

/* === CSS VARIABLES - STANDARD THEME === */
:root {
    /* Farben - Dunkles elegantes Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    
    /* Akzentfarben - Warmes Gold/Orange */
    --accent-primary: #f59e0b;
    --accent-secondary: #fbbf24;
    --accent-tertiary: #fcd34d;
    --accent-glow: rgba(245, 158, 11, 0.3);
    --accent-subtle: rgba(245, 158, 11, 0.1);
    
    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    
    /* Status */
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Borders & Shadows */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    
    /* Layout */
    --header-height: 72px;
    --bottom-nav-height: 80px;
    --max-width: 1400px;
    
    /* Card Sizes */
    --card-image-height: 180px;
    --card-title-size: 1rem;
}

/* === LIGHT THEME === */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-glass: rgba(0, 0, 0, 0.02);
    --bg-glass-hover: rgba(0, 0, 0, 0.05);
    
    --accent-primary: #d97706;
    --accent-secondary: #f59e0b;
    --accent-glow: rgba(217, 119, 6, 0.2);
    --accent-subtle: rgba(217, 119, 6, 0.1);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #f8fafc;
    
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .header .logo-text {
    color: #1e293b;
}

[data-theme="light"] .header .user-menu {
    color: #475569;
}

[data-theme="light"] .bottom-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .modal-content,
[data-theme="light"] .slide-panel-content {
    background: #ffffff !important;
}

[data-theme="light"] .recipe-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .recipe-card-content {
    background: linear-gradient(to top, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.9) 50%, transparent 100%);
}

[data-theme="light"] .btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border-color: #e2e8f0;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
}

[data-theme="light"] .dropdown-menu {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .filter-bar {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .admin-stat-card,
[data-theme="light"] .admin-settings-card,
[data-theme="light"] .admin-users-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

/* === LIGHT THEME - Recipe Cards === */
[data-theme="light"] .recipe-card-title {
    color: #1e293b;
}

[data-theme="light"] .recipe-card-meta {
    color: rgba(51, 65, 85, 0.8);
}

[data-theme="light"] .recipe-card-content {
    background: linear-gradient(to top, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 255, 255, 0.95) 30%,
        rgba(255, 255, 255, 0.85) 60%,
        transparent 100%
    );
}

[data-theme="light"] .recipe-card-category {
    background: var(--accent-primary);
    color: white;
}

/* === LIGHT THEME - Filter Bar === */
[data-theme="light"] .sort-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #475569;
}

[data-theme="light"] .sort-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #1e293b;
}

[data-theme="light"] .search-input {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #1e293b !important;
}

[data-theme="light"] .search-input::placeholder {
    color: #94a3b8 !important;
}

[data-theme="light"] .recipe-count strong {
    color: #1e293b;
}

/* === LIGHT THEME - Dropdown Menu === */
[data-theme="light"] .dropdown-menu {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .dropdown-item {
    color: #475569;
}

[data-theme="light"] .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #1e293b;
}

[data-theme="light"] .dropdown-item.active {
    color: var(--accent-primary);
    background: rgba(217, 119, 6, 0.1);
}

[data-theme="light"] .dropdown-item-checkbox {
    color: #475569;
}

[data-theme="light"] .dropdown-item-checkbox:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #1e293b;
}

[data-theme="light"] .dropdown-item-checkbox label {
    color: inherit;
}

[data-theme="light"] .dropdown-title {
    color: #94a3b8;
}

/* === LIGHT THEME - Modals === */
[data-theme="light"] .modal-title,
[data-theme="light"] .slide-panel-title {
    color: #1e293b;
}

[data-theme="light"] .modal-section-title {
    color: #1e293b;
}

[data-theme="light"] .modal-meta-info {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .meta-badge {
    background: rgba(0, 0, 0, 0.05);
    color: #475569;
}

[data-theme="light"] .ingredient-item {
    color: #334155;
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .instructions-text {
    color: #334155;
}

/* === LIGHT THEME - Admin Panel === */
[data-theme="light"] .admin-section-title {
    color: #1e293b;
}

[data-theme="light"] .stat-value {
    color: #1e293b;
}

[data-theme="light"] .stat-label {
    color: #64748b;
}

[data-theme="light"] .user-info .name {
    color: #1e293b;
}

[data-theme="light"] .user-info .email {
    color: #64748b;
}

[data-theme="light"] .user-stats-row {
    color: #94a3b8;
}

[data-theme="light"] .role-select {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #334155;
}

[data-theme="light"] .admin-slider {
    background: #e2e8f0;
}

[data-theme="light"] .admin-hint {
    color: #94a3b8;
}

/* === LIGHT THEME - Section Title === */
[data-theme="light"] .section-title {
    color: #1e293b;
}

/* === LIGHT THEME - Empty State === */
[data-theme="light"] .empty-state {
    color: #64748b;
}

[data-theme="light"] .empty-state h3 {
    color: #334155;
}

/* === LIGHT THEME - Navigation === */
[data-theme="light"] .nav-item {
    color: #64748b;
}

[data-theme="light"] .nav-item.active {
    color: var(--accent-primary);
}

[data-theme="light"] .nav-item:hover {
    color: #334155;
}

/* === LIGHT THEME - Bring Button (keep white text) === */
[data-theme="light"] .bring-export-btn {
    color: white;
}

/* === DARK THEME === */
[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-glass: rgba(255, 255, 255, 0.02);
    --bg-glass-hover: rgba(255, 255, 255, 0.04);
    
    --accent-primary: #fbbf24;
    --accent-secondary: #fcd34d;
    --accent-glow: rgba(251, 191, 36, 0.2);
    --accent-subtle: rgba(251, 191, 36, 0.08);
    
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-medium: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .header {
    background: rgba(0, 0, 0, 0.95) !important;
}

[data-theme="dark"] .bottom-nav {
    background: rgba(0, 0, 0, 0.98) !important;
}

[data-theme="dark"] .modal-content,
[data-theme="dark"] .slide-panel-content {
    background: #0a0a0a !important;
}

/* === PINK THEME (Rosa/Magenta) === */
[data-theme="pink"] {
    --bg-primary: #1a0a12;
    --bg-secondary: #2a101c;
    --bg-tertiary: #3a1828;
    --bg-glass: rgba(255, 148, 201, 0.05);
    --bg-glass-hover: rgba(255, 148, 201, 0.1);
    
    --accent-primary: #ff94c9;
    --accent-secondary: #ffb0d8;
    --accent-tertiary: #ffcce7;
    --accent-glow: rgba(255, 148, 201, 0.3);
    --accent-subtle: rgba(255, 148, 201, 0.1);
    
    --text-primary: #fff0f7;
    --text-secondary: #ffcce7;
    --text-muted: #9a6a80;
    
    --border-subtle: rgba(255, 148, 201, 0.15);
    --border-medium: rgba(255, 148, 201, 0.25);
}

[data-theme="pink"] .header,
[data-theme="pink"] .bottom-nav {
    background: rgba(26, 10, 18, 0.95) !important;
    border-color: rgba(255, 148, 201, 0.2) !important;
}

[data-theme="pink"] .modal-content,
[data-theme="pink"] .slide-panel-content {
    background: #2a101c !important;
}

/* === PURPLE THEME (Dunkelviolett) === */
[data-theme="purple"] {
    --bg-primary: #120a1a;
    --bg-secondary: #1e1028;
    --bg-tertiary: #2a1838;
    --bg-glass: rgba(180, 84, 232, 0.05);
    --bg-glass-hover: rgba(180, 84, 232, 0.1);
    
    --accent-primary: #b454e8;
    --accent-secondary: #c77ef0;
    --accent-tertiary: #daa8f5;
    --accent-glow: rgba(180, 84, 232, 0.3);
    --accent-subtle: rgba(180, 84, 232, 0.1);
    
    --text-primary: #f8f0ff;
    --text-secondary: #daa8f5;
    --text-muted: #8a6a9a;
    
    --border-subtle: rgba(180, 84, 232, 0.15);
    --border-medium: rgba(180, 84, 232, 0.25);
}

[data-theme="purple"] .header,
[data-theme="purple"] .bottom-nav {
    background: rgba(18, 10, 26, 0.95) !important;
    border-color: rgba(180, 84, 232, 0.2) !important;
}

[data-theme="purple"] .modal-content,
[data-theme="purple"] .slide-panel-content {
    background: #1e1028 !important;
}

/* === BLUE THEME (Blassblau/Ocean) === */
[data-theme="blue"] {
    --bg-primary: #0a1420;
    --bg-secondary: #0f1d2e;
    --bg-tertiary: #162840;
    --bg-glass: rgba(56, 189, 248, 0.05);
    --bg-glass-hover: rgba(56, 189, 248, 0.1);
    
    --accent-primary: #38bdf8;
    --accent-secondary: #7dd3fc;
    --accent-tertiary: #bae6fd;
    --accent-glow: rgba(56, 189, 248, 0.3);
    --accent-subtle: rgba(56, 189, 248, 0.1);
    
    --text-primary: #f0f9ff;
    --text-secondary: #bae6fd;
    --text-muted: #5b8a9a;
    
    --border-subtle: rgba(56, 189, 248, 0.15);
    --border-medium: rgba(56, 189, 248, 0.25);
}

[data-theme="blue"] .header,
[data-theme="blue"] .bottom-nav {
    background: rgba(10, 20, 32, 0.95) !important;
    border-color: rgba(56, 189, 248, 0.2) !important;
}

[data-theme="blue"] .modal-content,
[data-theme="blue"] .slide-panel-content {
    background: #0f1d2e !important;
}

/* === RED THEME (Rot/Crimson) === */
[data-theme="red"] {
    --bg-primary: #1a0a0a;
    --bg-secondary: #2a1010;
    --bg-tertiary: #401818;
    --bg-glass: rgba(239, 68, 68, 0.05);
    --bg-glass-hover: rgba(239, 68, 68, 0.1);
    
    --accent-primary: #ef4444;
    --accent-secondary: #f87171;
    --accent-tertiary: #fca5a5;
    --accent-glow: rgba(239, 68, 68, 0.3);
    --accent-subtle: rgba(239, 68, 68, 0.1);
    
    --text-primary: #fef2f2;
    --text-secondary: #fca5a5;
    --text-muted: #9a5454;
    
    --border-subtle: rgba(239, 68, 68, 0.15);
    --border-medium: rgba(239, 68, 68, 0.25);
}

[data-theme="red"] .header,
[data-theme="red"] .bottom-nav {
    background: rgba(26, 10, 10, 0.95) !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
}

[data-theme="red"] .modal-content,
[data-theme="red"] .slide-panel-content {
    background: #2a1010 !important;
}

/* === CARD SIZE VARIANTS === */
[data-card-size="small"] {
    --card-image-height: 140px;
    --card-title-size: 0.875rem;
}

[data-card-size="medium"] {
    --card-image-height: 180px;
    --card-title-size: 1rem;
}

[data-card-size="large"] {
    --card-image-height: 240px;
    --card-title-size: 1.125rem;
}

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Animated Background Gradient */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(245, 158, 11, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(245, 158, 11, 0.1), transparent);
    pointer-events: none;
    z-index: -1;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--accent-secondary); }

/* === UTILITY CLASSES === */
.hidden { display: none !important; }

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.glass-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-medium);
    transform: translateY(-2px);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 20px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-inverse);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-glass-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* === FORM ELEMENTS === */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* File Input */
.file-input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    background: var(--bg-glass);
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.file-input-wrapper:hover {
    border-color: var(--accent-primary);
    background: var(--accent-subtle);
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-input-wrapper i {
    font-size: 2rem;
    color: var(--text-muted);
}

.file-input-wrapper:hover i {
    color: var(--accent-primary);
}

/* === LOADING OVERLAY === */
#loading-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-lg);
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    z-index: 10000;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 100;
}

/* Clean header - only logo centered, NOT fixed - scrolls with page */
.header.header-logo-only {
    position: relative;
    justify-content: center;
    padding: 15px 16px;
    height: auto;
    min-height: auto;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
}

.header.header-logo-only .logo {
    margin: 0 auto;
    padding: 0;
}

.header.header-logo-only .image-logo {
    margin: 0 auto;
    padding: 0;
    height: auto;
}

.header.header-logo-only .image-logo img {
    height: var(--logo-height, 120px);
    width: auto;
    object-fit: contain;
    display: block;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.logo i { color: var(--accent-primary); }

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-menu:hover {
    border-color: var(--accent-primary);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    display: none;
}

@media (min-width: 768px) {
    .user-name { display: block; }
}

/* === BOTTOM NAVIGATION === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 var(--space-md);
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: linear-gradient(180deg, rgba(15, 20, 30, 0.95) 0%, rgba(10, 15, 25, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
}

/* Bottom nav now visible on all screen sizes since header buttons were removed */

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.nav-item i { 
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: rgba(255, 255, 255, 0.8);
}

.nav-item.active { 
    color: #fff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.15) 100%);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.nav-item.active i {
    color: #a78bfa;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.5));
    transform: scale(1.1);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #818cf8, #a78bfa);
    border-radius: 0 0 4px 4px;
}

/* FAB - Floating Action Button */
.fab {
    position: relative;
    top: -24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.4),
        0 0 0 4px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.fab:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 12px 40px rgba(99, 102, 241, 0.5),
        0 0 0 6px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.fab:active { 
    transform: translateY(-2px) scale(0.98);
}

/* === MAIN CONTENT === */
.main-content {
    min-height: 100vh;
    padding-top: var(--header-height);
    padding-bottom: calc(var(--bottom-nav-height) + var(--space-lg));
}

@media (min-width: 768px) {
    .main-content { padding-bottom: var(--space-xl); }
}

/* Override when header-logo-only is used */
#app-content:has(.header-logo-only) .main-content {
    padding-top: 0;
}

/* Fallback for browsers without :has() support */
.main-content.no-header-padding {
    padding-top: 0 !important;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-lg);
}

/* === LOGIN SCREEN === */
#login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: var(--space-2xl);
    text-align: center;
}

.login-logo {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    animation: float 3s ease-in-out infinite;
}

.login-subtitle {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.google-btn {
    width: 100%;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    background: var(--text-primary);
    color: var(--text-inverse);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.google-btn svg {
    width: 20px;
    height: 20px;
}

/* === PENDING SCREEN === */
#pending-screen {
    min-height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.pending-card {
    width: 100%;
    max-width: 480px;
    padding: var(--space-2xl);
    text-align: center;
}

.pending-icon {
    font-size: 4rem;
    color: var(--warning);
    margin-bottom: var(--space-lg);
    animation: pulse 2s ease-in-out infinite;
}

/* === SEARCH BAR === */
.search-bar {
    position: relative;
    margin-bottom: var(--space-lg);
}

.search-bar input {
    width: 100%;
    padding: 14px 24px 14px 48px;
    font-size: 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    outline: none;
}

.search-bar input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.search-bar i {
    position: absolute;
    left: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* === FILTER CHIPS === */
.filter-chips {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar { display: none; }

.filter-chip {
    flex-shrink: 0;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-chip:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.filter-chip.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--text-inverse);
}

/* === SECTION HEADER === */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: var(--space-xl) 0 var(--space-lg);
}

.section-title {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.section-title i { color: var(--accent-primary); }

/* === VIEW TOGGLE BUTTONS === */
.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 4px;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.view-toggle-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.view-toggle-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.2));
    color: #a78bfa;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

/* === CATEGORY VIEW === */
.category-view {
    display: none;
}

.category-view.active {
    display: block;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.category-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.15));
    border-color: rgba(99, 102, 241, 0.4);
    color: #a78bfa;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.category-btn i {
    font-size: 1.1rem;
}

.category-btn .count {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-btn.active .count {
    background: rgba(167, 139, 250, 0.3);
}

.category-recipes {
    display: none;
}

.category-recipes.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    animation: fadeIn 0.3s ease;
}

.category-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.category-back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* === LIST VIEW === */
.list-view {
    display: none;
}

.list-view.active {
    display: block;
}

.recipe-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
}

.recipe-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    width: 100%;
    font-family: inherit;
    border-bottom: 1px solid var(--border-subtle);
}

.recipe-list-item:last-child {
    border-bottom: none;
}

.recipe-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.recipe-list-item i {
    color: var(--accent-primary);
    font-size: 0.8rem;
    opacity: 0.6;
}

.recipe-list-item .recipe-list-title {
    flex: 1;
}

.recipe-list-item .recipe-list-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: 8px;
}

.recipe-list-letter {
    padding: 12px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Grid view visibility */
.recipe-grid-container {
    display: block;
}

.recipe-grid-container.hidden {
    display: none;
}

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

/* Mobile adjustments for views */
@media (max-width: 768px) {
    .view-toggle-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .category-btn {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .recipe-list-item {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .category-recipes.active {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === RECIPE GRID === */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.recipe-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.recipe-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.recipe-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.recipe-card:hover .recipe-card-image img {
    transform: scale(1.1);
}

.recipe-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}

.recipe-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 3rem;
}

.recipe-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    z-index: 1;
}

.recipe-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.recipe-card-category {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: 4px 10px;
    background: var(--accent-primary);
    color: var(--text-inverse);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    z-index: 2;
}

/* === EMPTY STATE === */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.empty-state h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.empty-state p {
    color: var(--text-muted);
    max-width: 300px;
}

/* === SLIDE PANEL === */
.slide-panel {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 200;
}

.slide-panel.active {
    display: flex;
    flex-direction: column;
}

.slide-panel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.slide-panel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 90vh;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform var(--transition-slow);
}

.slide-panel.active .slide-panel-content {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .slide-panel-content {
        left: 50%;
        right: auto;
        width: 100%;
        max-width: 600px;
        transform: translateX(-50%) translateY(100%);
    }

    .slide-panel.active .slide-panel-content {
        transform: translateX(-50%) translateY(0);
    }
}

.slide-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.slide-panel-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.slide-panel-body {
    padding: var(--space-lg);
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.slide-panel-handle {
    width: 40px;
    height: 4px;
    background: var(--border-medium);
    border-radius: var(--radius-full);
    margin: var(--space-sm) auto var(--space-md);
}

/* === IMPORT OPTIONS === */
.import-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

@media (min-width: 480px) {
    .import-options {
        grid-template-columns: repeat(4, 1fr);
    }
}

.import-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.import-option:hover {
    border-color: var(--accent-primary);
    background: var(--accent-subtle);
}

.import-option i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.import-option span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* === CATEGORY TAGS === */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 6px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.category-tag:hover {
    border-color: var(--accent-primary);
}

.category-tag.selected {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--text-inverse);
}

/* === IMAGE PREVIEW === */
.image-preview-wrapper {
    position: relative;
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.image-preview-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
}

.image-preview-remove:hover {
    background: var(--error);
}

/* === FORM ACTIONS === */
.form-actions {
    display: flex;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
    margin-top: var(--space-lg);
}

.form-actions .btn {
    flex: 1;
}

/* === MODAL === */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: var(--space-md);
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    opacity: 0;
    transition: all var(--transition-base);
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.modal-close:hover {
    background: var(--error);
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.modal-image-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 4rem;
}

.modal-body {
    padding: var(--space-xl);
    max-height: calc(90vh - 300px);
    overflow-y: auto;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.modal-meta-item i {
    color: var(--accent-primary);
}

.modal-section {
    margin-bottom: var(--space-xl);
}

.modal-section-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.modal-section-title i {
    color: var(--accent-primary);
}

/* === INGREDIENTS LIST === */
.ingredients-list {
    display: grid;
    gap: var(--space-sm);
}

.ingredient-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 10px 14px;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ingredient-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-medium);
    border-radius: 4px;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.ingredient-item.checked .ingredient-check {
    background: var(--success);
    border-color: var(--success);
}

.ingredient-item.checked .ingredient-text {
    text-decoration: line-through;
    opacity: 0.6;
}

.instructions-text {
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-wrap;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + var(--space-md));
    right: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 1000;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 14px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    transform: translateX(120%);
    transition: transform var(--transition-base);
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--error); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.info { border-left: 4px solid var(--info); }

.toast-icon { font-size: 1.25rem; }
.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--error); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info .toast-icon { color: var(--info); }

.toast-message {
    font-size: 0.875rem;
}

/* === ADMIN PANEL === */
.admin-section {
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-xl);
}

.admin-section-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.admin-section-title i {
    color: var(--accent-primary);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.admin-stat-card {
    padding: var(--space-lg);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-primary);
}

.admin-stat-card h4 {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}

.admin-stat-card .value {
    font-size: 2rem;
    font-weight: 700;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.user-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

@media (min-width: 640px) {
    .user-row {
        grid-template-columns: 2fr 1fr 1fr auto;
    }
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info .name { font-weight: 500; }
.user-info .email { font-size: 0.75rem; color: var(--text-muted); }

.role-select {
    padding: 8px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* === CONFIRM MODAL === */
.confirm-modal-content {
    max-width: 400px;
    text-align: center;
    padding: var(--space-2xl);
}

.confirm-icon {
    font-size: 3rem;
    color: var(--warning);
    margin-bottom: var(--space-lg);
}

.confirm-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.confirm-message {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.confirm-actions {
    display: flex;
    gap: var(--space-md);
}

.confirm-actions .btn {
    flex: 1;
}

/* === SUPPORTED SITES === */
.supported-sites {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-glass);
    border-radius: var(--radius-md);
}

.supported-sites-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.supported-sites-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.supported-site {
    padding: 2px 10px;
    font-size: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* =============================================
   ADMIN PANEL - NEUES DESIGN
   ============================================= */

.admin-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.admin-section-title i {
    color: var(--accent-primary);
}

/* Statistiken Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.admin-stat-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.admin-stat-card.highlight {
    background: linear-gradient(135deg, var(--accent-subtle), transparent);
    border-color: var(--accent-primary);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    background: var(--bg-glass);
    color: var(--text-muted);
}

.stat-icon.users { color: #3b82f6; background: rgba(59, 130, 246, 0.1); }
.stat-icon.active { color: #22c55e; background: rgba(34, 197, 94, 0.1); }
.stat-icon.pending { color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.stat-icon.admin { color: #a855f7; background: rgba(168, 85, 247, 0.1); }
.stat-icon.recipes { color: #ec4899; background: rgba(236, 72, 153, 0.1); }
.stat-icon.categories { color: #14b8a6; background: rgba(20, 184, 166, 0.1); }
.stat-icon.images { color: #8b5cf6; background: rgba(139, 92, 246, 0.1); }
.stat-icon.public { color: #06b6d4; background: rgba(6, 182, 212, 0.1); }
.stat-icon.avg { color: var(--accent-primary); background: var(--accent-subtle); }

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

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Settings Card */
.admin-settings-card,
.admin-users-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.admin-settings-card h4,
.admin-users-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.admin-settings-card h4 i,
.admin-users-card h4 i {
    color: var(--accent-primary);
}

.admin-setting-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-setting-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    min-width: 120px;
}

.admin-setting-row label i {
    color: var(--text-muted);
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.slider-min,
.slider-max {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.admin-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-tertiary);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.admin-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--accent-glow);
    transition: transform 0.15s ease;
}

.admin-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.setting-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-primary);
    min-width: 60px;
    text-align: center;
    padding: 6px 12px;
    background: var(--accent-subtle);
    border-radius: var(--radius-sm);
}

.admin-hint {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* User List */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.user-row:hover {
    border-color: var(--border-medium);
    background: var(--bg-glass-hover);
}

.user-row.pending {
    border-left: 3px solid var(--warning);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.user-info img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-subtle);
}

.user-info .name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.user-info .email {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.user-stats-row {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.user-stats-row span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-stats-row i {
    font-size: 0.7rem;
    opacity: 0.7;
}

.role-select {
    padding: 8px 12px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.role-select:hover {
    border-color: var(--accent-primary);
}

.role-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .modal-body {
        padding: var(--space-lg);
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .import-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-stat-card {
        padding: 14px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }
    
    .admin-setting-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .slider-wrapper {
        width: 100%;
    }
    
    .user-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .role-select {
        width: 100%;
    }
}

/* =============================================
   THEME SELECTOR STYLING
   ============================================= */

#theme-selector {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 12px 40px 12px 16px;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.2s ease;
}

#theme-selector:hover {
    border-color: var(--accent-primary);
}

#theme-selector:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

/* Standard Theme (default dark) */
#theme-selector option {
    background-color: #1a1a24;
    color: #f8fafc;
    padding: 12px 16px;
    font-size: 1rem;
}

/* Light Theme */
[data-theme="light"] #theme-selector {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme="light"] #theme-selector option {
    background-color: #ffffff;
    color: #1e293b;
}

/* Dark Theme */
[data-theme="dark"] #theme-selector {
    background-color: #111111;
    border-color: rgba(255, 255, 255, 0.1);
    color: #fafafa;
}

[data-theme="dark"] #theme-selector option {
    background-color: #0a0a0a;
    color: #fafafa;
}

/* Alle anderen Themes - dunkle Optionen */
[data-theme="pink"] #theme-selector option,
[data-theme="purple"] #theme-selector option,
[data-theme="blue"] #theme-selector option,
[data-theme="red"] #theme-selector option {
    background-color: #1a1a24;
    color: #f8fafc;
}

/* =============================================
   RECIPE CARD STYLE VARIANTS
   ============================================= */

/* Style 1: Classic (Default) - Gradient overlay */
[data-card-style="classic"] .recipe-card,
.recipe-card {
    /* Default style - already defined */
}

/* Style 2: Minimal - Clean white bar at bottom */
[data-card-style="minimal"] .recipe-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

[data-card-style="minimal"] .recipe-card-content {
    background: var(--bg-secondary);
    padding: 14px 16px;
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
}

[data-card-style="minimal"] .recipe-card-title {
    color: var(--text-primary);
}

[data-card-style="minimal"] .recipe-card-meta {
    color: var(--text-muted);
}

/* Style 3: Glass - Glassmorphism effect */
[data-card-style="glass"] .recipe-card {
    border: 1px solid var(--border-medium);
    background: var(--bg-glass);
}

[data-card-style="glass"] .recipe-card-content {
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

[data-card-style="glass"] .recipe-card-category {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Style 4: Polaroid - Photo-like with white border */
[data-card-style="polaroid"] .recipe-card {
    background: #ffffff;
    padding: 12px 12px 50px 12px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-card-style="polaroid"] .recipe-card-image {
    border-radius: 2px;
    height: calc(var(--card-image-height, 180px) - 20px);
}

[data-card-style="polaroid"] .recipe-card-content {
    background: transparent;
    position: relative;
    padding: 12px 4px 4px 4px;
}

[data-card-style="polaroid"] .recipe-card-title {
    color: #1a1a1a;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

[data-card-style="polaroid"] .recipe-card-meta {
    color: #666;
}

[data-card-style="polaroid"] .recipe-card-category-badge {
    top: auto;
    bottom: 60px;
    left: 16px;
}

[data-card-style="polaroid"] .recipe-card-category {
    background: var(--accent-primary);
    color: white;
}

/* Style 5: Elegant - Border accent on hover */
[data-card-style="elegant"] .recipe-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

[data-card-style="elegant"] .recipe-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
}

[data-card-style="elegant"] .recipe-card-content {
    background: linear-gradient(to top,
        var(--bg-secondary) 0%,
        rgba(0, 0, 0, 0.8) 60%,
        transparent 100%
    );
}

[data-card-style="elegant"] .recipe-card-title {
    font-family: var(--font-display);
    font-size: calc(var(--card-title-size, 1rem) * 1.1);
    letter-spacing: 0.5px;
}

[data-card-style="elegant"] .recipe-card-category {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

/* Light Theme adjustments for card styles */
[data-theme="light"][data-card-style="minimal"] .recipe-card-content {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"][data-card-style="polaroid"] .recipe-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"][data-card-style="glass"] .recipe-card-content {
    background: linear-gradient(to top,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
}

[data-theme="light"][data-card-style="glass"] .recipe-card-title {
    color: #1e293b;
}

[data-theme="light"][data-card-style="elegant"] .recipe-card-content {
    background: linear-gradient(to top,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.8) 60%,
        transparent 100%
    );
}

/* =============================================
   CARD STYLE SELECTOR (Admin Panel)
   ============================================= */

.card-style-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.card-style-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-glass);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-style-option:hover {
    border-color: var(--border-medium);
    background: var(--bg-glass-hover);
}

.card-style-option.active {
    border-color: var(--accent-primary);
    background: var(--accent-subtle);
}

.card-style-option span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

.card-style-option.active span {
    color: var(--accent-primary);
    font-weight: 600;
}

.card-style-preview {
    width: 60px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: var(--bg-tertiary);
}

.card-style-preview .preview-image {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Classic Preview */
.card-style-preview.classic .preview-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

/* Minimal Preview */
.card-style-preview.minimal .preview-bar {
    height: 20px;
    background: var(--bg-secondary);
}

/* Glass Preview */
.card-style-preview.glass .preview-glass {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
}

/* Polaroid Preview */
.card-style-preview.polaroid {
    background: #fff;
    padding: 4px;
    padding-bottom: 15px;
}

.card-style-preview.polaroid .preview-image {
    height: 40px;
    border-radius: 2px;
}

/* Elegant Preview */
.card-style-preview.elegant {
    border: 2px solid transparent;
}

.card-style-preview.elegant .preview-border {
    position: absolute;
    inset: 0;
    border: 2px solid var(--accent-primary);
    border-radius: 6px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .card-style-selector {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .card-style-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-style-option {
        padding: 8px;
    }
    
    .card-style-preview {
        width: 50px;
        height: 60px;
    }
}

/* =============================================
   ADMIN MODAL STYLES
   ============================================= */

/* Admin Button im Profil */
.btn-admin {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    font-weight: 600;
    gap: 10px;
}

.btn-admin:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.btn-admin i {
    color: white;
}

/* Admin Modal Content */
.admin-modal-content {
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.admin-modal-header h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.admin-modal-header h2 i {
    color: var(--accent-primary);
}

.admin-modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

/* Tab Navigation */
.admin-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 16px;
    background: var(--bg-glass);
}

.admin-tab {
    flex: 1;
    padding: 16px 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.admin-tab:hover {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.admin-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.admin-tab i {
    font-size: 1rem;
}

/* Tab Content */
.admin-tab-content {
    display: none;
    padding: 20px;
}

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

/* Stats Dropdown */
.admin-stats-dropdown {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.admin-stats-dropdown summary {
    padding: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
}

.admin-stats-dropdown summary::-webkit-details-marker {
    display: none;
}

.admin-stats-dropdown summary .fa-chevron-down {
    margin-left: auto;
    transition: transform 0.2s ease;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-stats-dropdown[open] summary .fa-chevron-down {
    transform: rotate(180deg);
}

.admin-stats-dropdown .admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 16px 16px;
}

.admin-stats-dropdown .stat-item {
    text-align: center;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.admin-stats-dropdown .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
}

.admin-stats-dropdown .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Setting Section */
.admin-setting-section {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}

.admin-setting-section h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-setting-section h4 i {
    color: var(--accent-primary);
}

/* Size Slider Row */
.size-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.size-slider-row span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.size-slider-row .admin-slider {
    flex: 1;
}

.size-slider-row .size-preview {
    min-width: 60px;
    text-align: center;
    padding: 4px 10px;
    background: var(--accent-subtle);
    color: var(--accent-primary);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Card Style Selector in Admin */
#admin-card-style-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

#admin-card-style-selector .card-style-option {
    padding: 10px;
}

#admin-card-style-selector .style-preview {
    width: 50px;
    height: 60px;
    margin: 0 auto 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

#admin-card-style-selector .style-preview.classic::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

#admin-card-style-selector .style-preview.minimal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 18px;
    background: var(--bg-secondary);
}

#admin-card-style-selector .style-preview.glass::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
}

#admin-card-style-selector .style-preview.polaroid {
    background: white;
    padding: 4px;
    padding-bottom: 12px;
}

#admin-card-style-selector .style-preview.polaroid::before {
    content: '';
    display: block;
    width: 100%;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

#admin-card-style-selector .style-preview.elegant {
    border: 2px solid var(--accent-primary);
}

/* User List in Admin Modal */
.admin-user-search {
    position: relative;
    margin-bottom: 16px;
}

.admin-user-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.admin-user-search input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.admin-user-list {
    max-height: 400px;
    overflow-y: auto;
}

.admin-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.admin-user-row:hover {
    background: var(--bg-glass-hover);
}

.admin-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-user-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 1rem;
}

.admin-user-info {
    flex: 1;
    min-width: 0;
}

.admin-user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.admin-user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-stats {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.admin-user-role {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    cursor: pointer;
}

/* Activity Log */
.log-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.log-filters select {
    flex: 1;
}

.activity-log {
    max-height: 450px;
    overflow-y: auto;
}

.log-entry {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.log-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.log-icon.created { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.log-icon.deleted { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.log-icon.updated { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.log-icon.uploaded { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.log-icon.login { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

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

.log-action {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.log-action strong {
    color: var(--accent-primary);
}

.log-details {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.log-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.log-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.log-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* Button Full Width */
.btn-full {
    width: 100%;
}

/* Responsive Admin Modal */
@media (max-width: 600px) {
    .admin-modal-content {
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }
    
    .admin-tabs {
        padding: 0 8px;
    }
    
    .admin-tab {
        padding: 12px 8px;
        font-size: 0.8rem;
    }
    
    .admin-tab span {
        display: none;
    }
    
    .admin-stats-dropdown .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #admin-card-style-selector {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Log Filter Select Styling */
#log-filter-type {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 10px 36px 10px 14px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

#log-filter-type option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 10px;
}

/* Admin User Role Select Styling */
.admin-user-role {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 28px 8px 12px;
    color: var(--text-primary);
    font-size: 0.75rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.admin-user-role option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Light Theme für Admin Selects */
[data-theme="light"] #log-filter-type,
[data-theme="light"] .admin-user-role {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
}

[data-theme="light"] #log-filter-type option,
[data-theme="light"] .admin-user-role option {
    background-color: #ffffff;
    color: #1e293b;
}

/* =============================================
   LOGO STYLES
   ============================================= */

/* Text Logo (Standard) */
.text-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-logo.hidden {
    display: none;
}

/* Image Logo */
.image-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
    padding: 5px 0;
}

.image-logo.hidden {
    display: none;
}

.image-logo img {
    height: var(--logo-height, 80px);
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* Logo Sizes */
html[data-logo-size="xs"] {
    --logo-height: 35px;
}

html[data-logo-size="small"] {
    --logo-height: 50px;
}

html[data-logo-size="medium"] {
    --logo-height: 60px;
}

html[data-logo-size="large"] {
    --logo-height: 80px;
}

html[data-logo-size="xl"] {
    --logo-height: 100px;
}

html[data-logo-size="xxl"] {
    --logo-height: 120px;
}

html[data-logo-size="xxxl"] {
    --logo-height: 150px;
}

html[data-logo-size="mega"] {
    --logo-height: 180px;
}

html[data-logo-size="ultra"] {
    --logo-height: 220px;
}

html[data-logo-size="max"] {
    --logo-height: 280px;
}

/* Bei großen Logos Header-Höhe anpassen */
html[data-logo-size="xl"],
html[data-logo-size="xxl"] {
    --header-height: 130px;
}

html[data-logo-size="xxxl"],
html[data-logo-size="mega"] {
    --header-height: 200px;
}

html[data-logo-size="ultra"] {
    --header-height: 250px;
}

html[data-logo-size="max"] {
    --header-height: 310px;
}

/* Logo Positions - mit !important für Überschreibung */
html[data-logo-position="left"] .header {
    justify-content: space-between !important;
}

html[data-logo-position="left"] .image-logo {
    margin-left: 0;
    margin-right: auto;
}

html[data-logo-position="left-padded"] .header {
    justify-content: space-between !important;
}

html[data-logo-position="left-padded"] .image-logo {
    margin-left: 10px;
    margin-right: auto;
}

html[data-logo-position="center"] .header {
    justify-content: center !important;
    position: relative;
}

html[data-logo-position="center"] .image-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

html[data-logo-position="center"] .header-actions {
    position: absolute;
    right: 20px;
}

html[data-logo-position="center"] .text-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Gradient Mask für Logo */
.image-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

/* Gradient None - Kein Fade */
html[data-logo-gradient="none"] .image-logo img {
    mask-image: none;
    -webkit-mask-image: none;
}

/* Gradient Right - Logo faded nach rechts aus */
html[data-logo-gradient="right"] .image-logo img {
    mask-image: linear-gradient(to right, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 60%, transparent 100%);
}

/* Gradient Around - Weicher Rand rundum */
html[data-logo-gradient="around"] .image-logo img {
    mask-image: radial-gradient(ellipse 85% 80% at 40% 50%, black 50%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 80% at 40% 50%, black 50%, transparent 100%);
}

/* Gradient Bottom - Logo faded nach unten aus */
html[data-logo-gradient="bottom"] .image-logo img {
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

/* Header anpassen wenn Logo aktiv */
[data-logo-enabled="true"] .header {
    padding-left: 10px;
}

/* =============================================
   ADMIN TOGGLE SWITCH
   ============================================= */

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    margin-bottom: 12px;
}

.toggle-row span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.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(--bg-tertiary);
    border: 1px solid var(--border-medium);
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-muted);
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: white;
}

/* Logo Settings (versteckt wenn Logo aus) */
.logo-settings {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    display: none;
}

.logo-settings.visible {
    display: block;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.setting-row label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-input-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
    min-width: 140px;
}

/* =============================================
   LIGHT THEME LOGO ADJUSTMENTS
   ============================================= */

[data-theme="light"] .toggle-slider {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
}

[data-theme="light"] .toggle-slider:before {
    background-color: #94a3b8;
}
