/* ============================================
   DSLRBooth AI Admin Dashboard - Styles
   Modern Dark Theme with Accent Colors
   ============================================ */

:root {
    /* Color Palette - Deep Ocean Theme */
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-tertiary: #1a2332;
    --bg-card: #151d2b;
    --bg-hover: #1e2a3d;
    
    /* Accent Colors */
    --accent-primary: #00d4ff;
    --accent-secondary: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --accent-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    
    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Borders */
    --border-color: #1e293b;
    --border-hover: #334155;
    
    /* Spacing */
    --sidebar-width: 260px;
    --header-height: 70px;
    
    /* Fonts */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ============================================
   Reset & Base
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    height: 100%;
}

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

a:hover {
    color: var(--text-primary);
}

/* ============================================
   Screens
   ============================================ */

.screen {
    display: none;
    height: 100%;
}

.screen.active {
    display: flex;
}

/* ============================================
   Login Screen
   ============================================ */

#login-screen {
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        var(--bg-primary);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header .logo-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header .subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-group input {
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.error-message {
    color: var(--error);
    font-size: 0.85rem;
    text-align: center;
    min-height: 1.2em;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.35);
}

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

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

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

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

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

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    font-size: 1.1em;
}

/* ============================================
   Dashboard Layout
   ============================================ */

#dashboard-screen {
    display: none;
}

#dashboard-screen.active {
    display: flex;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100%;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--accent-glow);
}

.nav-icon {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-header {
    height: var(--header-height);
    padding: 0 2rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

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

.status-offline .status-dot {
    background: var(--error);
    animation: none;
}

.user-badge {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Content */
.content-wrapper {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

/* ============================================
   Dashboard Stats
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-normal);
}

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

.stat-card.stat-highlight {
    background: var(--accent-gradient);
    border: none;
}

.stat-card.stat-highlight .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.stat-highlight .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Panels
   ============================================ */

.dashboard-panels, .settings-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.panel-header {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.panel-content {
    padding: 1.5rem;
}

.empty-state {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}

/* ============================================
   Section Headers
   ============================================ */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Event Assignment Row */
.event-assign-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.event-assign-row select {
    flex: 1;
}

.event-assign-row .btn {
    white-space: nowrap;
}

/* Photobox Checkboxes in Event Modal */
.photobox-checkboxes {
    max-height: 200px;
}

.photobox-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.photobox-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.photobox-status-dot.online {
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
}

.photobox-status-dot.offline {
    background: var(--error);
}

/* Event Card - Assigned Photoboxes */
.event-photoboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.event-photobox-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.event-photobox-badge .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
}

.event-photobox-badge .status-dot.online {
    background: var(--success);
}

/* ============================================
   Tables
   ============================================ */

.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem 1.25rem;
    text-align: left;
}

.data-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.data-table tr:not(:last-child) td {
    border-bottom: 1px solid var(--border-color);
}

.data-table tr:hover td {
    background: var(--bg-hover);
}

.data-table .actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   Styles Toolbar (Search & Sort)
   ============================================ */

.styles-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.styles-toolbar .search-box {
    flex: 1;
    min-width: 200px;
}

.styles-toolbar .search-box input {
    width: 100%;
    padding: 0.6rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.styles-toolbar .search-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.styles-toolbar .search-box input::placeholder {
    color: var(--text-muted);
}

.styles-toolbar .sort-options,
.styles-toolbar .filter-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.styles-toolbar .sort-options label,
.styles-toolbar .filter-options label {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.styles-toolbar .sort-options select {
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
}

.styles-toolbar .sort-options select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.styles-toolbar .filter-options input[type="checkbox"] {
    accent-color: var(--accent-primary);
}

.styles-toolbar .styles-count {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .styles-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .styles-toolbar .styles-count {
        margin-left: 0;
        text-align: center;
    }
}

/* ============================================
   Styles Grid
   ============================================ */

.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.style-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.style-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.style-preview {
    width: 100%;
    height: 160px;
    background: var(--bg-secondary);
    object-fit: cover;
}

.style-preview.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
}

.style-info {
    padding: 1.25rem;
}

.style-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.style-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.style-actions {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
}

/* Style Preview Upload */
.preview-upload-container {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.preview-image-box {
    width: 150px;
    height: 150px;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.preview-placeholder span {
    font-size: 3rem;
}

.preview-placeholder small {
    font-size: 0.75rem;
}

.preview-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.preview-upload-actions .text-muted {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   Settings
   ============================================ */

.setting-item {
    margin-bottom: 1.25rem;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.setting-item input[type="text"],
.setting-item input[type="password"],
.setting-item textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.setting-item input:focus,
.setting-item textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-primary);
}

/* Setting Group */
.setting-group {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1.5rem 0;
}

.setting-group h4 {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* Password Input Container */
.password-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.password-input-container input {
    flex: 1;
}

.password-input-container .toggle-password {
    padding: 0.5rem 0.75rem;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Modal
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

/* Dynamic Modal Container */
.modal-container {
    display: none;
}

.modal-container.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
}

.modal-container .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-container .modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 1.25rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 70px);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   Toast Notifications
   ============================================ */

.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 2000;
}

.toast {
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.toast-out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.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);
}

/* ============================================
   Event List Item
   ============================================ */

.event-list-item,
.photobox-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    margin-bottom: 0.5rem;
}

.event-list-item:last-child,
.photobox-list-item:last-child {
    margin-bottom: 0;
}

.event-list-item:hover,
.photobox-list-item:hover {
    background: var(--bg-hover);
}

.item-info {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: 500;
}

.item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.item-status {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.item-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.item-status.inactive {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-muted);
}

.item-status.online {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.item-status.offline {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

/* ============================================
   Badge / Tags
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.badge-error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

/* ============================================
   API Key Display
   ============================================ */

.api-key {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: var(--bg-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.api-key.blur {
    filter: blur(4px);
    transition: filter var(--transition-fast);
}

.api-key.blur:hover {
    filter: blur(0);
}

/* ============================================
   Style Selection in Event Modal
   ============================================ */

.style-selection-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.style-selection-info .btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
}

#selected-count {
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 500;
}

.filtered-count {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Event Styles Search & Filter Toolbar */
.event-styles-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.event-styles-toolbar input[type="text"] {
    flex: 1;
    min-width: 150px;
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
}

.event-styles-toolbar input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.event-styles-toolbar input[type="text"]::placeholder {
    color: var(--text-muted);
}

.event-styles-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.event-styles-filters label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
}

.event-styles-filters input[type="checkbox"] {
    accent-color: var(--accent-primary);
}

.style-checkboxes {
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
}

.style-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.style-checkbox:hover {
    background: var(--bg-hover);
}

.style-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.style-checkbox-name {
    flex: 1;
    font-size: 0.9rem;
}

.style-checkbox-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

.style-checkbox-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.style-checkbox-status.inactive {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-muted);
}

/* ============================================
   Drag & Drop Style Assignment
   ============================================ */

.style-dnd-search {
    margin-bottom: 1rem;
}

.style-dnd-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.style-dnd-container {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.style-dnd-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.style-dnd-column.assigned {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

.style-dnd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.style-dnd-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.style-count {
    background: var(--accent-primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.style-dnd-list {
    flex: 1;
    min-height: 200px;
    max-height: 350px;
    overflow-y: auto;
    padding: 0.5rem;
    transition: background 0.2s;
}

.style-dnd-list.drag-over {
    background: rgba(99, 102, 241, 0.1);
}

.style-dnd-arrows {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    padding: 0 0.5rem;
}

.drag-style-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.4rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: grab;
    transition: all 0.15s ease;
    user-select: none;
}

.drag-style-item:hover {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.drag-style-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.drag-style-item .drag-handle {
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: grab;
}

.drag-style-item .style-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
}

.drag-style-item .style-status {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
}

.drag-style-item .style-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.drag-style-item .style-status.inactive {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-muted);
}

.style-dnd-column .btn-block {
    margin: 0.5rem;
    width: calc(100% - 1rem);
}

.empty-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 2rem 1rem;
    margin: 0;
}

/* ============================================
   Photobox Control Panel
   ============================================ */

.photobox-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.photobox-card:hover {
    border-color: var(--border-hover);
}

.photobox-header {
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.photobox-header h4 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.photobox-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--error);
}

.photobox-status-indicator.online {
    background: var(--success);
    animation: pulse 2s infinite;
}

.photobox-body {
    padding: 1.25rem;
}

.photobox-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.photobox-meta-item {
    display: flex;
    flex-direction: column;
}

.photobox-meta-label {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.photobox-meta-value {
    font-weight: 500;
}

.photobox-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.photobox-controls .btn {
    padding: 0.625rem 0.75rem;
    font-size: 0.8rem;
}

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

.btn-success:hover {
    background: #059669;
}

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

.btn-warning:hover {
    background: #d97706;
}

.photobox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ============================================
   Mobile Menu Button
   ============================================ */

.mobile-menu-btn {
    display: none;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.5rem;
    line-height: 1;
}

.mobile-menu-btn:hover {
    background: var(--bg-hover);
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

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

/* ============================================
   Responsive - Tablet (1024px)
   ============================================ */

@media (max-width: 1024px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar-header .logo-text,
    .nav-item span:not(.nav-icon) {
        display: none;
    }
    
    .nav-item {
        justify-content: center;
        padding: 1rem;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .dashboard-panels,
    .settings-panels {
        grid-template-columns: 1fr;
    }
    
    .photobox-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Responsive - Mobile (768px)
   ============================================ */

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Sidebar - Versteckt auf Mobile */
    .sidebar {
        width: var(--sidebar-width);
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar.open ~ .sidebar-overlay {
        display: block;
    }
    
    .sidebar-header .logo-text,
    .sidebar.open .nav-item span:not(.nav-icon) {
        display: inline;
    }
    
    .sidebar.open .nav-item {
        justify-content: flex-start;
        padding: 0.875rem 1rem;
    }
    
    /* Main Content - Volle Breite */
    .main-content {
        margin-left: 0;
    }
    
    /* Header */
    .main-header {
        padding: 0 1rem;
    }
    
    .header-left h1 {
        font-size: 1.1rem;
    }
    
    .header-right {
        gap: 0.5rem;
    }
    
    .status-badge {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .status-badge span:not(.status-dot) {
        display: none;
    }
    
    .user-badge {
        display: none;
    }
    
    /* Content */
    .content-wrapper {
        padding: 1rem;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Section Header */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .section-header .btn {
        width: 100%;
    }
    
    /* Panels */
    .dashboard-panels,
    .settings-panels {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .panel-header {
        padding: 0.875rem 1rem;
    }
    
    .panel-content {
        padding: 1rem;
    }
    
    /* Tables - Horizontal Scroll */
    .table-container {
        overflow-x: auto;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .data-table .actions {
        flex-wrap: wrap;
    }
    
    /* Styles Grid */
    .styles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .style-preview {
        height: 140px;
    }
    
    /* Photobox Grid */
    .photobox-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .photobox-controls {
        grid-template-columns: 1fr;
    }
    
    /* Modal */
    .modal-overlay {
        padding: 0.5rem;
        align-items: flex-end;
    }
    
    .modal {
        max-width: 100%;
        max-height: 90vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: calc(90vh - 60px);
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
    
    /* Toast */
    .toast-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
    
    /* Style Selection */
    .style-checkboxes {
        max-height: 200px;
    }
    
    .style-selection-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   Responsive - Small Mobile (480px)
   ============================================ */

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .login-container {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .photobox-meta {
        grid-template-columns: 1fr;
    }
    
    .btn-sm {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* ============================================
   Touch Optimizations
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    /* Größere Touch-Targets */
    .btn {
        min-height: 44px;
    }
    
    .nav-item {
        min-height: 48px;
    }
    
    .style-checkbox {
        min-height: 48px;
    }
    
    /* Kein Hover auf Touch */
    .stat-card:hover,
    .style-card:hover,
    .photobox-card:hover {
        transform: none;
    }
}

/* ============================================
   Time Windows (Scheduler)
   ============================================ */

.time-window-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.time-window-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.time-input-group {
    flex: 1;
    min-width: 100px;
}

.time-input-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.time-input-group input[type="time"],
.time-input-group input[type="date"] {
    width: 100%;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.time-input-group input[type="time"]:focus,
.time-input-group input[type="date"]:focus {
    outline: none;
    border-color: var(--accent-primary);
}

#time-windows-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 0.5rem;
}

#time-windows-list .empty-state {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
}

/* ============================================
   Photobox Event Assignment
   ============================================ */

.photobox-event-assignment {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.photobox-event-assignment label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.photobox-event-assignment .event-select {
    flex: 1;
    min-width: 150px;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
}

.photobox-event-assignment .event-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.photobox-event-assignment .event-select:hover {
    border-color: var(--border-hover);
}

.scheduler-badge {
    background: var(--accent-gradient);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

/* ============================================
   Statistics Section
   ============================================ */

.stats-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

@media (max-width: 1400px) {
    .stats-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card.stat-success {
    border-left: 3px solid var(--success);
}

.stat-card.stat-success .stat-icon {
    color: var(--success);
}

.stat-card.stat-error {
    border-left: 3px solid var(--error);
}

.stat-card.stat-error .stat-icon {
    color: var(--error);
}

/* Stat Bar Items */
.stat-bar-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-bar-item:last-child {
    border-bottom: none;
}

.stat-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.stat-bar-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.stat-bar-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.stat-bar-track {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.stat-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.stat-bar-fill-day {
    background: var(--bg-tertiary);
}

.stat-bar-fill-success {
    height: 100%;
    background: var(--success);
    border-radius: 4px;
}

.stat-bar-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Badge variants */
.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.badge-error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

/* ============================================
   Remote Logs Section
   ============================================ */

.stats-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

@media (max-width: 1200px) {
    .stats-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card.stat-warning-card {
    border-left: 3px solid var(--warning);
}

.stat-card.stat-warning-card .stat-icon {
    color: var(--warning);
}

.stat-card.stat-critical {
    border-left: 3px solid #dc2626;
}

.stat-card.stat-critical .stat-icon {
    color: #dc2626;
}

/* Log Filters */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 120px;
}

.filter-item label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.filter-item select,
.filter-item input {
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
}

.filter-item select:focus,
.filter-item input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.filter-actions {
    flex-direction: row;
    align-items: flex-end;
}

/* Logs Table */
.logs-table-container {
    max-height: 600px;
    overflow-y: auto;
}

.log-row.level-debug {
    opacity: 0.7;
}

.log-row.level-warning {
    background: rgba(245, 158, 11, 0.05);
}

.log-row.level-error {
    background: rgba(239, 68, 68, 0.08);
}

.log-row.level-critical {
    background: rgba(220, 38, 38, 0.12);
}

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

.log-source {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.log-message {
    font-size: 0.85rem;
    word-break: break-word;
    max-width: 400px;
}

/* Log Level Badges */
.log-level-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.log-level-badge.level-debug {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-muted);
}

.log-level-badge.level-info {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info);
}

.log-level-badge.level-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.log-level-badge.level-error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.log-level-badge.level-critical {
    background: rgba(220, 38, 38, 0.3);
    color: #dc2626;
    animation: pulse-critical 2s infinite;
}

@keyframes pulse-critical {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================
   Start Screen Image Upload
   ============================================ */

.start-screen-settings {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 0.5rem;
}

.start-screen-uploads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.image-upload-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}

.image-upload-box label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.image-preview {
    position: relative;
    width: 100%;
    height: 150px;
    background: var(--bg-primary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.image-preview.small {
    height: 100px;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-preview .placeholder {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.remove-image-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--error);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.image-preview:hover .remove-image-btn {
    opacity: 1;
}

.remove-image-btn:hover {
    background: #dc2626;
}

/* Video Upload Box */
.video-upload-box {
    grid-column: 1 / -1;  /* Volle Breite */
    margin-top: 0.5rem;
}

.video-preview {
    position: relative;
    width: 100%;
    min-height: 80px;
    background: var(--bg-primary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
}

.video-preview video {
    max-width: 100%;
    max-height: 120px;
    border-radius: var(--radius-sm);
}

.video-preview .placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
}