/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-overlay: rgba(10, 10, 15, 0.85);
    
    /* Cute Tech Accent Colors */
    --accent-pink: #ff6b9d;
    --accent-teal: #4ecdc4;
    --accent-pink-glow: rgba(255, 107, 157, 0.3);
    --accent-teal-glow: rgba(78, 205, 196, 0.3);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b8b8c8;
    --text-muted: #8a8a9a;
    
    /* Cute Tech Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-pink), var(--accent-teal));
    --gradient-dark: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    --gradient-overlay: linear-gradient(45deg, rgba(255, 107, 157, 0.1), rgba(78, 205, 196, 0.1));
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(255, 107, 157, 0.3);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(255, 107, 157, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Anti-Download Protection */
/* Disable right-click context menu on all media elements */
img, video, canvas, svg {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none; /* Disable all mouse events including right-click */
}

/* Re-enable pointer events for media controls but keep protection */
video::-webkit-media-controls,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-timeline,
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display {
    pointer-events: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

/* Disable selection and drag for gallery items but allow clicking */
.gallery-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto; /* Allow clicking on gallery items */
}

.gallery-item img, .gallery-item video {
    pointer-events: none; /* Disable on the actual media */
}

/* Carousel protection */
.carousel-slide img, .carousel-slide video {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* Media viewer protection */
#media-viewer img, #media-viewer video {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* Global context menu disable */
.no-context-menu, .no-context-menu * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Base Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex !important;
}

/* Security PIN Modal - Simple and Clean */
.pin-modal {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(5px);
}

.pin-content {
    background: linear-gradient(135deg, 
        rgba(20, 20, 30, 0.95) 0%, 
        rgba(30, 30, 40, 0.9) 100%) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.pin-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pin-header h2 {
    color: var(--accent-teal);
    margin: 0;
    font-size: 1.3rem;
}

.pin-body {
    padding: 2rem 1.5rem;
    text-align: center;
}

.pin-body p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

#security-pin-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(78, 205, 196, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
    text-align: center;
    letter-spacing: 0.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

#security-pin-input:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.pin-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.pin-buttons .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPCEtLSBDbGVhbiBoYW5kIHNoYXBlIHRvIG1hdGNoIG1haW4gY3Vyc29yIC0tPgo8cGF0aCBkPSJNOSAxNUM5IDE0LjQ0NzcgOS40NDc3MiAxNCAxMCAxNEgxNEMxNC41NTIzIDE0IDE1IDE0LjQ0NzcgMTUgMTVWMThDMTUgMTguNTUyMyAxNC41NTIzIDE5IDE0IDE5SDEwQzkuNDQ3NzIgMTkgOSAxOC41NTIzIDkgMThWMTVaIiBmaWxsPSIjZmZmZmZmIiBzdHJva2U9IiM0ZWNkYzQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMSA2VjE0IiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMyA4VjE0IiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi/+CjxwYXRoIGQ9Ik0xNSAxMFYxNCIgc3Ryb2tlPSIjZmZmZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8IS0tIFRodW1iIC0tPgo8cGF0aCBkPSJNNyAxM0gxNSIgc3Ryb2tlPSIjNGVjZGM0IiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+Cjwvc3ZnPgo=') 12 12, pointer !important;
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-teal) 0%, rgba(78, 205, 196, 0.8) 100%);
    color: white;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.9) 0%, var(--accent-teal) 100%);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.pin-error {
    color: var(--accent-pink);
    font-size: 0.85rem;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: 6px;
}

/* Security Monitoring Modal - Secretive Semi-Transparent Design */
.security-modal {
    background: rgba(0, 0, 0, 0.95) !important; /* Almost black overlay for secrecy */
    backdrop-filter: blur(10px) saturate(0.5) brightness(0.3);
    animation: securityFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes securityFadeIn {
    0% { 
        opacity: 0; 
        backdrop-filter: blur(0px) saturate(1) brightness(1);
    }
    100% { 
        opacity: 1; 
        backdrop-filter: blur(10px) saturate(0.5) brightness(0.3);
    }
}

.security-content {
    background: linear-gradient(135deg, 
        rgba(10, 10, 15, 0.95) 0%, 
        rgba(20, 20, 30, 0.9) 50%,
        rgba(15, 15, 25, 0.95) 100%) !important;
    backdrop-filter: blur(20px) brightness(0.4);
    border: 1px solid rgba(78, 205, 196, 0.3);
    box-shadow: 
        0 0 50px rgba(78, 205, 196, 0.1),
        0 0 100px rgba(255, 107, 157, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 95vw;
    max-height: 95vh;
    width: 1200px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.security-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-teal) 25%, 
        var(--accent-pink) 75%, 
        transparent 100%);
    animation: securityPulse 3s ease-in-out infinite;
}

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

.security-header {
    background: linear-gradient(135deg, 
        rgba(78, 205, 196, 0.1) 0%, 
        rgba(255, 107, 157, 0.05) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.security-header h2 {
    color: var(--accent-teal);
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 10px rgba(78, 205, 196, 0.5); }
    100% { text-shadow: 0 0 20px rgba(78, 205, 196, 0.8), 0 0 30px rgba(78, 205, 196, 0.3); }
}

.security-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-teal);
    box-shadow: 0 0 15px var(--accent-teal);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 15px var(--accent-teal);
    }
    50% { 
        transform: scale(1.2); 
        box-shadow: 0 0 25px var(--accent-teal), 0 0 35px rgba(78, 205, 196, 0.3);
    }
}

.security-body {
    padding: 2rem;
    max-height: calc(95vh - 200px);
    overflow-y: auto;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(20, 20, 30, 0.2) 100%);
}

/* Custom scrollbar for security modal */
.security-body::-webkit-scrollbar {
    width: 8px;
}

.security-body::-webkit-scrollbar-track {
    background: rgba(78, 205, 196, 0.1);
    border-radius: 4px;
}

.security-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-teal) 0%, var(--accent-pink) 100%);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.security-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.security-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(78, 205, 196, 0.5) 50%, 
        transparent 100%);
}

.security-section h3 {
    color: var(--accent-pink);
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    text-shadow: 0 0 8px rgba(255, 107, 157, 0.5);
}

/* Hostname item styles */
.hostname-item {
    transition: background-color 0.2s ease;
}

.hostname-item:hover {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

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

.expand-arrow {
    color: var(--accent-teal);
    font-size: 0.9rem;
    transition: transform 0.2s ease;
    min-width: 1rem;
    text-align: center;
}

.hostname-details {
    transition: all 0.3s ease;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: linear-gradient(135deg, 
        rgba(78, 205, 196, 0.1) 0%, 
        rgba(255, 107, 157, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(78, 205, 196, 0.1), 
        transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    border-color: rgba(78, 205, 196, 0.5);
    box-shadow: 0 4px 20px rgba(78, 205, 196, 0.2);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-teal);
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
    margin-bottom: 0.5rem;
}

/* Security modal stat labels */
.security-modal .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Connection/IP Lists */
.connections-list, .blocked-ips-list, .rate-limited-list {
    max-height: 300px;
    overflow-y: auto;
}

.connection-item, .blocked-ip-item, .rate-limited-item {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.connection-item:hover, .blocked-ip-item:hover, .rate-limited-item:hover {
    border-color: rgba(255, 107, 157, 0.3);
    background: linear-gradient(135deg, 
        rgba(255, 107, 157, 0.1) 0%, 
        rgba(78, 205, 196, 0.05) 100%);
}

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

.ip-address {
    font-family: 'Courier New', monospace;
    color: var(--accent-teal);
    font-weight: 600;
    text-shadow: 0 0 5px rgba(78, 205, 196, 0.3);
}

.session-id {
    font-family: 'Courier New', monospace;
    color: var(--accent-pink);
    font-size: 0.85rem;
}

.connection-details, .ip-details {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.user-agent {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    border-left: 2px solid var(--accent-teal);
}

/* Security Log */
.security-log {
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.log-entry {
    background: rgba(0, 0, 0, 0.4);
    border-left: 3px solid var(--accent-teal);
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.log-entry:hover {
    background: rgba(0, 0, 0, 0.6);
    border-left-color: var(--accent-pink);
}

.log-entry.warning {
    border-left-color: #ffb347;
    background: rgba(255, 179, 71, 0.1);
}

.log-entry.danger {
    border-left-color: var(--accent-pink);
    background: rgba(255, 107, 157, 0.1);
}

.log-timestamp {
    color: var(--accent-teal);
    font-weight: 600;
}

.log-type {
    color: var(--accent-pink);
    font-weight: 600;
    text-transform: uppercase;
}

.log-details {
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Mobile Security Modal Responsive Design */
@media (max-width: 768px) {
    .security-content {
        width: 95vw;
        margin: 2.5vh auto;
        max-height: 95vh;
        border-radius: 12px;
        padding: 1rem;
    }
    
    .security-modal .modal-content {
        border-radius: 12px;
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .security-header {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .security-header h2 {
        font-size: 1.4rem;
    }
    
    .security-status {
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.8rem;
    }
    
    .stat-card {
        padding: 0.8rem;
        border-radius: 8px;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .security-section {
        margin-bottom: 1.5rem;
    }
    
    .security-section h3,
    .security-section h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .connections-list,
    .blocked-ips-list,
    .security-log,
    .rate-limited-list {
        max-height: 200px;
        overflow-y: auto;
    }
    
    .security-body {
        padding: 1rem;
    }
    
    .security-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Disable text selection on media containers */
.gallery-container,
.carousel-container,
.media-viewer {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Custom Scrollbar Styling - macOS-like with teal background */
* {
    scrollbar-width: auto;
    scrollbar-color: var(--text-primary) var(--accent-teal);
}

/* Main scrollbar styling */
*::-webkit-scrollbar {
    width: 14px;
    height: 14px;
    background: var(--accent-teal);
    border-radius: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--accent-teal);
    border-radius: 10px;
    margin: 2px;
}

*::-webkit-scrollbar-thumb {
    background: var(--text-primary);
    border-radius: 10px;
    border: 1px solid var(--accent-teal);
    min-height: 20px;
}

*::-webkit-scrollbar-corner {
    background: var(--accent-teal);
    border-radius: 10px;
}

/* Specific scrollbar styling for smaller elements */
.stories-list::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.viewer-sidebar::-webkit-scrollbar,
textarea::-webkit-scrollbar {
    width: 12px;
    height: 12px;
    background: var(--accent-teal);
    border-radius: 8px;
}

.stories-list::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track,
.viewer-sidebar::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track {
    background: var(--accent-teal);
    border-radius: 8px;
    margin: 2px;
}

.stories-list::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.viewer-sidebar::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb {
    background: var(--text-primary);
    border-radius: 8px;
    border: 1px solid var(--accent-teal);
    min-height: 20px;
}

/* Custom Cursor Styling */
* {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcgNEwxOSAxNkwxMyAxNi41TDEwLjUgMjBMNyA0WiIgZmlsbD0iI2ZmZmZmZiIgc3Ryb2tlPSIjNGVjZGM0IiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K') 4 4, auto;
}

/* Pointer cursor for interactive elements - cute hand with pink heart */
button, 
.btn, 
a, 
.nav-btn,
.modal-close,
.media-item,
.story-item,
.story-action-btn,
.carousel-nav,
.tag-chip,
.checkbox-label,
select,
input[type="checkbox"],
input[type="radio"],
.upload-area {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPCEtLSBDbGVhbiBoYW5kIHNoYXBlIHRvIG1hdGNoIG1haW4gY3Vyc29yIC0tPgo8cGF0aCBkPSJNOSAxNUM5IDE0LjQ0NzcgOS40NDc3MiAxNCAxMCAxNEgxNEMxNC41NTIzIDE0IDE1IDE0LjQ0NzcgMTUgMTVWMThDMTUgMTguNTUyMyAxNC41NTIzIDE5IDE0IDE5SDEwQzkuNDQ3NzIgMTkgOSAxOC41NTIzIDkgMThWMTVaIiBmaWxsPSIjZmZmZmZmIiBzdHJva2U9IiM0ZWNkYzQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMSA2VjE0IiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMyA4VjE0IiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+CjxwYXRoIGQ9Ik0xNSAxMFYxNCIgc3Ryb2tlPSIjZmZmZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8IS0tIFRodW1iIC0tPgo8cGF0aCBkPSJNNyAxM0gxNSIgc3Ryb2tlPSIjNGVjZGM0IiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+Cjwvc3ZnPgo=') 12 12, pointer !important;
}

/* Text cursor for input elements */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
textarea,
.editable {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGxpbmUgeDE9IjEyIiB5MT0iMyIgeDI9IjEyIiB5Mj0iMjEiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPGxpbmUgeDE9IjkiIHkxPSIzIiB4Mj0iMTUiIHkyPSIzIiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+CjxsaW5lIHgxPSI5IiB5MT0iMjEiIHgyPSIxNSIgeTI9IjIxIiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+Cjwvc3ZnPgo=') 12 12, text;
}

/* Move cursor for draggable elements */
.draggable,
.sortable-item,
.carousel-slide {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDJMMTYgNkgxM1YxMUgxOEwxNCAxNUwxMCAxMUgxNVY2SDEyTDEyIDJaIiBmaWxsPSIjZmZmZmZmIiBzdHJva2U9IiM0ZWNkYzQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0yIDEyTDYgOFYxMUgxMVY2TDE1IDEwTDExIDE0VjExSDZWMTRMMiAxMloiIGZpbGw9IiNmZmZmZmYiIHN0cm9rZT0iIzRlY2RjNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==') 12 12, move;
}

/* Resize cursors for resizable elements */
.resizable-handle {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMgMjFMMjEgM00zIDIxSDE3TTMgMjFWN00yMSAzSDdNMjEgM1YxNyIgc3Ryb2tlPSIjZmZmZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K') 12 12, nw-resize;
}

/* Wait cursor for loading states */
.loading,
.loading *,
body.app-loading,
body.app-loading * {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIi8+CjxwYXRoIGQ9Ik0xMiA2VjEyTDE2IDE2IiBzdHJva2U9IiNmZjZiOWQiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=') 12 12, wait;
}

/* Help cursor for elements with tooltips */
[title],
.help,
.tooltip-trigger {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIi8+CjxwYXRoIGQ9Ik0xMiAxN1YxM0M5IDEzIDkgMTAgMTIgMTBTMTUgMTAgMTUgMTNIMTIiIHN0cm9rZT0iIzRlY2RjNCIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGNpcmNsZSBjeD0iMTIiIGN5PSIyMSIgcj0iMSIgZmlsbD0iIzRlY2RjNCIvPgo8L3N2Zz4K') 12 12, help;
}

/* Not-allowed cursor for disabled elements */
.disabled,
[disabled],
.btn:disabled,
button:disabled {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIi8+CjxsaW5lIHgxPSI0LjkzIiB5MT0iNC45MyIgeDI9IjE5LjA3IiB5Mj0iMTkuMDciIHN0cm9rZT0iI2ZmNmI5ZCIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPC9zdmc+Cg==') 12 12, not-allowed !important;
}

/* Grab cursor for elements that can be grabbed - clean design matching main cursor */
.grabbable {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPCEtLSBPcGVuIGhhbmQgZm9yIGdyYWJiaW5nIC0gV2hpdGUgdG8gbWF0Y2ggcG9pbnRlciAtLT4KPHBhdGggZD0iTTcgOUM2LjQ0NzcyIDkgNiA5LjQ0NzcyIDYgMTBWMTRDNiAxNC41NTIzIDYuNDQ3NzIgMTUgNyAxNVM4IDE0LjU1MjMgOCAxNFYxMEM4IDkuNDQ3NzIgNy41NTIyOCA5IDcgOVoiIGZpbGw9IiNmZmZmZmYiIHN0cm9rZT0iIzRlY2RjNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTEwIDlDOS40NDc3MiA5IDkgOS40NDc3MiA5IDEwVjE0QzkgMTQuNTUyMyA5LjQ0NzcyIDE1IDEwIDE1UzExIDE0LjU1MjMgMTEgMTRWMTBDMTEgOS40NDc3MiAxMC41NTIzIDkgMTAgOVoiIGZpbGw9IiNmZmZmZmYiIHN0cm9rZT0iIzRlY2RjNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTEzIDlDMTIuNDQ3NyA5IDEyIDkuNDQ3NzIgMTIgMTBWMTRDMTIgMTQuNTUyMyAxMi40NDc3IDE1IDEzIDE1UzE0IDE0LjU1MjMgMTQgMTRWMTBDMTQgOS40NDc3MiAxMy41NTIzIDkgMTMgOVoiIGZpbGw9IiNmZmZmZmYiIHN0cm9rZT0iIzRlY2RjNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTE2IDlDMTUuNDQ3NyA5IDE1IDkuNDQ3NzIgMTUgMTBWMTRDMTUgMTQuNTUyMyAxNS40NDc3IDE1IDE2IDE1UzE3IDE0LjU1MjMgMTcgMTRWMTBDMTcgOS40NDc3MiAxNi41NTIzIDkgMTYgOVoiIGZpbGw9IiNmZmZmZmYiIHN0cm9rZT0iIzRlY2RjNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPCEtLSBUaHVtYiAtLT4KPHBhdGggZD0iTTUgMTJDNSAxMS40NDc3IDUuNDQ3NzIgMTEgNiAxMUg4VjEySDZDMTUgMTRWMTVINkM1LjQ0NzcyIDE1IDUgMTQuNTUyMyA1IDE0VjEyWiIgZmlsbD0iI2ZmZmZmZiIgc3Ryb2tlPSIjNGVjZGM0IiBzdHJva2Utd2lkdGg9IjEuMiIvPgo8IS0tIFBpbmsgaGVhcnQgYWNjZW50IHRvIG1hdGNoIHBvaW50ZXIgLS0+CjxwYXRoIGQ9Ik0xOCA2QzE4IDUuNDQ3NzIgMTcuNTUyMyA1IDE3IDVDMTYuNDQ3NyA1IDE2IDUuNDQ3NzIgMTYgNkMxNiA2LjU1MjI4IDE2LjQ0NzcgNyAxNyA3UzE4IDYuNTUyMjggMTggNloiIGZpbGw9IiNmZjZiOWQiLz4KPHBhdGggZD0iTTE5LjUgNkMxOS41IDUuNDQ3NzIgMTkuMDUyMyA1IDE4LjUgNUMxNy45NDc3IDUgMTcuNSA1LjQ0NzcyIDE3LjUgNkMxNy41IDYuNTUyMjggMTcuOTQ3NyA3IDE4LjUgN1MxOS41IDYuNTUyMjggMTkuNSA6WiIgZmlsbD0iI2ZmNmI5ZCIvPgo8cGF0aCBkPSJNMTguNzUgN0MxOC43NSA3LjQxNDIxIDE4LjQxNDIgNy43NSAxOCA3Ljc1QzE3LjU4NTggNy43NSAxNy4yNSA3LjQxNDIxIDE3LjI1IDdDMTcuMjUgNi41ODU3OSAxNy41ODU4IDYuMjUgMTggNi4yNUMxOC40MTQyIDYuMjUgMTguNzUgNi41ODU3OSAxOC43NSA3WiIgZmlsbD0iI2ZmNmI5ZCIvPgo8L3N2Zz4K') 12 12, grab !important;
}

.grabbable:active {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPCEtLSBDbG9zZWQgZmlzdCBmb3IgZ3JhYmJpbmcgLSBXaGl0ZSB0byBtYXRjaCBwb2ludGVyIC0tPgo8cGF0aCBkPSJNNyA5QzYuNDQ3NzIgOSA2IDkuNDQ3NzIgNiAxMFYxNEM2IDE1LjY1NjkgNy4zNDMxNSAxNyA5IDE3SDEzQzE0LjY1NjkgMTcgMTYgMTUuNjU2OSAxNiAxNFYxMEMxNiA5LjQ0NzcyIDE1LjU1MjMgOSAxNSA5UzE0IDkuNDQ3NzIgMTQgMTBWMTRDMTQgMTQuNTUyMyAxMy41NTIzIDE1IDEzIDE1SDlDOC40NDc3MiAxNSA4IDE0LjU1MjMgOCAxNFYxMEM4IDkuNDQ3NzIgNy41NTIyOCA5IDcgOVoiIGZpbGw9IiNmZmZmZmYiIHN0cm9rZT0iIzRlY2RjNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPCEtLSBQaW5rIGhlYXJ0IGFjY2VudCBwdWxzZSB0byBtYXRjaCBwb2ludGVyIC0tPgo8cGF0aCBkPSJNMTggNkMxOCA1LjQ0NzcyIDE3LjU1MjMgNSAxNyA1QzE2LjQ0NzcgNSAxNiA1LjQ0NzcyIDE2IDZMMTY2LjU1MjI4IDE2LjQ0NzcgNyAxNyA3UzE4IDYuNTUyMjggMTggNloiIGZpbGw9IiNmZjZiOWQiLz4KPHBhdGggZD0iTTE5LjUgNkMxOS41IDUuNDQ3NzIgMTkuMDUyMyA1IDE4LjUgNUMxNy45NDc3IDUgMTcuNSA1LjQ0NzcyIDE3LjUgNkMxNy41IDYuNTUyMjggMTcuOTQ3NyA3IDE4LjUgN1MxOS41IDYuNTUyMjggMTkuNSA2WiIgZmlsbD0iI2ZmNmI5ZCIvPgo8cGF0aCBkPSJNMTguNzUgN0MxOC43NSA3LjQxNDIxIDE4LjQxNDIgNy43NSAxOCA3Ljc1QzE3LjU4NTggNy43NSAxNy4yNSA3LjQxNDIxIDE3LjI1IDdDMTcuMjUgNi41ODU3OSAxNy41ODU4IDYuMjUgMTggNi4yNUMxOC40MTQyIDYuMjUgMTguNzUgNi41ODU3OSAxOC43NSA3WiIgZmlsbD0iI2ZmNmI5ZCIvPgo8L3N2Zz4K') 12 12, grabbing !important;
}

/* Crosshair cursor for precision selection */
.crosshair,
.selection-mode {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGxpbmUgeDE9IjEyIiB5MT0iMiIgeDI9IjEyIiB5Mj0iMjIiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPGxpbmUgeDE9IjIiIHkxPSIxMiIgeDI9IjIyIiB5Mj0iMTIiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMyIgc3Ryb2tlPSIjNGVjZGM0IiBzdHJva2Utd2lkdGg9IjEuNSIgZmlsbD0ibm9uZSIvPgo8L3N2Zz4K') 12 12, crosshair;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary) !important;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--accent-pink-glow) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, var(--accent-teal-glow) 0%, transparent 50%);
    background-color: var(--bg-primary) !important;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Overlay with Dynamic Image */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60vh;
    background: none; /* No background by default */
    background-size: cover;
    background-position: center;
    filter: blur(1px);
    z-index: -2;
    opacity: 0;
    transition: all var(--transition-smooth);
}

/* Only show background when explicitly set */
.bg-overlay.has-background {
    opacity: 0.3;
}

.bg-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

/* Flat white SVG icons */
.fas, .fa { 
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
}

.fa-search:before { 
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9z"/></svg>') center/contain no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}
.fa-plus:before { 
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>') center/contain no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}
.fa-th:before { 
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z"/></svg>') center/contain no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}
.fa-list:before { 
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>') center/contain no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}
.fa-sign-out-alt:before { 
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5-5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"/></svg>') center/contain no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}
.fa-lock:before { 
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM12 17c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM15.1 8H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2z"/></svg>') center/contain no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}
.fa-arrow-right:before { 
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"/></svg>') center/contain no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}
.fa-images:before { 
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11.5-6l2.5 3.01L16.5 10l3.5 4.5H8L10.5 10zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/></svg>') center/contain no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}
.fa-times:before { 
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>') center/contain no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}
.fa-cloud-upload-alt:before { 
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/></svg>') center/contain no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}
.fa-upload:before { 
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9 16h6v-6h4l-7-7-7 7h4v6zm-4 2h14v2H5v-2z"/></svg>') center/contain no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}
.fa-chevron-left:before { 
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z"/></svg>') center/contain no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}
.fa-chevron-right:before { 
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"/></svg>') center/contain no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}
.fa-edit:before { 
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>') center/contain no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}
.fa-trash:before { 
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/></svg>') center/contain no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}
.fa-check-square:before { 
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>') center/contain no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}
.fa-check:before { 
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') center/contain no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}
.fa-play:before { 
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7L8 5z"/></svg>') center/contain no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}
.fa-image:before { 
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/></svg>') center/contain no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}
.fa-eye:before { 
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/></svg>') center/contain no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}
.fa-download:before { 
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg>') center/contain no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}
.fa-cog:before { 
    content: "";
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.22,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.22,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.68 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z"/></svg>') center/contain no-repeat;
    display: inline-block;
    width: 1em;
    height: 1em;
}

/* Featured Carousel - Integrated with Navigation */
.featured-carousel {
    position: relative;
    width: calc(100% - 300px); /* Account for sidebar width */
    height: 300px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1;
    overflow: hidden;
    margin-top: 62px;
    margin-bottom: 0.0625rem; /* Reduced gap by half again */
    margin-left: 300px; /* Push right of sidebar - no gap */
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide.position-top {
    background-position: center 12.5% !important; /* Top quarter (0-25%) */
}

.carousel-slide.position-top-center {
    background-position: center 37.5% !important; /* Second quarter (25-50%) */
}

.carousel-slide.position-center {
    background-position: center 50% !important; /* Center (50%) */
}

.carousel-slide.position-bottom-center {
    background-position: center 62.5% !important; /* Third quarter (50-75%) */
}

.carousel-slide.position-bottom {
    background-position: center 87.5% !important; /* Bottom quarter (75-100%) */
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    z-index: 1;
}

.carousel-slide-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    z-index: 2;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.carousel-slide-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.carousel-slide-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem; /* More padding for better spacing */
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* cursor removed - using global custom cursor */
    transition: all var(--transition-smooth);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.carousel-btn:hover {
    background: rgba(255, 107, 157, 0.3);
    border-color: var(--accent-pink);
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    /* cursor removed - using global custom cursor */
    transition: all var(--transition-smooth);
}

.carousel-indicator.active {
    background: var(--accent-pink);
    border-color: white;
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: var(--accent-teal);
}

/* Main content with proper navbar spacing */
.main-content {
    padding-top: 0px; /* No padding - carousel is in normal flow */
}

.main-content.with-carousel {
    /* Carousel is now in document flow - no additional spacing needed */
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: calc(1rem + 1px) 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.75rem 1rem 0.75rem 3rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 300px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 107, 157, 0.6);
    box-shadow: 
        0 0 0 3px rgba(255, 107, 157, 0.2),
        0 8px 25px rgba(255, 107, 157, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

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

.nav-btn {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 18px;
    /* cursor removed - using global custom cursor */
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: inherit;
}

.nav-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(78, 205, 196, 0.5);
    background: var(--bg-secondary);
    box-shadow: 
        0 8px 25px rgba(78, 205, 196, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn.active {
    background: var(--accent-teal);
    border: 1px solid rgba(78, 205, 196, 0.5);
    color: white;
    box-shadow: 
        0 6px 20px rgba(78, 205, 196, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.2);
}

.logout-btn:hover {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
}

/* Login Screen */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

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

.login-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 5px var(--accent-pink-glow));
    }
    to {
        filter: drop-shadow(0 0 15px var(--accent-teal-glow));
    }
}

.login-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-group input {
    width: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 1.1rem 1rem 1.1rem 3rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.input-group input:focus {
    outline: none;
    border-color: rgba(255, 107, 157, 0.6);
    box-shadow: 
        0 0 0 3px rgba(255, 107, 157, 0.2),
        0 8px 25px rgba(255, 107, 157, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.01);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff !important;
}

/* Ensure FontAwesome icons have consistent white color */
.input-icon.fas {
    color: #ffffff !important;
}

.login-btn {
    width: 100%;
    background: var(--accent-teal);
    border: 2px solid rgba(78, 205, 196, 0.3);
    border-radius: 30px;
    padding: 1.2rem 2rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    /* cursor removed - using global custom cursor */
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 8px 25px rgba(78, 205, 196, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    background: #4db6ac;
    transform: translateY(-4px);
    box-shadow: 
        0 15px 40px rgba(78, 205, 196, 0.6),
        0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(78, 205, 196, 0.8);
}

.login-arrow {
    transition: all 0.3s ease;
    transform: translateX(0);
    opacity: 0.9;
}

.login-btn:hover .login-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.login-btn:active .login-arrow {
    transform: translateX(6px);
    opacity: 1;
}



.login-btn:active {
    transform: translateY(-2px);
    transition: all 0.1s ease;
}

.login-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Main Content Layout */
.main-content {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
}

/* Navigation filter icons */
.nav-filter-icon {
    margin-right: 0.5rem;
    vertical-align: middle;
    opacity: 0.9;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Search icon styling - match navbar icons */
.search-container .nav-filter-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0;
    pointer-events: none;
    z-index: 2;
}

.nav-filter-icon:hover {
    opacity: 1;
}

/* Make sure labels with icons align properly */
.filter-group label,
.stats-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Search container styling for icon */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sidebar */
.sidebar {
    width: 300px;
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 80px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-content {
    padding: 2rem 1.5rem;
}

.filters-section,
.stats-section {
    margin-bottom: 2rem;
}

.filters-section h3,
.stats-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    /* cursor removed - using global custom cursor */
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 15px rgba(78, 205, 196, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
    background: var(--accent-teal);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: white;
    box-shadow: 
        0 4px 15px rgba(78, 205, 196, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-select {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    /* cursor removed - using global custom cursor */
}

.filter-select:focus {
    outline: none;
    border-color: rgba(255, 107, 157, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* Enhanced Tag System */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tag-controls {
    display: flex;
    gap: 0.5rem;
}

.tag-control-btn {
    background: var(--accent-teal);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    /* cursor removed - using global custom cursor */
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 
        0 4px 15px rgba(78, 205, 196, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.tag-control-btn:hover {
    background: #4db6ac;
    border-color: rgba(78, 205, 196, 0.8);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(78, 205, 196, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.2);
}

.selected-tags-preview {
    background: linear-gradient(135deg, 
        rgba(78, 205, 196, 0.1) 0%, 
        rgba(78, 205, 196, 0.2) 100%);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 12px;
    padding: 0.8rem;
    margin-bottom: 1rem;
}

.preview-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
}

.selected-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.tags-container {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 280px;
    overflow-y: auto;
    padding: 0.8rem;
    background: linear-gradient(135deg, 
        rgba(78, 205, 196, 0.05) 0%, 
        rgba(255, 107, 157, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.tags-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-pink));
    border-radius: 16px 16px 0 0;
}

.tag-item {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    /* cursor removed - using global custom cursor */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

.tag-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(78, 205, 196, 0.1), 
        rgba(255, 107, 157, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.tag-item:hover {
    transform: translateX(4px);
    border-color: rgba(255, 107, 157, 0.5);
    color: var(--text-primary);
    background: linear-gradient(135deg, 
        rgba(255, 107, 157, 0.15) 0%, 
        rgba(78, 205, 196, 0.1) 100%);
    box-shadow: 
        0 4px 15px rgba(255, 107, 157, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.tag-item:hover::before {
    opacity: 1;
}

.tag-item.active {
    background: linear-gradient(135deg, var(--accent-teal) 0%, rgba(78, 205, 196, 0.9) 100%);
    border: 1px solid rgba(78, 205, 196, 0.8);
    color: white;
    font-weight: 600;
    transform: translateX(8px);
    box-shadow: 
        0 4px 20px rgba(78, 205, 196, 0.4),
        0 2px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tag-item.active::after {
    content: '✓';
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tag-count {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: auto;
}

.tag-item.active .tag-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Fix cursor for problematic elements - FORCE OVERRIDE ALL CONFLICTS */
.tag-item,
.tag-list .tag,
.tag-list .tag-item,
.file-upload-btn,
#restore-backup-btn,
.btn.danger,
.filter-btn,
.sort-option,
.clear-tags-btn,
.checkbox-label {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPCEtLSBDbGVhbiBoYW5kIHNoYXBlIHRvIG1hdGNoIG1haW4gY3Vyc29yIC0tPgo8cGF0aCBkPSJNOSAxNUM5IDE0LjQ0NzcgOS40NDc3MiAxNCAxMCAxNEgxNEMxNC41NTIzIDE0IDE1IDE0LjQ0NzcgMTUgMTVWMThDMTUgMTguNTUyMyAxNC41NTIzIDE5IDE0IDE5SDEwQzkuNDQ3NzIgMTkgOSAxOC41NTIzIDkgMThWMTVaIiBmaWxsPSIjZmZmZmZmIiBzdHJva2U9IiM0ZWNkYzQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMSA2VjE0IiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMyA4VjE0IiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi/+CjxwYXRoIGQ9Ik0xNSAxMFYxNCIgc3Ryb2tlPSIjZmZmZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8IS0tIFRodW1iIC0tPgo8cGF0aCBkPSJNNyAxM0gxNSIgc3Ryb2tlPSIjNGVjZGM0IiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+Cjwvc3ZnPgo=') 12 12, pointer !important;
}

/* Override any remaining cursor: pointer conflicts */
.tags-container .tag-item,
.media-viewer .tag-list .tag-item,
.sidebar .tag-item,
label[for="background-image-upload"],
label[for="restore-file-input"] {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPCEtLSBDbGVhbiBoYW5kIHNoYXBlIHRvIG1hdGNoIG1haW4gY3Vyc29yIC0tPgo8cGF0aCBkPSJNOSAxNUM5IDE0LjQ0NzcgOS40NDc3MiAxNCAxMCAxNEgxNEMxNC41NTIzIDE0IDE1IDE0LjQ0NzcgMTUgMTVWMThDMTUgMTguNTUyMyAxNC41NTIzIDE5IDE0IDE5SDEwQzkuNDQ3NzIgMTkgOSAxOC41NTIzIDkgMThWMTVaIiBmaWxsPSIjZmZmZmZmIiBzdHJva2U9IiM0ZWNkYzQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMSA2VjE0IiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMyA4VjE0IiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi/+CjxwYXRoIGQ9Ik0xNSAxMFYxNCIgc3Ryb2tlPSIjZmZmZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8IS0tIFRodW1iIC0tPgo8cGF0aCBkPSJNNyAxM0gxNSIgc3Ryb2tlPSIjNGVjZGM0IiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi/+Cjwvc3ZnPgo=') 12 12, pointer !important;
}

/* Clear tags button styling */
.clear-tags-btn {
    background: linear-gradient(135deg, 
        rgba(255, 107, 157, 0.1) 0%, 
        rgba(255, 107, 157, 0.05) 100%);
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* cursor removed - using global custom cursor */
    transition: all 0.3s ease;
    margin-left: auto;
}

.clear-tags-btn:hover {
    background: linear-gradient(135deg, 
        rgba(255, 107, 157, 0.2) 0%, 
        rgba(255, 107, 157, 0.1) 100%);
    border-color: rgba(255, 107, 157, 0.6);
    transform: scale(1.1);
}

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

/* Selected tag in preview */
.selected-tag-preview {
    background: var(--accent-teal);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selected-tag-preview .remove-tag {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* cursor removed - using global custom cursor */
    font-size: 0.6rem;
    transition: all 0.2s ease;
}

.selected-tag-preview .remove-tag:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

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

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

/* Clickable stat item for access monitoring */
.stat-item.clickable {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.5rem;
    margin: 0.25rem 0;
}

.stat-item.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.2);
    border-color: var(--accent-pink) !important;
}

/* Stats section styling */
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    transition: all var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.stat-item.clickable {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-smooth);
}

.stat-item.clickable:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

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

.stat-value {
    font-size: 0.85rem;
    color: var(--accent-teal);
    font-weight: 600;
    display: flex;
    align-items: center;
    padding-right: 0.5rem; /* Add padding to match other buttons */
}

/* Access indicator circle */
.access-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-teal);
    box-shadow: 0 0 8px var(--accent-teal);
    animation: accessPulse 2s ease-in-out infinite;
    margin-right: 0; /* Remove margin since parent has padding */
}

/* Remove any default list styling and red dots from security sections */
.security-section h4::before,
.security-section h4::after,
.settings-section h3::before,
.settings-section h3::after {
    display: none !important;
    content: none !important;
}

.security-section h4,
.settings-section h3 {
    list-style: none !important;
    position: relative;
}

.security-section,
.settings-section {
    list-style: none !important;
}

/* Security stats grid and cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-teal);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-teal);
    margin-bottom: 0.5rem;
}

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

@keyframes accessPulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 8px var(--accent-teal);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.2);
        box-shadow: 0 0 12px var(--accent-teal), 0 0 20px rgba(78, 205, 196, 0.3);
    }
}

/* Content Area */
.content-area {
    flex: 1;
    margin-left: 300px;
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

/* Toolbar */
.toolbar {
    display: none;
}

.results-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.toolbar-right {
    display: flex;
    gap: 0.75rem;
}

.toolbar-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    /* cursor removed - using global custom cursor */
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.toolbar-btn:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

.toolbar-btn.danger {
    background: linear-gradient(135deg, var(--accent-pink) 0%, rgba(255, 107, 157, 0.8) 100%);
    border-color: var(--accent-pink);
    position: relative;
    overflow: hidden;
}

.toolbar-btn.danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.3s ease;
}

.toolbar-btn.danger:hover::before {
    left: 100%;
}

.toolbar-btn.danger:hover {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.9) 0%, var(--accent-pink) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

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

.media-item {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    /* cursor removed - using global custom cursor */
    transition: all var(--transition-smooth);
    group: hover;
    padding: 0;
    margin: 0;
}

.media-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-teal);
}

.media-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
    z-index: 1;
    pointer-events: none;
}

.media-item:hover::before {
    left: 100%;
}

.media-item.selected {
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 3px var(--accent-pink-glow);
}

.media-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.media-thumbnail img,
.media-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.media-item:hover .media-thumbnail img,
.media-item:hover .media-thumbnail video {
    transform: scale(1.05);
}

.media-type-indicator {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.media-type-indicator.video {
    background: var(--accent-pink);
}

.media-type-indicator.image {
    background: var(--accent-teal);
}

.media-select-checkbox {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    border: 2px solid white;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.5);
    /* cursor removed - using global custom cursor */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-smooth);
}

.media-item:hover .media-select-checkbox,
.media-item.selected .media-select-checkbox {
    opacity: 1;
}

.media-item.selected .media-select-checkbox {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
}

.media-select-checkbox i {
    font-size: 0.8rem;
    color: white;
}

.media-info {
    padding: 1rem;
}

.media-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* Media type icons */
.media-type-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    opacity: 0.8;
    color: var(--accent-teal);
    flex-shrink: 0;
}

.media-title .media-type-icon {
    margin-right: 0.25rem;
}

.carousel-slide-title .media-type-icon {
    margin-right: 0.5rem;
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.suggested-item-info .media-type-icon {
    margin-right: 0.25rem;
    width: 12px;
    height: 12px;
}

#viewer-title .media-type-icon {
    margin-right: 0.5rem;
}

/* Media type icon overlay for gallery items */
.media-type-icon-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.media-type-icon-overlay .media-type-icon {
    margin: 0;
    width: 14px;
    height: 14px;
    opacity: 1;
}

.media-type-icon-overlay .media-type-image {
    color: var(--accent-pink);
    filter: drop-shadow(0 0 4px var(--accent-pink-glow));
}

.media-type-icon-overlay .media-type-video {
    color: var(--accent-teal);
    filter: drop-shadow(0 0 4px var(--accent-teal-glow));
}

/* Ensure media previews have relative positioning for overlay */
.media-preview {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.media-preview img,
.media-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
}

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

/* Section icons like the paw icon */
.section-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    opacity: 0.9;
}

.paw-icon {
    color: white;
    fill: white;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Pink characters in More text */
.pink-chars {
    color: var(--accent-pink);
}

.more-text {
    display: inline;
}

.media-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.media-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tags-with-add {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}

.add-tags-btn {
    color: var(--accent-pink);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    user-select: none;
    flex-shrink: 0;
    align-self: flex-start;
}

.add-tags-btn:hover {
    background: rgba(255, 107, 157, 0.1);
    transform: scale(1.1);
}

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

.media-views {
    color: var(--accent-teal);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.media-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.media-tag {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
}

/* Loading and Empty States */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    position: relative;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--accent-teal),
        var(--accent-pink),
        var(--accent-teal)
    );
    animation: elegantSpin 1.5s ease-in-out infinite;
    padding: 3px;
    margin-bottom: 1rem;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: var(--bg-primary);
    border-radius: 50%;
}

/* Elegant loading cursor replacement */
.app-loading {
    position: relative;
}

.app-loading::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    z-index: 9998;
    pointer-events: none;
}

.app-loading::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--accent-teal),
        var(--accent-pink),
        var(--accent-teal)
    );
    animation: elegantSpin 1.2s ease-in-out infinite;
    z-index: 9999;
    pointer-events: none;
}

@keyframes elegantSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

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

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 400px;
}

.empty-state .btn {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.85rem !important;
    min-width: auto !important;
    max-width: 150px;
    display: inline-flex !important;
    align-items: center;
    gap: 0.3rem;
}

.empty-state .btn i {
    font-size: 0.8rem;
}

/* Static Color Buttons with Shadow Highlights */
.btn {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    /* cursor removed - using global custom cursor */
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.3px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(78, 205, 196, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(78, 205, 196, 0.6);
    background: var(--bg-secondary);
}

.btn:active {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

.btn.primary {
    background: var(--accent-teal);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: white;
    box-shadow: 
        0 6px 20px rgba(78, 205, 196, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn.primary:hover {
    background: #4db6ac;
    box-shadow: 
        0 15px 45px rgba(78, 205, 196, 0.6),
        0 8px 25px rgba(0, 0, 0, 0.25);
    transform: translateY(-4px);
    border-color: rgba(78, 205, 196, 0.8);
}

.btn.secondary {
    background: var(--accent-teal);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: white;
    box-shadow: 
        0 6px 20px rgba(78, 205, 196, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn.secondary:hover {
    background: #4db6ac;
    box-shadow: 
        0 15px 45px rgba(78, 205, 196, 0.6),
        0 8px 25px rgba(0, 0, 0, 0.25);
    transform: translateY(-4px);
    border-color: rgba(78, 205, 196, 0.8);
}

.btn.danger {
    background: linear-gradient(135deg, var(--accent-pink) 0%, rgba(255, 107, 157, 0.8) 100%);
    border: 1px solid rgba(255, 107, 157, 0.4);
    color: white;
    box-shadow: 
        0 6px 20px rgba(255, 107, 157, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn.danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn.danger:hover::before {
    left: 100%;
}

.btn.danger:hover {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.9) 0%, var(--accent-pink) 100%);
    box-shadow: 
        0 15px 45px rgba(255, 107, 157, 0.6),
        0 8px 25px rgba(0, 0, 0, 0.25);
    transform: translateY(-4px);
    border-color: rgba(255, 107, 157, 0.8);
}

/* Background Section - Full screen coverage */
.background-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    overflow: hidden;
    display: none;
}

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

.background-image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    filter: blur(3px) brightness(0.4);
    opacity: 0.7;
    transition: all 0.5s ease;
    transform: scale(1.1); /* Slight scale to avoid blur edge artifacts */
}

.background-section.active .background-image-container {
    opacity: 0.8;
}

.background-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 15, 0.3) 0%,
        rgba(10, 10, 15, 0.1) 50%,
        rgba(10, 10, 15, 0.3) 100%
    );
}

/* Stories Modal Styling */
.stories-modal-content {
    max-width: 90vw;
    width: 1200px;
    height: 80vh;
    max-height: 800px;
}

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

.stories-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.stories-filters .search-input {
    flex: 1;
    max-width: 300px;
}

.stories-list {
    max-height: 60vh; /* More responsive height */
    min-height: 200px; /* Ensure minimum height for usability */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 0.5rem;
    padding-right: 0.5rem; /* Space for scrollbar */
}

@media (max-width: 480px) {
    .stories-list {
        max-height: 55vh; /* Better mobile height */
        min-height: 180px;
    }
    
    .stories-modal-content {
        max-width: 95vw;
        max-height: 90vh;
        border-radius: 12px;
        margin: 5vh auto;
    }
    
    .story-item {
        padding: 1rem;
        border-radius: 10px;
        margin-bottom: 0.8rem;
    }
    
    .story-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .story-meta {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .story-preview {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .story-actions {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .story-actions .btn {
        min-height: 40px;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Story filters on mobile */
    .stories-filters {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
    }
    
    .stories-filters input,
    .stories-filters select {
        width: 100%;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

.story-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    /* cursor removed - using global custom cursor */
    transition: all var(--transition-smooth);
    position: relative;
}

.story-item:hover {
    border-color: var(--accent-teal);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.2);
    transform: translateY(-2px);
}

.story-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.story-item-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    margin-right: 1rem;
}

.story-item-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.story-item-preview {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.story-tag {
    background: rgba(78, 205, 196, 0.1);
    color: var(--accent-teal);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(78, 205, 196, 0.2);
}

.story-item-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.story-item-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.story-item:hover .story-item-actions {
    opacity: 1;
}

.story-action-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 6px;
    /* cursor removed - using global custom cursor */
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.story-action-btn:hover {
    background: var(--accent-teal);
    color: var(--bg-primary);
}

.story-action-btn.danger:hover {
    background: var(--accent-pink);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

/* Story Reader Modal */
.story-reader {
    max-width: 90vw;
    width: 800px;
    height: 85vh;
    max-height: 900px;
}

.story-reader .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.story-meta {
    flex: 1;
}

.story-meta h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    line-height: 1.3;
}

.story-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Story actions - matching media viewer style */
.story-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}


.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.story-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-primary);
    max-height: 500px;
    overflow-y: auto;
    padding-right: 1rem;
    white-space: pre-wrap;
}

/* Character counters */
.field-hint {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.field-hint .char-count {
    font-family: monospace;
}

/* Settings Modal Sections */
.settings-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.settings-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-pink));
    border-radius: 16px 16px 0 0;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 107, 157, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.settings-section h3::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-pink);
    box-shadow: 0 0 10px var(--accent-pink);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* Custom Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* cursor removed - using global custom cursor */
    font-weight: 500;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: var(--bg-tertiary);
    position: relative;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.checkbox-label:hover .checkbox-custom {
    border-color: rgba(78, 205, 196, 0.6);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.2);
}

/* Settings form styling */
input[type="file"] {
    display: none;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-teal) 0%, rgba(78, 205, 196, 0.8) 100%);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 12px;
    color: white;
    /* cursor removed - using global custom cursor */
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.file-upload-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.file-upload-btn:hover::before {
    left: 100%;
}

.file-upload-btn:hover {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.9) 0%, var(--accent-teal) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.field-group {
    margin-bottom: 1.5rem;
}

.field-group label:not(.checkbox-label) {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    opacity: 1;
    transform: scale(1);
}

.field-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h2 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    /* cursor removed - using global custom cursor */
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-body {
    padding: 2rem;
}

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

/* Upload Modal Specific Styles */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    /* cursor removed - using global custom cursor */
    transition: all var(--transition-smooth);
    margin-bottom: 2rem;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--accent-teal);
    background: rgba(78, 205, 196, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--accent-teal);
    margin-bottom: 1rem;
}

.upload-text h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

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

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

.upload-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.field-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.field-group input,
.field-group textarea {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition-smooth);
    resize: vertical;
}

.field-group input:focus,
.field-group textarea:focus {
    outline: none;
    border-color: rgba(255, 107, 157, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.upload-progress {
    margin-top: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width var(--transition-smooth);
    width: 0%;
}

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

/* Media Viewer Modal */
.media-viewer .modal-content {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
}

.viewer-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

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

.viewer-info h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Cute Meta Items in Viewer Header */
.viewer-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(78, 205, 196, 0.05) 100%);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.meta-item:hover {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(78, 205, 196, 0.1) 100%);
    border-color: var(--accent-teal);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.meta-icon {
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.meta-item:hover .meta-icon {
    color: var(--accent-teal);
}

.meta-text {
    white-space: nowrap;
}

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

/* Cute Navigation Controls - Mac/Linux/Hello Kitty Aesthetic */
.viewer-btn {
    position: relative;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 16px; /* Super rounded like macOS */
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth Mac-like transition */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    /* cursor removed - using global custom cursor */
    overflow: hidden;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.25rem;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.viewer-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: var(--accent-teal);
}

.viewer-btn:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
}

/* Cute specific button styles */
.cute-nav-btn {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--accent-teal);
}

.cute-nav-btn:hover {
    background: linear-gradient(135deg, var(--accent-teal) 0%, rgba(78, 205, 196, 0.8) 100%);
    color: white;
}

.cute-heart-btn {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(255, 107, 157, 0.1) 100%);
    color: var(--accent-pink);
    border-color: var(--accent-pink);
}

.cute-heart-btn:hover {
    background: linear-gradient(135deg, var(--accent-pink) 0%, rgba(255, 107, 157, 0.8) 100%);
    color: white;
    transform: translateY(-2px) scale(1.1);
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
    0%, 100% { transform: translateY(-2px) scale(1.1); }
    25% { transform: translateY(-2px) scale(1.15); }
    50% { transform: translateY(-2px) scale(1.1); }
    75% { transform: translateY(-2px) scale(1.15); }
}

.cute-edit-btn {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(78, 205, 196, 0.1) 100%);
    color: var(--accent-teal);
    border-color: var(--accent-teal);
}

.cute-edit-btn:hover {
    background: linear-gradient(135deg, var(--accent-teal) 0%, rgba(78, 205, 196, 0.8) 100%);
    color: white;
    animation: editWiggle 0.5s ease-in-out;
}

@keyframes editWiggle {
    0%, 100% { transform: translateY(-2px) rotate(0deg) scale(1.05); }
    25% { transform: translateY(-2px) rotate(-2deg) scale(1.05); }
    75% { transform: translateY(-2px) rotate(2deg) scale(1.05); }
}

.cute-delete-btn {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(255, 107, 157, 0.1) 100%);
    color: var(--accent-pink);
    border-color: var(--accent-pink);
}

.cute-delete-btn:hover {
    background: linear-gradient(135deg, var(--accent-pink) 0%, rgba(255, 107, 157, 0.8) 100%);
    color: white;
    animation: deleteShake 0.5s ease-in-out;
}

@keyframes deleteShake {
    0%, 100% { transform: translateY(-2px) translateX(0) scale(1.05); }
    25% { transform: translateY(-2px) translateX(-2px) scale(1.05); }
    75% { transform: translateY(-2px) translateX(2px) scale(1.05); }
}

.cute-close-btn {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.cute-close-btn:hover {
    background: linear-gradient(135deg, var(--text-secondary) 0%, rgba(128, 128, 128, 0.8) 100%);
    color: white;
    animation: closeSpin 0.3s ease-in-out;
}

@keyframes closeSpin {
    0% { transform: translateY(-2px) rotate(0deg) scale(1.05); }
    100% { transform: translateY(-2px) rotate(90deg) scale(1.05); }
}

/* Cute count styling */
.cute-count {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 107, 157, 0.2);
    border-radius: 12px;
    color: var(--accent-pink);
    min-width: 24px;
    text-align: center;
}

/* Tooltip styling for cute buttons */
.viewer-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1001;
    pointer-events: none;
    animation: tooltipFadeIn 0.2s ease-out;
}

@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(5px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Legacy support for danger class */
.viewer-btn.danger {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(255, 107, 157, 0.1) 100%);
    color: var(--accent-pink);
    border-color: var(--accent-pink);
}

.viewer-btn.danger:hover {
    background: linear-gradient(135deg, var(--accent-pink) 0%, rgba(255, 107, 157, 0.8) 100%);
    color: white;
}

.viewer-main {
    flex: 1;
    display: flex;
    background: var(--bg-primary);
}

.viewer-media {
    height: 75vh;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    width: 100%;
}

.viewer-media img,
.viewer-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    max-width: 100vw;
    max-height: 75vh;
}

.viewer-sidebar {
    width: 100%;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.media-details {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-group {
    display: flex;
    flex-direction: column;
}

.detail-group:last-child {
    grid-column: span 1;
}

.detail-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Cute tags in viewer sidebar */
.tag-list .tag-item {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(78, 205, 196, 0.05) 100%);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 0.9rem;
    border-radius: 18px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0.3rem 0.3rem 0.3rem 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* cursor removed - using global custom cursor */
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.tag-list .tag-item:hover {
    background: linear-gradient(135deg, var(--accent-teal) 0%, rgba(78, 205, 196, 0.8) 100%);
    border-color: var(--accent-teal);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}


.tech-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tech-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 0.85rem;
}

.tech-item span:first-child {
    color: var(--text-secondary);
}

.tech-item span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .sidebar {
        width: 280px;
    }
    
    .content-area {
        margin-left: 280px;
    }
    
    .search-input {
        width: 250px;
    }
}

/* iPad Pro and Large Tablets (1024px - 768px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform var(--transition-smooth);
        z-index: 1500;
        width: 320px;
        height: 100vh;
        backdrop-filter: blur(20px);
        background: rgba(18, 18, 26, 0.95);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }
    
    .content-area {
        margin-left: 0;
        padding: 2rem;
        min-height: 100vh;
    }
    
    /* Navigation adjustments for iPad */
    .nav-container {
        padding: 1.2rem;
        position: relative;
        padding-left: 4.5rem;
    }
    
    .nav-container::before {
        content: "☰";
        position: absolute;
        left: 1.2rem;
        top: 50%;
        transform: translateY(-50%);
        padding: 0.7rem;
        font-weight: 400;
        background: var(--bg-tertiary);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        font-size: 1.2rem;
        color: var(--accent-pink);
        z-index: 10;
        transition: all var(--transition-smooth);
        width: 3rem;
        height: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    .nav-container::before:hover {
        background: var(--accent-pink);
        color: white;
        border-color: var(--accent-pink);
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 0 15px rgba(255, 107, 157, 0.4);
    }
    
    .search-input {
        width: 280px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .nav-buttons {
        gap: 0.8rem;
    }
    
    .nav-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    /* Featured carousel adjustments for iPad */
    .featured-carousel {
        height: 320px;
        margin-bottom: 1rem;
    }
    
    .carousel-slide-title {
        font-size: 2.2rem;
    }
    
    .carousel-slide-subtitle {
        font-size: 1.1rem;
    }
    
    /* Modal optimizations for iPad */
    .modal-content {
        max-width: 90vw;
        max-height: 90vh;
        border-radius: 16px;
    }
    
    /* Upload modal for iPad */
    .upload-area {
        padding: 3rem 2rem;
        border-radius: 12px;
    }
    
    /* Media viewer for iPad */
    .media-viewer .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .viewer-header {
        padding: 1.5rem;
        gap: 1.2rem;
    }
    
    .viewer-actions {
        gap: 0.8rem;
    }
    
    .viewer-btn {
        min-width: 50px;
        min-height: 50px;
        padding: 0.8rem;
        border-radius: 14px;
    }
    
    .viewer-media {
        height: 65vh;
        max-height: 600px;
    }
    
    /* Toolbar for iPad */
    .toolbar {
        padding: 1rem 1.5rem;
        gap: 1.2rem;
    }
    
    .toolbar-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
        min-height: 44px;
    }
}

/* Regular Tablets and smaller iPad (768px and below) */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform var(--transition-smooth);
        z-index: 1500;
        width: 300px;
        height: 100vh;
        backdrop-filter: blur(20px);
        background: rgba(18, 18, 26, 0.98);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }
    
    .content-area {
        margin-left: 0;
        padding: 1.5rem;
        min-height: 100vh;
    }
    
    /* Mobile menu button for tablets and below */
    .nav-container {
        padding: 1rem;
        position: relative;
        padding-left: 4rem;
    }
    
    .nav-container::before {
        content: "☰";
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        padding: 0.5rem;
        font-weight: 400;
        background: var(--bg-tertiary);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        font-size: 1.1rem;
        color: var(--accent-pink);
        z-index: 10;
        transition: all var(--transition-smooth);
        width: 2.5rem;
        height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    .nav-container::before:hover {
        background: var(--accent-pink);
        color: white;
        border-color: var(--accent-pink);
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 0 10px rgba(255, 107, 157, 0.3);
    }
    
    .search-input {
        width: 200px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.2rem;
    }
    
    /* Featured carousel for regular tablets */
    .featured-carousel {
        height: 280px;
        margin-bottom: 1rem;
    }
    
    .carousel-slide-title {
        font-size: 2rem;
    }
    
    .carousel-slide-subtitle {
        font-size: 1rem;
    }
    
    /* Navigation buttons optimization */
    .nav-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        min-height: 44px;
    }
    
    /* Modal adjustments for tablets */
    .modal-content {
        max-width: 85vw;
        max-height: 85vh;
        border-radius: 14px;
    }
    
    /* Media viewer for tablets */
    .media-viewer .modal-content {
        max-width: 90vw;
        max-height: 90vh;
        border-radius: 10px;
    }
    
    .viewer-header {
        padding: 1.2rem;
        gap: 1rem;
    }
    
    .viewer-btn {
        min-width: 46px;
        min-height: 46px;
        padding: 0.7rem;
        border-radius: 12px;
    }
    
    .viewer-media {
        height: 60vh;
        max-height: 500px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    /* Navigation adjustments */
    .navbar {
        padding: 0;
    }
    
    .nav-container {
        padding: calc(0.75rem + 1px) 0.75rem calc(0.75rem + 1px) 3.5rem;
        flex-direction: column;
        gap: 1rem;
        position: relative;
    }
    
    .nav-controls {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .search-container {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .nav-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .nav-btn {
        flex: 1;
        min-width: 80px;
        text-align: center;
        justify-content: center;
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Main content adjustments */
    .main-content {
        padding-top: 140px; /* Account for larger mobile nav */
    }
    
    .content-area {
        padding: 1rem;
    }
    
    /* Media grid optimizations */
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .media-item {
        border-radius: 12px;
    }
    
    .media-thumbnail {
        height: 150px;
    }
    
    .media-info {
        padding: 0.75rem;
    }
    
    .media-title {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .media-meta {
        margin-bottom: 0.5rem;
    }
    
    .media-date,
    .media-views {
        font-size: 0.75rem;
    }
    
    .media-tag {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }
    
    /* Toolbar mobile optimization */
    .toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        padding: 0.75rem;
    }
    
    .toolbar-left,
    .toolbar-right {
        text-align: center;
    }
    
    .toolbar-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Modal optimizations */
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .modal-header,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Upload modal mobile */
    .upload-area {
        padding: 2rem 1rem;
        border-radius: 8px;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .upload-text h4 {
        font-size: 1rem;
    }
    
    .upload-text p {
        font-size: 0.9rem;
    }
    
    .upload-types {
        font-size: 0.8rem;
    }
    
    /* Media viewer mobile */
    .media-viewer .modal-content {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        height: 100vh;
    }
    
    .viewer-content {
        height: 100vh;
    }
    
    .viewer-header {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .viewer-info h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .viewer-meta {
        gap: 0.5rem;
    }
    
    .meta-item {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 10px;
    }
    
    .meta-icon {
        width: 12px;
        height: 12px;
    }
    
    .viewer-actions {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .viewer-btn {
        min-width: 40px;
        min-height: 40px;
        padding: 0.6rem;
        border-radius: 12px;
        font-size: 0.9rem;
    }
    
    .viewer-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .cute-count {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    
    .viewer-actions {
        gap: 0.5rem;
    }
    
    .viewer-media {
        height: 60vh;
        max-height: 500px;
        padding: 0;
        width: 100%;
    }
    
    .viewer-media img,
    .viewer-media video {
        border-radius: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        max-width: 100vw;
        max-height: 60vh;
    }
    
    .viewer-sidebar {
        padding: 1rem;
    }
    
    .media-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .detail-group:last-child {
        grid-column: span 1;
    }
    
    /* Login screen mobile */
    .login-container {
        padding: 1rem;
    }
    
    .login-form {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }
    
    .login-header p {
        font-size: 1rem;
    }
    
    .input-group input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem 1rem 1rem 2.5rem;
    }
    
    .login-btn {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Small mobile phones */
@media (max-width: 400px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.5rem;
    }
    
    .media-thumbnail {
        height: 130px;
    }
    
    .media-info {
        padding: 0.5rem;
    }
    
    .media-title {
        font-size: 0.8rem;
    }
    
    .media-date,
    .media-views {
        font-size: 0.7rem;
    }
    
    .nav-btn {
        font-size: 0.75rem;
        padding: 0.6rem 0.4rem;
    }
    
    .toolbar {
        padding: 0.5rem;
    }
    
    .content-area {
        padding: 0.75rem;
    }
    
    .login-header h1 {
        font-size: 1.75rem;
    }
    
    .upload-area {
        padding: 1.5rem 0.75rem;
    }
    
    /* Content spacing adjustments for small mobile */
    .main-content {
        padding-top: 60px;
    }
    
    /* Carousel responsive adjustments for small mobile */
    .featured-carousel {
        height: 180px;
        margin-bottom: 0.25rem;
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    .carousel-slide-title {
        font-size: 1.3rem;
    }
    
    .carousel-slide-content {
        bottom: 0.8rem;
        left: 0.8rem;
        right: 0.8rem;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
    
    .carousel-controls {
        padding: 0 0.8rem !important;
    }
}

/* iPad Landscape and Tablet Landscape */
@media (max-width: 1024px) and (orientation: landscape) and (min-height: 600px) {
    .featured-carousel {
        height: 300px;
    }
    
    .sidebar {
        width: 280px;
    }
    
    .nav-container {
        padding: 0.8rem;
        padding-left: 3.8rem;
    }
    
    .nav-container::before {
        width: 2.8rem;
        height: 2.8rem;
        left: 0.8rem;
    }
    
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .viewer-media {
        height: 70vh;
        max-height: 650px;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
}

/* Touch-friendly improvements */
@media (pointer: coarse) {
    .nav-btn,
    .toolbar-btn,
    .filter-btn,
    .btn,
    .modal-close,
    .viewer-btn {
        min-height: 44px; /* Apple's recommended touch target size */
        min-width: 44px;
    }
    
    .media-item {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .media-item:active {
        transform: scale(0.98);
        box-shadow: var(--shadow-md);
    }
    
    .media-select-checkbox {
        width: 32px;
        height: 32px;
        opacity: 1; /* Always visible on touch devices */
    }
    
    .tag-item {
        min-height: 36px;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Enhanced touch targets for mobile navigation */
    .nav-container::before {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Better touch targets for carousel */
    .carousel-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
    }
    
    /* Enhanced sidebar touch targets */
    .filter-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Stories touch optimization */
    .story-item {
        min-height: 60px;
        padding: 1rem;
    }
    
    .story-actions .btn {
        padding: 0.6rem 1rem;
        min-width: 60px;
    }
}

/* Dark mode optimizations for mobile */
@media (max-width: 480px) and (prefers-color-scheme: dark) {
    .search-input,
    .input-group input {
        background: var(--bg-primary);
        color: var(--text-primary);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .media-thumbnail img,
    .media-thumbnail video {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Mobile Landscape Orientation */
@media (max-width: 480px) and (orientation: landscape) {
    .main-content {
        padding-top: 80px;
    }
    
    .nav-container {
        padding: 0.5rem;
        flex-direction: row;
        gap: 1rem;
        align-items: center;
    }
    
    .nav-controls {
        flex-direction: row;
        gap: 0.5rem;
        width: auto;
        flex: 1;
    }
    
    .search-input {
        width: 180px;
        font-size: 14px;
    }
    
    .nav-buttons {
        flex-wrap: nowrap;
        gap: 0.3rem;
    }
    
    .nav-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
        min-width: 60px;
    }
    
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.8rem;
    }
    
    .media-thumbnail {
        height: 100px;
    }
    
    .featured-carousel {
        height: 220px;
    }
    
    .viewer-media {
        height: 65vh;
    }
    
    .sidebar {
        width: 260px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-teal);
}

/* Animation for page transitions */
.page-transition {
    animation: fadeInUp 0.6s ease-out;
}

/* Progressive Enhancement for Mobile */
@media (max-width: 1024px) {
    /* Smooth scrolling for mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Enhanced focus states for accessibility */
    .nav-btn:focus,
    .toolbar-btn:focus,
    .filter-btn:focus,
    .btn:focus,
    .viewer-btn:focus {
        outline: 2px solid var(--accent-teal);
        outline-offset: 2px;
        box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.2);
    }
    
    /* Better loading states on mobile */
    .loading {
        backdrop-filter: blur(10px);
        background: rgba(10, 10, 15, 0.9);
    }
    
    .loading-spinner {
        border-width: 3px;
        width: 40px;
        height: 40px;
    }
    
    /* Mobile-optimized animations */
    .media-item,
    .story-item,
    .nav-btn,
    .toolbar-btn {
        will-change: transform;
    }
    
    /* Better readability on small screens */
    .meta-text,
    .field-hint,
    .upload-types {
        line-height: 1.5;
    }
    
    /* Enhanced drag-and-drop feedback on touch devices */
    .upload-area.drag-over {
        transform: scale(1.02);
        box-shadow: var(--shadow-lg);
        background: rgba(78, 205, 196, 0.1);
        border-color: var(--accent-teal);
    }
}

/* Dark Mode Mobile Optimizations */
@media (max-width: 1024px) and (prefers-color-scheme: dark) {
    .modal-content,
    .sidebar,
    .viewer-content {
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
    }
    
    .nav-container::before {
        background: rgba(18, 18, 26, 0.9);
        backdrop-filter: blur(10px);
    }
}

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

/* Glow effects for interactive elements */
.glow-on-hover {
    transition: all var(--transition-smooth);
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px var(--accent-pink-glow);
}

/* List view styles */
.media-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.media-grid.list-view .media-item {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    height: 120px;
}

.media-grid.list-view .media-thumbnail {
    width: 160px;
    height: 120px;
    flex-shrink: 0;
}

.media-grid.list-view .media-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.media-grid.list-view .media-title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.4;
}

.media-grid.list-view .media-meta {
    margin-bottom: 0.5rem;
}

.media-grid.list-view .media-tags {
    margin-top: auto;
}

/* Heart/Like Styles */
.media-hearts {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--accent-pink);
    font-size: 0.75rem;
}

.media-hearts i {
    color: var(--accent-pink);
}

.love-btn {
    background: rgba(255, 107, 157, 0.1) !important;
    border-color: var(--accent-pink) !important;
    color: var(--accent-pink) !important;
    transition: all var(--transition-smooth);
}

.love-btn:hover {
    background: var(--accent-pink) !important;
    color: white !important;
    transform: scale(1.05);
}

.love-btn i {
    margin-right: 0.5rem;
}

.viewer-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Modal fade-out animation */
.modal.fade-out {
    animation: modalFadeOut 0.3s ease-out forwards;
}

.modal.fade-out .modal-content {
    animation: modalContentFadeOut 0.3s ease-out forwards;
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
    to {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

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

/* Form select styling */
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition-smooth);
    /* cursor removed - using global custom cursor */
}

.form-select:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Modern Notification System */
.notification-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.notification {
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    animation: slideInRight 0.3s ease-out forwards;
    position: relative;
    overflow: hidden;
}

.notification.removing {
    animation: slideOutRight 0.3s ease-in forwards;
}

.notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-teal);
}

.notification.success::before {
    background: linear-gradient(135deg, var(--accent-teal), #00ff88);
}

.notification.error::before {
    background: linear-gradient(135deg, #ff4757, #ff3838);
}

.notification.warning::before {
    background: linear-gradient(135deg, #ffa502, #ff6348);
}

.notification.info::before {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-teal));
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.notification-icon {
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    color: var(--accent-teal);
}

.notification.error .notification-icon {
    color: #ff4757;
}

.notification.warning .notification-icon {
    color: #ffa502;
}

.notification.info .notification-icon {
    color: var(--accent-pink);
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.notification-message {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    /* cursor removed - using global custom cursor */
    padding: 0;
    margin-left: 0.5rem;
    opacity: 0.7;
    transition: opacity var(--transition-smooth);
    flex-shrink: 0;
}

.notification-close:hover {
    opacity: 1;
    color: var(--text-primary);
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0 0 0.75rem 0.75rem;
    animation: progressBar 4s linear forwards;
}

.notification.success .notification-progress {
    background: var(--accent-teal);
}

.notification.error .notification-progress {
    background: #ff4757;
}

.notification.warning .notification-progress {
    background: #ffa502;
}

.notification.info .notification-progress {
    background: var(--accent-pink);
}

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

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

@keyframes progressBar {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* More Media Section */
.suggested-media {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.suggested-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    /* cursor removed - using global custom cursor */
    transition: all var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-tertiary);
}

.suggested-item:hover {
    transform: scale(1.05);
    border-color: var(--accent-teal);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

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

.suggested-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 0.5rem;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.suggested-item:hover .suggested-item-overlay {
    opacity: 1;
}

.suggested-item-info {
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.suggested-item-type {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.suggested-item-type.video {
    background: rgba(255, 107, 157, 0.8);
}

.suggested-item-type.image {
    background: rgba(78, 205, 196, 0.8);
}

.suggested-media-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.suggested-media-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: center;
}

@media (max-width: 480px) {
    .notification-container {
        top: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
    }
    
    .notification {
        min-width: auto;
        max-width: none;
    }
    
    .suggested-media {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }
}

/* Upload Preview Styles */
.upload-preview-container {
    width: 100%;
    padding: 1rem;
}

.upload-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-preview-header h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0;
}

.clear-files-btn {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
    padding: 0.5rem;
    border-radius: 0.5rem;
    /* cursor removed - using global custom cursor */
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-files-btn:hover {
    background: #ff4757;
    color: white;
    transform: scale(1.05);
}

.upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.upload-preview-item {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.upload-preview-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent-teal);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.2);
}

.upload-preview-media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.upload-preview-video-placeholder,
.upload-preview-unknown {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-secondary);
    font-size: 2rem;
}

.upload-preview-video-placeholder {
    background: rgba(255, 107, 157, 0.1);
    color: var(--accent-pink);
}

.upload-preview-unknown {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.upload-preview-type {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: white;
    backdrop-filter: blur(4px);
}

.upload-preview-type.image {
    background: rgba(78, 205, 196, 0.8);
}

.upload-preview-type.video {
    background: rgba(255, 107, 157, 0.8);
}

.upload-preview-type.unknown {
    background: rgba(255, 255, 255, 0.2);
}

.upload-preview-info {
    padding: 0.75rem;
}

.upload-preview-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.upload-preview-size {
    font-size: 0.625rem;
    color: var(--text-secondary);
}

.upload-preview-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
}

.upload-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(78, 205, 196, 0.3);
    border-top-color: var(--accent-teal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@media (max-width: 480px) {
    .upload-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }
}
