/* Slideshow Application Styles */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #f1f5f9;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --text: #334155;
    --text-light: #94a3b8;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--secondary);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo-img {
    height: 40px;
    width: auto;
}

.auth-card h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.auth-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

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

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

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

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

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

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

.btn-block {
    width: 100%;
}

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

/* Header */
.header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
}

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

.user-email {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Dashboard */
.dashboard {
    padding: 2rem 0;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-title {
    font-size: 1.5rem;
    color: var(--dark);
}

.dashboard-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Drop Zone */
.dropzone {
    background: white;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.dropzone.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.dropzone-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.dropzone h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.dropzone p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.dropzone input[type="file"] {
    display: none;
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.media-item {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s;
    position: relative;
}

.media-item.deleting {
    opacity: 0;
    transform: scale(0.8);
}

/* Uploading placeholder */
.media-item.uploading {
    pointer-events: none;
}

.media-item.uploading .media-thumb {
    filter: brightness(0.7);
}

.placeholder-thumb {
    background: linear-gradient(135deg, var(--secondary) 0%, #334155 100%);
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 48px; /* Leave space for media-info */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: var(--radius) var(--radius) 0 0;
    z-index: 5;
}

.upload-checklist {
    list-style: none;
    margin: 0;
    width: 100%;
    max-width: 180px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.upload-checklist li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.upload-checklist li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.upload-checklist li:first-child {
    padding-top: 0;
}

.upload-checklist li.active {
    color: white;
}

.upload-checklist li.done {
    color: #4ade80;
}

/* Checkbox style icons */
.step-icon {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    background: transparent;
    transition: all 0.3s ease;
}

/* Pending state - empty box */
.upload-checklist li .step-icon {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Active state - blue pulsing box */
.upload-checklist li.active .step-icon {
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.2);
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
    animation: pulse-box 1.5s ease-in-out infinite;
}

.upload-checklist li.active .step-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #60a5fa;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-dot 1s ease-in-out infinite;
}

/* Done state - green checked box */
.upload-checklist li.done .step-icon {
    border-color: #4ade80;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
}

.upload-checklist li.done .step-icon::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 4px;
    width: 5px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

@keyframes pulse-box {
    0%, 100% {
        box-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
    }
    50% {
        box-shadow: 0 0 16px rgba(96, 165, 250, 0.8);
    }
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

.upload-percent {
    font-size: 0.7rem;
    color: #60a5fa;
    font-weight: 600;
    margin-left: auto;
}

.media-item.upload-error {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

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

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

.media-item.drag-over {
    border: 2px solid var(--primary);
}

.media-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--secondary);
    border-radius: 8px;
}

.media-info {
    padding: 0.75rem;
}

.media-name {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.media-type {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
}

/* Delete button - top right */
.media-delete {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
}

.media-item:hover .media-delete {
    opacity: 1;
}

.media-delete:hover {
    background: var(--danger);
}

/* Media name row with rename button */
.media-name-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.media-rename-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.125rem;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
    flex-shrink: 0;
}

.media-item:hover .media-rename-btn {
    opacity: 1;
}

.media-rename-btn:hover {
    color: var(--primary);
}

/* Rename input */
.rename-input {
    width: 100%;
    padding: 0.125rem 0.375rem;
    border: 1px solid var(--primary);
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    background: white;
}

.rename-input:focus {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    pointer-events: none;
}

/* Settings Panel */
.settings-panel {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.settings-panel h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.settings-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.settings-row .form-group {
    flex: 1;
    min-width: 150px;
    margin-bottom: 0;
}

/* Share Section */
.share-section {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.share-section h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.share-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

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

.toggle-switch input:checked + .toggle-slider {
    background: var(--success);
}

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

.share-url {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.share-url input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--secondary);
}

/* Slideshow Player */
.slideshow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: black;
    z-index: 1000;
    display: none;
}

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

.slideshow-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.slideshow-media {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slideshow-media.active {
    opacity: 1;
}

/* Transition Effects */
.slideshow-media.transition-fade {
    transition: opacity 0.5s ease;
}

.slideshow-media.transition-slide-left {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.slideshow-media.transition-slide-left:not(.active) {
    transform: translateX(-100%);
}

.slideshow-media.transition-slide-right {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.slideshow-media.transition-slide-right:not(.active) {
    transform: translateX(100%);
}

.slideshow-media.transition-zoom-in {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.slideshow-media.transition-zoom-in:not(.active) {
    transform: scale(0.5);
}

.slideshow-media.transition-zoom-out {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.slideshow-media.transition-zoom-out:not(.active) {
    transform: scale(1.5);
}

.slideshow-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    z-index: 10;
}

.slideshow-controls button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    line-height: 1;
    text-align: center;
}

.slideshow-controls button svg {
    display: block;
}

.slideshow-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.slideshow-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.1s linear;
    z-index: 10;
}

.slideshow-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    z-index: 10;
}

.slideshow-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slideshow-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Cast Button */
#castButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#castButton svg {
    width: 20px;
    height: 20px;
}

#castButton.casting {
    color: var(--primary);
}

#castButton.casting svg {
    animation: cast-pulse 1.5s ease-in-out infinite;
}

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

/* Confirm Modal */
/* Full-screen confirmation modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 3rem 4rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.8) translateY(30px);
    transition: transform 0.3s ease;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
    letter-spacing: -0.02em;
}

.modal-message {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-actions .btn {
    min-width: 130px;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.modal-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

/* Upload Progress */
.upload-progress {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    z-index: 500;
    display: none;
}

.upload-progress.active {
    display: block;
}

.upload-progress h4 {
    margin-bottom: 0.25rem;
}

.upload-status-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    min-height: 1rem;
}

.progress-bar {
    height: 8px;
    background: var(--secondary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-error {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: var(--success);
    border: 1px solid #bbf7d0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Links */
.link {
    color: var(--primary);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-actions {
        justify-content: center;
    }

    .settings-row {
        flex-direction: column;
    }

    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .slideshow-controls {
        padding: 0.75rem 1rem;
    }

    .slideshow-controls button {
        font-size: 1rem;
    }
}

/* Public Slideshow Page */
.public-slideshow {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.public-header {
    background: var(--dark);
    color: white;
    padding: 1rem;
    text-align: center;
}

.public-header h1 {
    font-size: 1.25rem;
}

.public-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: black;
}

/* ================================================
   NEW SIDEBAR LAYOUT - Dashboard
   ================================================ */

/* Main App Layout */
.app-layout {
    display: grid;
    grid-template-columns: 70px 1fr;
    min-height: 100vh;
    background: #0f0f14;
}

/* Left Sidebar */
.sidebar {
    background: #16161d;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-logo {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.sidebar-logo-img {
    width: 40px;
    height: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    padding: 0 0.75rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 0 auto;
}

.sidebar-link:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
    color: white;
    background: var(--primary);
}

.sidebar-link svg {
    width: 22px;
    height: 22px;
}

/* Main Wrapper */
.main-wrapper {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.app-layout .header {
    background: #16161d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: static;
}

.header-nav {
    display: flex;
    gap: 0.25rem;
}

.header-nav-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.header-nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.app-layout .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
}

.app-layout .user-email {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.app-layout .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.app-layout .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-layout .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Alert Container */
.app-layout #alertContainer {
    padding: 0 1.5rem;
}

/* Content Wrapper */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    flex: 1;
    overflow: hidden;
}

/* Main Content Area */
.main-content {
    padding: 1.5rem;
    overflow-y: auto;
    background: #0f0f14;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

/* Dark Theme Dropzone */
.app-layout .dropzone {
    background: rgba(255, 255, 255, 0.02);
    border: none;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.dropzone-border {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    margin: 3px;
}

.app-layout .dropzone.dragover .dropzone-border {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.app-layout .dropzone-icon {
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.app-layout .dropzone h3 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.app-layout .dropzone p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
}

/* Dark Theme Media Grid */
.app-layout .media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.app-layout .media-item {
    background: #1a1a24;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.5rem;
}

.app-layout .media-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.app-layout .media-thumb {
    background: #0f0f14;
    border-radius: 8px;
}

.app-layout .media-info {
    background: #1a1a24;
    padding: 0.75rem;
}

.app-layout .media-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8125rem;
}

.app-layout .media-type {
    color: rgba(255, 255, 255, 0.4);
}

/* Settings Sidebar (Right) */
.settings-sidebar {
    background: #16161d;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.settings-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.settings-group {
    margin-bottom: 1.25rem;
}

.settings-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.settings-input,
.settings-select,
.settings-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.settings-input:focus,
.settings-select:focus,
.settings-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.settings-select {
    cursor: pointer;
    appearance: none;
    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='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.settings-select option {
    background: #1e1e28;
    color: white;
    padding: 0.75rem 1rem;
    border: none;
}

.settings-select option:hover,
.settings-select option:focus,
.settings-select option:checked {
    background: var(--primary);
    color: white;
}

.settings-textarea {
    resize: vertical;
    min-height: 60px;
}

/* Delay Input Group */
.delay-input-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.delay-input {
    width: 70px;
    text-align: center;
}

.delay-suffix {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Toggle Row */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toggle-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.settings-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.5rem;
}

/* Dark theme toggle switch */
.app-layout .toggle-slider {
    background: rgba(255, 255, 255, 0.1);
}

.app-layout .toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

/* Share URL Group */
.share-url-group {
    margin-top: 0.75rem;
}

.share-url-row {
    display: flex;
    gap: 0.5rem;
}

.share-url-input {
    flex: 1;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Settings Divider */
.settings-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 1.5rem 0;
}

/* Play Button */
.btn-play {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-top: auto;
    gap: 0.75rem;
}

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

/* Responsive for sidebar layout */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr 280px;
    }
}

@media (max-width: 1024px) {
    .app-layout .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .settings-sidebar {
        position: fixed;
        right: -320px;
        top: 0;
        bottom: 0;
        width: 320px;
        z-index: 200;
        transition: right 0.3s ease;
    }

    .settings-sidebar.open {
        right: 0;
    }
}

@media (max-width: 768px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: -70px;
        top: 0;
        bottom: 0;
        width: 70px;
        z-index: 300;
        transition: left 0.3s ease;
    }

    .sidebar.open {
        left: 0;
    }

    .app-layout .media-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Bottom (Settings) */
.sidebar-bottom {
    margin-top: auto;
    padding: 0 0.75rem 1rem;
}

.sidebar-bottom .sidebar-link {
    background: none;
    border: none;
    cursor: pointer;
}

/* Settings Modal */
.settings-modal {
    max-width: 400px;
    text-align: left;
    padding: 2rem;
}

.settings-modal .modal-title {
    margin-bottom: 1.5rem;
    text-align: left;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.settings-modal-group {
    margin-bottom: 1rem;
}

.settings-modal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.settings-modal-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.settings-modal-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.settings-modal-hint {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem;
    border-radius: 8px;
}

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

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

/* ================================================
   LIGHT THEME
   ================================================ */

.app-layout.light-theme {
    background: #f5f5f7;
}

.light-theme .sidebar {
    background: #ffffff;
    border-right-color: #e5e5e7;
}

.light-theme .sidebar-link {
    color: rgba(0, 0, 0, 0.4);
}

.light-theme .sidebar-link:hover {
    color: rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.05);
}

.light-theme .sidebar-link.active {
    color: white;
    background: var(--primary);
}

.light-theme .header {
    background: #ffffff;
    border-bottom-color: #e5e5e7;
}

.light-theme .header-nav-link {
    color: rgba(0, 0, 0, 0.5);
}

.light-theme .header-nav-link:hover {
    color: rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.05);
}

.light-theme .header-nav-link.active {
    color: #000;
    background: rgba(0, 0, 0, 0.08);
}

.light-theme .user-avatar {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.5);
}

.light-theme .user-email {
    color: rgba(0, 0, 0, 0.6);
}

.light-theme .btn-secondary {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.7);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

.light-theme .main-content {
    background: #f5f5f7;
}

.light-theme .section-title {
    color: rgba(0, 0, 0, 0.5);
}

.light-theme .dropzone {
    background: rgba(0, 0, 0, 0.02);
}

.light-theme .dropzone-border {
    border-color: rgba(0, 0, 0, 0.15);
}

.light-theme .dropzone.dragover .dropzone-border {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.light-theme .dropzone-icon {
    color: rgba(0, 0, 0, 0.3);
}

.light-theme .dropzone h3 {
    color: rgba(0, 0, 0, 0.7);
}

.light-theme .dropzone p {
    color: rgba(0, 0, 0, 0.5);
}

.light-theme .media-item {
    background: #ffffff;
    border-color: #e5e5e7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 0.5rem;
}

.light-theme .media-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #d5d5d7;
}

.light-theme .media-thumb {
    background: #f5f5f7;
    border-radius: 8px;
}

.light-theme .media-info {
    background: #ffffff;
}

.light-theme .media-name {
    color: rgba(0, 0, 0, 0.85);
}

.light-theme .media-type {
    color: rgba(0, 0, 0, 0.45);
}

.light-theme .settings-sidebar {
    background: #ffffff;
    border-left-color: #e5e5e7;
}

.light-theme .settings-title {
    color: rgba(0, 0, 0, 0.5);
}

.light-theme .settings-label {
    color: rgba(0, 0, 0, 0.7);
}

.light-theme .settings-input,
.light-theme .settings-select,
.light-theme .settings-textarea {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #000;
}

.light-theme .settings-input:focus,
.light-theme .settings-select:focus,
.light-theme .settings-textarea:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.02);
}

.light-theme .settings-select {
    background-color: rgba(0, 0, 0, 0.04);
    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='rgba(0,0,0,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.light-theme .settings-select option {
    background: #ffffff;
    color: #000;
    padding: 0.5rem;
}

.light-theme .delay-suffix {
    color: rgba(0, 0, 0, 0.5);
}

.light-theme .toggle-label {
    color: rgba(0, 0, 0, 0.7);
}

.light-theme .settings-hint {
    color: rgba(0, 0, 0, 0.45);
}

.light-theme .toggle-slider {
    background: rgba(0, 0, 0, 0.15);
}

.light-theme .settings-divider {
    background: rgba(0, 0, 0, 0.08);
}

.light-theme .btn-icon {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.6);
}

.light-theme .btn-icon:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

/* Light theme modal */
.light-theme .modal {
    background: linear-gradient(145deg, #ffffff 0%, #f5f5f7 100%);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

.light-theme .modal-title {
    color: #000;
}

.light-theme .modal-message {
    color: rgba(0, 0, 0, 0.6);
}

.light-theme .modal-close {
    color: rgba(0, 0, 0, 0.4);
}

.light-theme .modal-close:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.08);
}

.light-theme .settings-modal-row {
    background: rgba(0, 0, 0, 0.04);
}

.light-theme .settings-modal-label {
    color: rgba(0, 0, 0, 0.85);
}

.light-theme .settings-modal-hint {
    color: rgba(0, 0, 0, 0.45);
}

.light-theme .theme-switcher {
    background: rgba(0, 0, 0, 0.08);
}

.light-theme .theme-btn {
    color: rgba(0, 0, 0, 0.4);
}

.light-theme .theme-btn:hover {
    color: rgba(0, 0, 0, 0.7);
}

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

/* ================================================
   PRESENTATIONS GRID
   ================================================ */

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.section-header-row .section-title {
    margin: 0;
}

/* Back button */
.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 0.75rem;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.light-theme .btn-back {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.6);
}

.light-theme .btn-back:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

/* Presentations Grid */
.presentations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

/* Presentation Card */
.presentation-card {
    background: #1a1a24;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.presentation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.12);
}

.presentation-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.presentation-card.drag-over {
    border: 2px solid var(--primary);
    transform: scale(1.02);
}

.presentation-card.new-card {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.presentation-card.new-card:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.new-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.new-card-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    font-weight: 500;
}

.presentation-cover {
    width: 100%;
    aspect-ratio: 16/9;
    background: #0f0f14;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.presentation-cover-placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.presentation-info {
    padding: 1rem;
}

.presentation-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.presentation-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

.presentation-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.presentation-meta-item svg {
    width: 14px;
    height: 14px;
}

/* Card Actions (shown on hover) */
.presentation-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.presentation-card:hover .presentation-actions {
    opacity: 1;
}

.presentation-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.presentation-action-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.presentation-action-btn.delete:hover {
    background: var(--danger);
}

/* Visibility badge */
.presentation-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.presentation-badge.public {
    background: var(--success);
    color: white;
}

.presentation-badge.unlisted {
    background: var(--warning);
    color: #000;
}

/* Light theme cards */
.light-theme .presentation-card {
    background: #ffffff;
    border-color: #e5e5e7;
}

.light-theme .presentation-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #d5d5d7;
}

.light-theme .presentation-card.dragging {
    opacity: 0.5;
}

.light-theme .presentation-card.drag-over {
    border: 2px solid var(--primary);
}

.light-theme .presentation-card.new-card {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.02);
}

.light-theme .presentation-card.new-card:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.light-theme .new-card-icon {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.4);
}

.light-theme .new-card-text {
    color: rgba(0, 0, 0, 0.5);
}

.light-theme .presentation-cover {
    background: #f5f5f7;
}

.light-theme .presentation-cover-placeholder {
    color: rgba(0, 0, 0, 0.15);
}

.light-theme .presentation-title {
    color: rgba(0, 0, 0, 0.85);
}

.light-theme .presentation-meta {
    color: rgba(0, 0, 0, 0.45);
}

/* Empty state */
.presentations-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.4);
}

.presentations-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: rgba(255, 255, 255, 0.2);
}

.presentations-empty h3 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.presentations-empty p {
    font-size: 0.875rem;
}

.light-theme .presentations-empty {
    color: rgba(0, 0, 0, 0.4);
}

.light-theme .presentations-empty-icon {
    color: rgba(0, 0, 0, 0.15);
}

.light-theme .presentations-empty h3 {
    color: rgba(0, 0, 0, 0.6);
}

/* ================================================
   HEADER LOGO & USER DROPDOWN
   ================================================ */

/* Logo in header nav */
.header-nav-logo {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
    text-decoration: none;
}

.header-logo-img {
    height: 28px;
    width: auto;
}

/* Adjust sidebar without logo */
.sidebar {
    padding-top: 1rem;
}

.sidebar-nav {
    margin-top: 0;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-avatar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-avatar-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: #1e1e28;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-email {
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.user-dropdown-item svg {
    color: rgba(255, 255, 255, 0.5);
}

.user-dropdown-item:hover svg {
    color: rgba(255, 255, 255, 0.8);
}

/* Light theme user dropdown */
.light-theme .user-avatar-btn {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.5);
}

.light-theme .user-avatar-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.8);
}

.light-theme .user-dropdown-menu {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.light-theme .user-dropdown-email {
    color: rgba(0, 0, 0, 0.5);
}

.light-theme .user-dropdown-divider {
    background: rgba(0, 0, 0, 0.08);
}

.light-theme .user-dropdown-item {
    color: rgba(0, 0, 0, 0.7);
}

.light-theme .user-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

.light-theme .user-dropdown-item svg {
    color: rgba(0, 0, 0, 0.4);
}

.light-theme .user-dropdown-item:hover svg {
    color: rgba(0, 0, 0, 0.7);
}

/* ================================================
   ASSETS VIEW
   ================================================ */

/* Assets page layout (full width, no settings sidebar) */
.content-wrapper.assets-page {
    grid-template-columns: 1fr;
}

.assets-page .main-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Assets Stats */
.assets-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.stats-item {
    color: rgba(255, 255, 255, 0.6);
}

.stats-divider {
    color: rgba(255, 255, 255, 0.2);
}

.light-theme .assets-stats {
    color: rgba(0, 0, 0, 0.5);
}

.light-theme .stats-item {
    color: rgba(0, 0, 0, 0.6);
}

.light-theme .stats-divider {
    color: rgba(0, 0, 0, 0.2);
}

/* Assets Filter */
.assets-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    width: fit-content;
}

.assets-filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.assets-filter-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

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

.light-theme .assets-filter {
    background: rgba(0, 0, 0, 0.05);
}

.light-theme .assets-filter-btn {
    color: rgba(0, 0, 0, 0.5);
}

.light-theme .assets-filter-btn:hover {
    color: rgba(0, 0, 0, 0.8);
}

.light-theme .assets-filter-btn.active {
    background: var(--primary);
    color: white;
}

/* Assets Grid */
.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

/* Asset Card */
.asset-card {
    background: #1a1a24;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.asset-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.12);
}

.asset-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #0f0f14;
    position: relative;
    overflow: hidden;
}

.asset-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.asset-card:hover .asset-thumb img {
    transform: scale(1.05);
}

.asset-video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    pointer-events: none;
}

.asset-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.375rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.asset-card:hover .asset-actions {
    opacity: 1;
}

.asset-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.asset-action-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.asset-action-btn.asset-delete:hover {
    background: var(--danger);
}

.asset-info {
    padding: 0.875rem;
}

.asset-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.375rem;
}

.asset-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.asset-presentation {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-presentation.unassigned {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.asset-date {
    color: rgba(255, 255, 255, 0.4);
}

/* Assets Empty State */
.assets-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.4);
}

.assets-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: rgba(255, 255, 255, 0.2);
}

.assets-empty h3 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.assets-empty p {
    font-size: 0.875rem;
}

/* Light theme assets */
.light-theme .asset-card {
    background: #ffffff;
    border-color: #e5e5e7;
}

.light-theme .asset-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #d5d5d7;
}

.light-theme .asset-thumb {
    background: #f5f5f7;
}

.light-theme .asset-name {
    color: rgba(0, 0, 0, 0.85);
}

.light-theme .asset-presentation {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.6);
}

.light-theme .asset-presentation.unassigned {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.4);
}

.light-theme .asset-date {
    color: rgba(0, 0, 0, 0.45);
}

.light-theme .assets-empty {
    color: rgba(0, 0, 0, 0.4);
}

.light-theme .assets-empty-icon {
    color: rgba(0, 0, 0, 0.15);
}

.light-theme .assets-empty h3 {
    color: rgba(0, 0, 0, 0.6);
}
