:root {
    /* Dark Bluish Theme - Primary Theme */
    --bg-primary: #0a0e27;
    --bg-secondary: #151b3f;
    --bg-tertiary: #1a2349;
    --bg-glass: rgba(21, 27, 63, 0.85);
    --text-primary: #e0e8ff;
    --text-secondary: #a0adc6;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-hover: #4f46e5;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --border: rgba(99, 102, 241, 0.12);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.6);
    --glow: 0 0 30px rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] {
    /* Alternative darker shade of bluish theme */
    --bg-primary: #050810;
    --bg-secondary: #0f1429;
    --bg-tertiary: #141d3a;
    --bg-glass: rgba(15, 20, 41, 0.9);
    --text-primary: #e8f0ff;
    --text-secondary: #a8b5d1;
    --accent: #818cf8;
    --accent-light: #a5b4fc;
    --accent-hover: #6366f1;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    --border: rgba(129, 140, 248, 0.15);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.6);
    --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.7);
    --glow: 0 0 30px rgba(129, 140, 248, 0.4);
}
.hitam-putih {
  filter: grayscale(100%) !important;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    background-image: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    width: 100%;
    height: 100%;
    overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hidden {
    display: none !important;
}

/* Fullscreen Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

[data-theme="light"] .loading-overlay {
    background: rgba(248, 249, 250, 0.95);
}

.loading-overlay.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: var(--text-primary);
}

.loader-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.loader-spinner::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(129, 140, 248, 0.2);
    border-top-color: #818cf8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-spinner::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(129, 140, 248, 0.3);
    border-top-color: #a5b4fc;
    border-radius: 50%;
    animation: spin 0.6s linear infinite reverse;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    font-weight: 300;
}

.loading-progress {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 1rem auto 0;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 10px;
    width: 30%;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(300%); }
}

/* Login Wizard */
.wizard-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.wizard-content {
    text-align: center;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
}

.wizard-logo h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.wizard-logo p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

.wizard-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wizard-form input {
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.wizard-form input:focus {
    outline: none;
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), var(--glow);
    transform: translateY(-2px);
}

.btn-primary {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--gradient-accent);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-logout {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
    border: 1px solid rgba(239, 68, 68, 0.2);
   
}

.btn-logout:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
}

.btn-logout:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}

/* App Container */
.app-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Floating Sticky Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px var(--shadow);
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.theme-toggle:active {
    transform: translateY(0) scale(0.95);
}

.interactions-btn {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.interactions-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.interactions-btn:active {
    transform: translateY(0) scale(0.95);
}

.interactions-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0 4px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* Main Content */
.app-main {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 90px;
}

.page {
    display: none;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
    display: block;
    opacity: 1;
}

/* Pinterest-like Masonry Grid */
.gallery-grid,
.favorit-grid,
.explore-grid {
    column-count: 3;
    column-gap: 1rem;
    padding-bottom: 100px;
    position: relative;
    min-height: 300px;
    /* Fallback for browsers that don't support advanced masonry */
    display: block;
}

/* When using advanced masonry (absolute positioning), remove column-count */
.gallery-grid.masonry-advanced,
.favorit-grid.masonry-advanced,
.explore-grid.masonry-advanced {
    column-count: auto;
}

.gallery-item {

    will-change: transform, opacity;
    
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-secondary);
    cursor: pointer;
    margin-bottom: 1rem;
    break-inside: avoid;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    /* Optimize for smooth scrolling with absolute positioning */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.gallery-item:active {
    transform: translateY(-2px) scale(0.98);
}

/* Large items span all columns (1 item per row) */
.gallery-item.large {
    /* Handled by JavaScript masonry layout - no CSS needed */
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Floating Camera Button */
.floating-camera-btn {
    position: fixed;
    bottom: 100px;
    right: 1.5rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-accent);
    border: none;
    box-shadow: var(--shadow-strong), var(--glow);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-camera-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.4), var(--glow);
}

.floating-camera-btn:active {
    transform: translateY(-2px) scale(0.95);
}

/* Bottom Navbar */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 20px var(--shadow);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.75rem 0;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex: 1;
    border-radius: 12px;
    margin: 0 0.25rem;
}

.nav-item.active {
    color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

.nav-item:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.nav-item:active {
    transform: translateY(0) scale(0.9);
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 15, 30, 0.85);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.popup-overlay.login-popup-overlay {
    align-items: center;
    justify-content: center;
}

.popup-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.popup-overlay.fullscreen {
    align-items: center;
    background: rgba(15, 15, 30, 0.95);
}

.popup-content {
    background: var(--bg-glass);
    backdrop-filter: blur(30px) saturate(180%);
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.3);
}

.video-popup.popup-content {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    padding-left: calc(1.5rem + env(safe-area-inset-left, 0px));
    padding-right: calc(1.5rem + env(safe-area-inset-right, 0px));
    border-bottom: 1px solid var(--border);
}

.popup-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    flex: 1;
    text-align: center;
}

.popup-back-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-right: auto;
}

.popup-back-btn:hover {
    background: var(--bg-tertiary);
    color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.popup-back-btn:active {
    transform: scale(0.9);
}

.popup-close {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-left: auto;
}

.popup-close:hover {
    background: var(--bg-tertiary);
    color: var(--accent);
    border-color: var(--accent);
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.popup-close:active {
    transform: rotate(90deg) scale(0.9);
}

/* Camera Options */
.camera-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1.5rem 1.5rem;
}

.camera-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease;
    min-width: 120px;
    box-shadow: var(--shadow);
}

.camera-option-btn:hover {
    background: var(--bg-tertiary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.camera-option-btn:active {
    transform: translateY(-2px) scale(0.95);
}

.camera-option-btn span {
    font-size: 1rem;
    font-weight: 500;
}

/* Webcam Container */
.webcam-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #000;
}

.webcam-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
}

.webcam-close {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
}

.webcam-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: rotate(90deg);
}

#webcam-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.webcam-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
}

.capture-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.capture-btn:hover {
    border-color: white;
    transform: scale(1.1);
}

.capture-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.capture-btn:active .capture-circle {
    transform: translate(-50%, -50%) scale(0.9);
}

/* Prompt Popup */
.prompt-popup {
    max-height: 90vh;
}

.prompt-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#prompt-preview-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 16px;
    background: var(--bg-secondary);
}

#prompt-input {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-secondary);
    color: var(--text-primary);
    resize: vertical;
    transition: all 0.3s ease;
}

#prompt-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Privacy Toggle */
.privacy-toggle-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.privacy-toggle-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.privacy-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    justify-content: space-between;
}

.privacy-toggle:hover {
    border-color: var(--accent);
    background: var(--bg-tertiary);
}

.privacy-toggle.active {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

.privacy-toggle-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.privacy-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.privacy-toggle.active .privacy-toggle-icon {
    color: var(--accent);
}

.privacy-toggle-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.privacy-toggle.active .privacy-toggle-text {
    color: var(--accent);
}

.privacy-toggle-switch {
    width: 48px;
    height: 28px;
    border-radius: 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.privacy-toggle-switch::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--text-secondary);
    top: 1px;
    left: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.privacy-toggle.active .privacy-toggle-switch {
    background: var(--accent);
    border-color: var(--accent);
}

.privacy-toggle.active .privacy-toggle-switch::after {
    transform: translateX(20px);
    background: white;
}

/* Video Popup */
.video-popup {
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.video-popup::-webkit-scrollbar {
    width: 4px;
}

.video-popup::-webkit-scrollbar-track {
    background: transparent;
}

.video-popup::-webkit-scrollbar-thumb {
    background: var(--accent);
    /*border-radius: 10px;*/
}

.video-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.video-content > * {
    /*padding: 0 1.5rem;*/
}

.video-content > .video-wrapper {
    /*padding: 1.5rem;*/
}

.video-content > .video-info {
    /*padding: 1rem 1.5rem;*/
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-height: 60vh;
    /*border-radius: 16px;*/
    overflow: hidden;
    background: #000;
    aspect-ratio: 9/16;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blurry preview before video loads */
.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--video-preview-bg, none);
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.video-wrapper video[style*="display: none"],
.video-wrapper video:not([src]),
.video-wrapper video[src=""] {
    position: relative;
    z-index: 2;
}

.video-wrapper video[src]:not([src=""]) {
    position: relative;
    z-index: 3;
}

#popup-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /*border-radius: 16px;*/
    background: #000;
}

/* Video Processing Indicator */
.video-processing {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.video-processing.hidden {
    display: none;
}

.processing-content {
    text-align: center;
    padding: 2rem;
    color: white;
    max-width: 300px;
}

.processing-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(129, 140, 248, 0.2);
    border-top-color: #818cf8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(1) {
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-width: 2px;
    border-top-color: #a5b4fc;
    animation-delay: 0.2s;
    animation-duration: 0.8s;
}

.spinner-ring:nth-child(3) {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    border-width: 2px;
    border-top-color: #c7d2fe;
    animation-delay: 0.4s;
    animation-duration: 0.6s;
}

.processing-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.processing-subtext {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.processing-image-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: blur(2px);
    z-index: 0;
}

.video-info {
    padding: 0 0.5rem;
    margin-top: 1rem;
}

.video-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.video-author {
    font-size: 0.9rem;
}

/* Video Interactions */
.video-interactions {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    justify-content: space-around;
    align-items: center;
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 9;
    flex-shrink: 0;
}

.interaction-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 60px;
}

.interaction-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.interaction-btn.active {
    color: var(--accent);
}

.interaction-btn svg {
    width: 24px;
    height: 24px;
}

.interaction-btn span {
    font-size: 0.85rem;
    font-weight: 500;
}

.like-btn.active {
    color: #ef4444;
}

.favorite-btn.active {
    color: #fbbf24;
}

/* Video Top Section (Video + Info + Interactions) */
.video-top-section {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-top-section[style*="display: none"] {
    display: none !important;
}

/* Video Comments Section (Realtime) */
.video-comments-section {
    padding: 0;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    min-height: auto;
    display: flex;
    flex-direction: column;
}

.video-comments-section.fullscreen-comments {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    padding-bottom: 80px; /* Space for fixed input */
    background: var(--bg-primary);
    z-index: 10;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: none;
}

.video-comments-section.fullscreen-comments .comments-header {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 5;
    padding: 1rem 1.5rem;
    margin: 0;
    border-bottom: 1px solid var(--border);
}

.video-comments-section.fullscreen-comments .comments-list-realtime {
    padding: 1rem 1.5rem;
    padding-bottom: 10vh !important;
}

.video-popup.popup-content {
    position: relative;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    position: sticky;
    top: 65px;
    z-index: 8;
}

.comments-list-realtime {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.comments-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.comments-header span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.comments-list-realtime {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    
    padding-bottom: 10vh !important;
    padding-right: 0.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.video-comments-section.fullscreen-comments .comments-list-realtime {
    max-height: none;
    overflow-y: visible;
    flex: 1;
}

.comments-list-realtime::-webkit-scrollbar {
    width: 4px;
}

.comments-list-realtime::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.comments-list-realtime::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.comment-input-container-realtime {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    transition: all 0.2s ease;
}

.comment-input-container-realtime.fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    z-index: 20;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.comment-input-container-realtime input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.comment-input-container-realtime input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.comment-input-container-realtime .btn-primary {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.comments-load-more-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.comments-load-more-indicator .load-more-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Pull to Refresh Indicator */
.pull-to-refresh-indicator {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: 0 0 20px 20px;
    border: 1px solid var(--border);
    border-top: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    min-width: 200px;
    text-align: center;
}

.pull-to-refresh-indicator p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.pull-to-refresh-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Comments Popup */
.comments-popup {
    max-height: 80vh;
}

.comments-container {
    display: flex;
    flex-direction: column;
    height: 60vh;
    max-height: 600px;
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    -webkit-overflow-scrolling: touch;
}

.comment-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: var(--bg-secondary);
    transition: background 0.3s ease;
}

.comment-item:hover {
    background: var(--bg-tertiary);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.comment-header {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.comment-username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.comment-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.comment-input-container {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
}

#comment-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 0.9rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
}

#comment-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.comment-submit-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 24px;
    background: var(--gradient-accent);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.comment-submit-btn:active {
    transform: translateY(0);
}

.empty-comments {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Interactions Popup */
.interactions-popup {
    max-height: 80vh;
}

.interactions-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    -webkit-overflow-scrolling: touch;
}

.interaction-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border-radius: 12px;
    background: var(--bg-secondary);
    transition: background 0.3s ease;
}

.interaction-item:hover {
    background: var(--bg-tertiary);
}

.interaction-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.interaction-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.interaction-text {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.interaction-text strong {
    font-weight: 600;
}

.interaction-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.interaction-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.empty-interactions {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Login Popup */
.login-popup {
    max-height: auto;
    width: 85%;
    max-width: 440px;
    border-radius: 24px 24px 24px 24px;
    align-self: center;
    justify-self: center;
}

.login-popup-content {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-logo {
    text-align: center;
}

.login-logo h2 {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.login-logo p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#login-popup-username {
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

#login-popup-username:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#login-popup-password {
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

#login-popup-password:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Load More Indicator */
.load-more-indicator {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin-top: 1rem;
    break-inside: avoid;
    column-span: all;
}

.load-more-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Akun Page */
.akun-content {
    padding: 1rem;
}

.akun-profile {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-strong), var(--glow);
}

.akun-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.akun-item {
    margin-bottom: 1.5rem;
}

.akun-item label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.akun-item input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.akun-item input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.akun-item input:read-only {
    opacity: 0.7;
    cursor: not-allowed;
}

.akun-item small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    column-span: all;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    width: calc(100% - 2rem);
    max-width: 400px;
    text-align: center;
    color: var(--text-secondary);
    z-index: 10;
    pointer-events: none;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    opacity: 0.3;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.empty-state-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Custom Alert Popup */
.alert-popup {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999 !important;
}

.alert-popup .popup-content {
    max-width: 400px;
    width: calc(100% - 3rem);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
}

.alert-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.alert-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.alert-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    fill: currentColor;
}

.alert-message {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.6;
    word-wrap: break-word;
    white-space: pre-line;
}

.alert-popup .btn-primary {
    min-width: 120px;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .gallery-grid {
        column-count: 3;
    }
    
    .favorit-grid {
        column-count: 3;
    }
    
    .explore-grid {
        column-count: 3;
    }
    
    .popup-content {
        max-width: 600px;
    }
}

/* Fullscreen Comments Popup */
.fullscreen-comments-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;

    max-height: none;
    max-width: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fullscreen-comments-popup .popup-header {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    z-index: 10;
}

#comments-fullscreen-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.5rem;
    padding-left: calc(1.5rem + env(safe-area-inset-left, 0px));
    padding-right: calc(1.5rem + env(safe-area-inset-right, 0px));
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0; /* SUPER PENTING untuk flex di mobile */

}

#comments-fullscreen-list .empty-comments {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--text-secondary);
    text-align: center;
}

.comment-input-floating {
    flex-shrink: 0;
  position: relative; /* PENTING: jangan fixed */
  bottom: 0;margin-top: auto;

    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 1rem;
    padding-left: calc(1rem + env(safe-area-inset-left, 0px));
    padding-right: calc(1rem + env(safe-area-inset-right, 0px));
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.comment-input-floating-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.comment-input-floating-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.comment-submit-btn-floating {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
}
        border-radius: 24px;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        column-count: 4;
    }
    
    .favorit-grid {
        column-count: 3;
    }
    
    .explore-grid {
        column-count: 3;
    }
}
/* Folder Gallery Popup Styles */
.folder-gallery-popup {
    max-height: 85vh;
}

.folder-gallery-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 1rem;
    overflow: hidden;
}

.folder-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 0.5rem;
    align-content: start;
    grid-auto-rows: max-content;
    width: 100%;
}

/* Scrollbar styling untuk folder grid */
.folder-images-grid::-webkit-scrollbar {
    width: 6px;
}

.folder-images-grid::-webkit-scrollbar-track {
    background: transparent;
}

.folder-images-grid::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 3px;
}

.folder-images-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.6);
}

.folder-gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border);
    background: var(--bg-tertiary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.upload-more-btn {
    border: 2px dashed var(--accent) !important;
    background: rgba(99, 102, 241, 0.08) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.upload-more-btn:hover {
    border-color: var(--accent-light) !important;
    background: rgba(129, 140, 248, 0.12) !important;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.4) !important;
}

.folder-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.upload-more-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 500;
    font-size: 0.85rem;
    text-align: center;
}

.upload-more-content svg {
    color: var(--accent);
    transition: all 0.3s ease;
}

.upload-more-btn:hover .upload-more-content svg {
    color: var(--accent-light);
    transform: scale(1.1);
}

/* Upload Status Indicators - Hidden */
.upload-status-indicator {
    display: none !important;
}

/* Status classes - No visual distinction */
.folder-gallery-item.status-pending,
.folder-gallery-item.status-uploading,
.folder-gallery-item.status-uploaded,
.folder-gallery-item.status-failed {
    opacity: 1;
    border-color: var(--border);
}

.folder-gallery-item.disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(20%);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.folder-gallery-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: center;
}