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

:root {
    /* Tesla/Mac Color Palette */
    --primary: #000000;
    --primary-light: #1a1a1a;
    --accent: #00d4ff;
    --accent-hover: #00b8e6;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --dark-glass: rgba(0, 0, 0, 0.3);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --success: #00ff88;
    --warning: #ffcc00;
    --error: #ff4757;
    --background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #000000 100%);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.4);
    --blur: 12px;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: linear-gradient(45deg, var(--accent), transparent);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -5%;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    left: 60%;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: -15s;
}

.shape-5 {
    width: 250px;
    height: 250px;
    bottom: -10%;
    right: 30%;
    animation-delay: -8s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(-60px) rotate(240deg); }
}

/* ===== LOGIN STYLES ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-glass {
    background: var(--glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.login-glass:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

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

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

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-accent {
    font-size: 1rem;
    font-weight: 400;
    color: var(--accent);
}

.version-badge {
    background: var(--dark-glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.login-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* ===== MODERN INPUTS ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
}

.modern-input {
    width: 100%;
    padding: 1rem 0 0.5rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.modern-input:focus {
    border-bottom-color: var(--accent);
}

.floating-label {
    position: absolute;
    left: 0;
    top: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
    pointer-events: none;
}

.modern-input:focus + .floating-label,
.modern-input:valid + .floating-label {
    top: 0;
    font-size: 0.75rem;
    color: var(--accent);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.modern-input:focus ~ .input-line {
    width: 100%;
}

/* ===== TESLA BUTTON ===== */
.tesla-btn {
    position: relative;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    margin-top: 1rem;
}

.tesla-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.4);
}

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

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glow {
    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.5s;
}

.tesla-btn:hover .btn-glow {
    left: 100%;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
}

.security-badge {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: var(--dark-glass);
    display: inline-block;
}

/* ===== DASHBOARD STYLES ===== */
.dashboard {
    display: none;
    min-height: 100vh;
}

.dashboard.active {
    display: block;
}

/* ===== TOP NAVIGATION ===== */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass);
    backdrop-filter: blur(var(--blur));
    border-bottom: 1px solid var(--glass-border);
}

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

.nav-left {
    display: flex;
    align-items: center;
}

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

.nav-icon {
    font-size: 1.5rem;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-version {
    background: var(--accent);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-center {
    display: flex;
    align-items: center;
}

.nav-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--dark-glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.5rem 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.stat-divider {
    width: 1px;
    height: 2rem;
    background: var(--glass-border);
}

.nav-right {
    display: flex;
    align-items: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--dark-glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.5rem 1rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.875rem;
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
}

.logout-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
}

.logout-btn:hover {
    color: var(--error);
    background: rgba(255, 71, 87, 0.1);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ===== SECTIONS ===== */
.upload-zone,
.analytics-section,
.library-section {
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.title-icon {
    font-size: 1.25rem;
}

/* ===== DROP ZONE ===== */
.upload-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drop-zone {
    position: relative;
    border: 2px dashed var(--glass-border);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.05);
    transform: scale(1.02);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.drop-icon {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.drop-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.drop-subtitle {
    color: var(--text-secondary);
    margin: 0;
}

.file-types {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.file-type {
    background: var(--dark-glass);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== PREVIEW SECTION ===== */
.preview-section {
    display: none;
    background: var(--dark-glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

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

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

.preview-header h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.clear-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition);
}

.clear-btn:hover {
    border-color: var(--error);
    color: var(--error);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.preview-item {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.75rem;
    transition: var(--transition);
}

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

.preview-thumbnail {
    width: 100%;
    height: 60px;
    background: var(--dark-glass);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.preview-thumbnail img,
.preview-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.preview-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

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

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

.remove-preview {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.remove-preview:hover {
    transform: scale(1.1);
}

.preview-actions {
    display: flex;
    justify-content: center;
}

/* ===== UPLOAD QUEUE ===== */
.queue-section {
    display: none;
    background: var(--dark-glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

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

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

.queue-header h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.queue-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem;
    transition: var(--transition);
}

.queue-item.uploading {
    border-color: var(--warning);
    background: rgba(255, 204, 0, 0.05);
}

.queue-item.success {
    border-color: var(--success);
    background: rgba(0, 255, 136, 0.05);
}

.queue-item.error {
    border-color: var(--error);
    background: rgba(255, 71, 87, 0.05);
}

.queue-file-info {
    flex: 1;
}

.queue-file-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.queue-file-size {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.queue-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-pending {
    background: var(--dark-glass);
    color: var(--text-muted);
}

.status-uploading {
    background: rgba(255, 204, 0, 0.2);
    color: var(--warning);
}

.status-success {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
}

.status-error {
    background: rgba(255, 71, 87, 0.2);
    color: var(--error);
}

/* ===== ANALYTICS CARDS ===== */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
}

.metric-card.primary::before {
    background: var(--accent);
}

.metric-card.secondary::before {
    background: var(--success);
}

.metric-card.accent::before {
    background: var(--warning);
}

.metric-card.success::before {
    background: var(--success);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.metric-icon {
    font-size: 1.25rem;
}

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

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.metric-trend {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== MEDIA LIBRARY ===== */
.library-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-badge {
    background: var(--success);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-badge::before {
    content: '●';
    animation: pulse 2s ease-in-out infinite;
}

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

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

.action-btn {
    background: var(--dark-glass);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.library-content {
    margin-top: 1.5rem;
}

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

.media-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

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

.media-thumbnail {
    width: 100%;
    height: 180px;
    background: var(--dark-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

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

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

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.media-thumbnail:hover .play-overlay {
    opacity: 1;
}

.media-info {
    padding: 1.5rem;
}

.media-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.media-title:hover {
    color: var(--accent);
}

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

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

.action-btn-small {
    background: var(--dark-glass);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition);
}

.action-btn-small:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.action-btn-small.delete:hover {
    border-color: var(--error);
    color: var(--error);
}

/* ===== LIGHTBOX ===== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
}

.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 2001;
}

.lightbox-controls {
    position: absolute;
    top: -60px;
    right: 0;
    display: flex;
    gap: 1rem;
    z-index: 2002;
}

.control-btn {
    background: var(--glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: scale(1.1);
}

.lightbox-media {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.lightbox-img,
.lightbox-video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

.lightbox-info {
    background: var(--glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
}

.media-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.media-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

/* ===== LOADING STATES ===== */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    text-align: center;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.loading-content {
    text-align: center;
    color: var(--text-primary);
}

.loading-text {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.spinner-modern {
    width: 48px;
    height: 48px;
    border: 3px solid transparent;
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* ===== MESSAGE SYSTEM ===== */
.message-zone {
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.success-message,
.error-message,
.message {
    background: var(--glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.success-message,
.message-success {
    border-left: 4px solid var(--success);
}

.error-message,
.message-error {
    border-left: 4px solid var(--error);
}

.message-warning {
    border-left: 4px solid var(--warning);
}

.message-info {
    border-left: 4px solid var(--accent);
}

.message-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message-text {
    flex: 1;
    font-size: 0.9rem;
}

.message-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    margin-left: 0.5rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.message-close:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

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

/* ===== EMPTY STATES ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    text-align: center;
    color: var(--text-muted);
}

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

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .nav-content {
        padding: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .nav-center {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-right {
        width: 100%;
        justify-content: center;
    }
    
    .login-glass {
        padding: 2rem;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-controls {
        position: static;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .media-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .message-zone {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0.5rem;
    }
    
    .upload-zone,
    .analytics-section,
    .library-section {
        padding: 1rem;
    }
    
    .drop-zone {
        padding: 2rem 1rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-shapes {
        display: none;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--dark-glass);
    border-radius: 4px;
}

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

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