/* MediaSnap.ai Inspired Styles - Modern Design */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables for Dark Mode (Default) */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --bg-surface: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --accent-color: #00d4ff;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* Light Mode Variables */
body.light-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #e8e8e8;
    --bg-surface: rgba(0, 0, 0, 0.03);
    --border-color: rgba(0, 0, 0, 0.1);
    --text-primary: #1a1a1a;
    --text-secondary: rgba(0, 0, 0, 0.8);
    --text-tertiary: rgba(0, 0, 0, 0.6);
    --primary-color: #0099cc;
    --secondary-color: #0077aa;
    --accent-color: #0099cc;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* AI Boosters Checkboxes Styles */
#aiBoostersContainer .form-label {
    color: #856ccc !important;
    font-weight: 500;
}

.boosters-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.booster-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(133, 108, 204, 0.08);
    border: 1.5px solid rgba(133, 108, 204, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    line-height: 1.5;
    color: #4c3e83;
    position: relative;
    user-select: none;
}

.booster-checkbox-label:hover {
    background: rgba(133, 108, 204, 0.15);
    border-color: rgba(133, 108, 204, 0.4);
    transform: translateY(-1px);
}

.booster-checkbox-label input[type="checkbox"] {
    padding: 0;
    margin: 0;
    cursor: pointer;
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--bg-secondary);
    border: 1.5px solid rgba(133, 108, 204, 0.3);
    border-radius: 3px;
    position: relative;
    vertical-align: middle;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.booster-checkbox-label input[type="checkbox"]:hover {
    border-color: rgba(133, 108, 204, 0.6);
    background: rgba(133, 108, 204, 0.05);
}

.booster-checkbox-label input[type="checkbox"]:checked {
    background: #856ccc;
    border-color: #856ccc;
}

.booster-checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 0px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    box-sizing: border-box;
}

.booster-checkbox-label span {
    display: inline-block;
    vertical-align: middle;
    line-height: 1.4;
    color: #9376ff;
}

.booster-checkbox-label input[type="checkbox"]:checked + span {
    color: #856ccc;
    font-weight: 500;
}

.booster-checkbox-label:has(input[type="checkbox"]:checked) {
    background: rgba(133, 108, 204, 0.15);
    border-color: #856ccc;
    box-shadow: 0 2px 8px rgba(133, 108, 204, 0.2);
}

@media (max-width: 768px) {
    .boosters-checkboxes {
        gap: 8px;
    }
    
    .booster-checkbox-label {
        padding: 8px 12px;
        font-size: 13px;
        gap: 8px;
    }
    
    .booster-checkbox-label input[type="checkbox"] {
        width: 12px;
        height: 12px;
        min-width: 12px;
        min-height: 12px;
    }
    
    .booster-checkbox-label input[type="checkbox"]:checked::after {
        left: 2px;
        top: -1px;
        width: 2.5px;
        height: 5px;
    }
}

body {
    background: #0a0a0a !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    font-family: 'Inter', sans-serif;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

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

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

.loading-text {
    color: var(--text-primary);
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
}

/* Admin Panel Link Styling */
.user-menu-item.admin-link {
    background: linear-gradient(135deg,rgb(177, 47, 166) 0%, #764ba2 100%);
    color: white !important;
    font-weight: 600;
    margin: 0.25rem 0;
    border-radius: 8px;
}

.user-menu-item.admin-link:hover {
    background: linear-gradient(135deg,rgb(211, 85, 190) 0%, #653a8b 100%);
    transform: translateX(3px);
}

.user-menu-item.admin-link i {
    color: white !important;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Modern Header */
.msnap-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 20px;
    position: relative;
}

/* Search Container - Center */
.search-container {
    flex: 1;
    max-width: 600px;
    position: relative;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-right: 16px;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* User Actions - Right */
.user-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

/* User Level Badge Styling */
.user-level-badge,
.action-btn.user-level-badge {
    background: linear-gradient(179deg, #7a01b7 0%, #4a0f59 100%) !important;
    color: white !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3) !important;
    transition: all 0.3s ease;
    position: relative;
}

body.light-mode .user-level-badge,
body.light-mode .action-btn.user-level-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.1) !important;
}

.user-level-badge:hover,
.action-btn.user-level-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4) !important;
}

body.light-mode .user-level-badge:hover,
body.light-mode .action-btn.user-level-badge:hover {
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.1) !important;
}

.user-level-badge i,
.action-btn.user-level-badge i {
    font-size: 1rem;
    color: white !important;
}

.user-level-badge .level-text,
.action-btn.user-level-badge .level-text {
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    color: white !important;
}

.action-btn.primary {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: var(--text-primary);
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #00b8e6, #0088bb);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

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

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.pro-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff4757;
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    z-index: 1000;
    pointer-events: none;
    transition: none;
}

.user-profile {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar i {
    font-size: 20px;
    color: var(--text-primary);
}

.user-avatar.guest {
    background: rgb(142 50 255);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar:hover,
.user-avatar.active {
    border-color: rgba(0, 212, 255, 0.3);
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary-color);
}

.user-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    margin: 0;
    min-width: 280px;
    max-width: 320px;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(0, 212, 255, 0.1);
}

.user-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.user-menu-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    border-radius: 12px 12px 0 0;
}

.user-menu-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgb(90, 44, 119) 0%, rgb(118, 75, 162) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-menu-avatar i {
    font-size: 24px;
    color: var(--text-primary);
}

.user-menu-avatar.guest {
    background: rgb(142 50 255);
}

.user-menu-info {
    flex: 1;
    min-width: 0;
}

.user-menu-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-email {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.user-menu-item i {
    font-size: 16px;
    color: var(--text-secondary);
    width: 20px;
    text-align: center;
}

.user-menu-item span {
    font-size: 14px;
    font-weight: 500;
}

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

.user-menu-item:hover i {
    color: var(--primary-color);
}

.user-menu-item.logout {
    color: var(--text-secondary);
}

.user-menu-item.logout i {
    color: var(--text-secondary);
}

.user-menu-item.logout:hover {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.user-menu-item.logout:hover i {
    color: var(--text-secondary);
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    height: 44px;
        background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0 16px 0 48px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 8px;
    padding: 8px 0;
    display: none;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.search-container i {
    color: var(--text-secondary);
    margin-right: 8px;
}

.search-input {
    background: none;
    border: none;
    color: var(--text-primary);
    outline: none;
    font-size: 14px;
    width: 100%;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.create-btn {
    background: linear-gradient(135deg, var(--primary-color), #0099cc);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.create-btn i {
    font-size: 20px;
}

.create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 212, 255, 0.4);
}

.publish-btn {
    background: var(--primary-color);
    color: var(--text-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

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

.pro-badge {
    background: var(--primary-color);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.admin-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: #ffd700;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.admin-btn:hover {
    background: var(--bg-secondary);
    border-color: #ffd700;
    transform: translateY(-2px);
}

.notification-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.notification-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.create-icon-btn {
    background: linear-gradient(135deg, var(--primary-color), #0099cc);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 212, 255, 0.15);
}

.create-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 212, 255, 0.25);
}

.create-icon-btn i {
    font-size: 18px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #a00fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
}

.signin-btn {
    background: none;
            border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* Main Layout */
.main-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* Modern Sidebar */
.msnap-sidebar {
    width: 280px;
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: all 0.3s ease;
}

/* Scrollbar Styles for Dark Mode */
.msnap-sidebar::-webkit-scrollbar {
    width: 8px;
}

.msnap-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.msnap-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.msnap-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Scrollbar Styles for Light Mode */
body.light-mode .msnap-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .msnap-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

body.light-mode .msnap-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-content {
    padding: 24px;
}

/* Sidebar Logo */
.sidebar-logo {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo .logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.sidebar-logo .logo-link:hover {
    transform: scale(1.02);
}

.sidebar-logo .logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.sidebar-logo .logo-text {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, var(--text-primary) 0%, rgba(0, 212, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    transition: all 0.3s ease;
}

body.light-mode .sidebar-logo .logo-text {
    background: linear-gradient(135deg, var(--text-primary) 0%, rgba(0, 153, 204, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Sections */
.nav-section {
    margin-bottom: 32px;
}

.nav-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding: 0 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-item.active {
    background: var(--bg-surface);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.nav-item.active:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
    border-color: rgba(139, 92, 246, 0.4);
}

.nav-item.active .nav-indicator {
    opacity: 1;
    transform: scale(1);
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-icon {
    color: #00d4ff;
}

.nav-item.active .nav-icon {
    color: #a78bfa;
}

.nav-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-indicator {
    display: none; /* Removed indicator dot */
}

/* Categories Section */
.categories-section {
    margin-bottom: 24px;
}

.categories-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding: 0 8px;
}

body.light-mode .categories-title {
    color: rgba(0, 0, 0, 0.5);
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.light-mode .category-item {
    background: rgba(0, 0, 0, 0.05);
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

body.light-mode .category-item:hover {
    background: rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

body.light-mode .category-icon {
    color: rgba(0, 0, 0, 0.6);
}

.category-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

body.light-mode .category-name {
    color: rgba(0, 0, 0, 0.7);
}

/* Theme Switcher */
.theme-switcher {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.theme-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.theme-toggle {
    display: flex;
    gap: 8px;
    background: var(--bg-surface);
    border-radius: 10px;
    padding: 4px;
}

.theme-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-tertiary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.theme-btn.active {
    background: #9475cc;
    color: #000;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

body.light-mode .theme-btn.active {
    background: #75a7cc;
    color: var(--text-primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, var(--text-primary) 0%, rgba(0, 212, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    transition: all 0.3s ease;
}

body.light-mode .logo-text {
    background: linear-gradient(135deg, var(--text-primary) 0%, rgba(0, 153, 204, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 32px;
}

/* nav-item styles moved to line 579 - removed duplicate */

.categories h4 {
    color: #888;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-tag {
    color: #888;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.category-tag:hover {
    background: #333;
    color: var(--text-primary);
}

/* Main Content */
.msnap-main-content {
    flex: 1;
    margin-left: 280px;
    background: var(--bg-primary);
    min-height: calc(100vh - 70px);
    padding: 0;
    width: calc(100vw - 280px);
}

.content-container {
    width: 100%;
    padding: 24px;
    position: relative;
}

.content-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding-top: 80px;
    padding-left: 20px;
    padding-right: 20px;
}

/* Large screens - 1800px max width for 5 columns */
@media (min-width: 1400px) {
    .content-wrapper {
        max-width: 1800px !important;
    }
    
    .content-header {
        max-width: 1800px !important;
    }
    
    .content-container {
        max-width: 100%;
    }
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.content-header .mobile-menu-toggle {
    order: 1;
}

.content-header .breadcrumb {
    order: 2;
    flex: 1;
}

.content-header .user-actions {
    order: 3;
    margin-left: auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Breadcrumb mobile brand (hidden on desktop) */
.breadcrumb-mobile-brand {
    display: none;
    align-items: center;
    gap: 8px;
}

.breadcrumb-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.breadcrumb-brand-text {
    font-weight: 600;
    color: var(--text-primary);
}

body.light-mode .breadcrumb-brand-text {
    color: var(--text-primary);
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.light-mode .breadcrumb-item {
    color: rgba(0, 0, 0, 0.6);
}

.breadcrumb-item:hover {
    color: #00d4ff;
}

body.light-mode .breadcrumb-item:hover {
    color: #0099cc;
}

.breadcrumb-item.current {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumb-separator {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

body.light-mode .breadcrumb-separator {
    color: rgba(0, 0, 0, 0.4);
}

.content-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.view-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 4px;
}

.view-btn {
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.filter-btn, .sort-select {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .sort-select:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
}

/* Home Page Specific Styles */
.hero-section {
    margin-bottom: 40px;
}

.create-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.create-card {
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
    cursor: pointer;
}

.create-card:hover {
    border-color: #555;
    transform: translateY(-2px);
}

.create-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.create-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.create-card .btn {
    background: var(--primary-color);
    color:var(--text-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.create-card .btn:hover {
    background: var(--bg-secondary);
}

/* Featured Section */
.featured-section {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="50" cy="50" r="50" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.featured-content {
    position: relative;
    z-index: 2;
}

.featured-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.featured-section p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.featured-section .btn {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

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

/* Models Grid */
.models-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

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

.model-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}

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

.model-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.model-image::before {
    content: '\f0c8';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 64px;
    color: var(--text-secondary);
    position: absolute;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.model-image.no-image::before,
.model-image img[style*="display: none"] + div + div::before {
    opacity: 1;
}

.layer-card .model-image::before {
    content: '\f5fd';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 64px;
    color: var(--text-secondary);
}

.model-image.no-image::before {
    opacity: 1 !important;
}

.model-image img,
.model-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.model-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-color);
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Model Type Badges */
.model-badge.badge-core {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: var(--text-primary);
}

.model-badge.badge-custom {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: var(--text-primary);
}

.model-badge.badge-merged {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: var(--text-primary);
}

.model-badge.badge-api {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--text-primary);
}

.model-badge.badge-upscaler {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
}

.model-badge.badge-motion {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: var(--text-primary);
}

.model-badge.badge-default {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: var(--text-primary);
}

/* Layer Type Badges */
.model-badge.badge-lora {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
}

.model-badge.badge-vae {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: var(--text-primary);
}

.model-badge.badge-textual-inversion,
.model-badge.badge-textual_inversion {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: var(--text-primary);
}

.model-badge.badge-embedding {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: var(--text-primary);
}

.model-badge.badge-hypernetwork {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--text-primary);
}

.model-badge.exclusive {
    background: #8b5cf6;
    color: var(--text-primary);
}

.model-badge.early-access {
    background: #10b981;
    color: var(--text-primary);
}

.model-content {
    padding: 16px;
}

.model-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.model-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}

.model-actions {
    display: flex;
    gap: 8px;
}

.model-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.model-btn.primary {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

.model-btn.primary:hover {
    background: #7c3aed;
}

/* View All Button */
.view-all-btn {
    background: #2a2a2a;
    border: 1px solid #333;
    color: #888;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.view-all-btn:hover {
    background: #333;
    color: var(--text-primary);
    border-color: #555;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .msnap-sidebar {
        width: 240px;
    }
    
    .msnap-main-content {
        margin-left: 240px;
    }
    
    .create-cards {
        grid-template-columns: 1fr;
    }
    
    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Hide sidebar logo on mobile */
    .sidebar-logo {
        display: none !important;
    }
    
    /* Hide user level badge on mobile */
    .user-level-badge,
    .action-btn.user-level-badge {
        display: none !important;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide sidebar by default on mobile */
    .msnap-sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    /* Mobile User Actions - Show only create-btn and user-profile */
    .user-actions {
        gap: 8px;
    }
    
    /* Hide all buttons except create and user-profile */
    .user-actions .publish-btn,
    .user-actions .admin-btn,
    .user-actions .dashboard-btn,
    .user-actions .notification-btn,
    .user-actions .login-btn,
    .user-actions .signup-btn,
    .user-actions .pro-badge {
        display: none !important;
    }
    
    /* Show create button on mobile - always visible */
    .user-actions .create-icon-btn {
        display: flex !important;
        width: 48px;
        height: 48px;
    }
    
    /* Show create button and user-profile on mobile */
    .user-actions .create-btn {
        display: flex;
        width: 48px;
        height: 48px;
    }
    
    .user-actions .create-btn i {
        font-size: 20px;
    }
    
    .user-actions .user-profile {
        display: flex;
    }
    
    /* Mobile User Menu Adjustments */
    .user-menu {
        position: fixed;
        top: auto;
        right: 16px;
        left: 16px;
        width: calc(100% - 32px);
        max-width: 100%;
        min-width: auto;
    }
    
    .user-menu-header {
        padding: 16px;
    }
    
    .user-menu-avatar {
        width: 42px;
        height: 42px;
    }
    
    .user-menu-avatar i {
        font-size: 20px;
    }
    
    .user-menu-item {
        padding: 14px 16px;
    }
    
    .user-menu-item i {
        font-size: 18px;
    }
    
    .user-menu-item span {
        font-size: 15px;
    }
    
    /* Show sidebar when mobile menu is open */
    .msnap-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    /* Show overlay when mobile menu is open */
    .mobile-menu-overlay.mobile-open {
        display: block;
        opacity: 1;
    }
    
    /* Adjust main content for mobile */
    .msnap-main-content {
        margin-left: 0;
        width: 100%;
    }
    
    /* Adjust header content for mobile */
    .content-header {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        gap: 12px;
        top: 0;
        left: 0;
        right: 0;
    }
    
    .content-wrapper {
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 70px;
    }
    
    /* Mobile Menu Toggle Positioning - First item */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 0;
        order: 1;
    }
    
    .content-header .breadcrumb {
        order: 2;
        flex: 1;
        font-size: 12px;
    }
    
    .content-header .breadcrumb .breadcrumb-item {
        font-size: 12px;
    }
    
    /* On mobile, hide "Home" text and show MediaSnap with logo */
    .breadcrumb-home-text {
        display: none;
    }
    
    .breadcrumb-mobile-brand {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }
    
    .breadcrumb-logo {
        width: 28px;
        height: 28px;
        object-fit: contain;
        flex-shrink: 0;
    }
    
    .breadcrumb-brand-text {
        font-size: 17px;
        font-weight: 700;
        color: var(--text-primary);
        white-space: nowrap;
        letter-spacing: 0.3px;
        text-transform: none;
        background: linear-gradient(135deg, var(--text-primary) 0%, rgba(0, 212, 255, 0.9) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: none;
        transition: all 0.3s ease;
    }
    
    body.light-mode .breadcrumb-brand-text {
        background: linear-gradient(135deg, var(--text-primary) 0%, rgba(0, 153, 204, 0.9) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .user-actions {
        position: static;
        right: auto;
        display: flex;
        align-items: center;
        margin-left: auto;
        order: 3;
    }
    
    /* Hide search on mobile */
    .search-container {
        display: none;
    }
    
    /* Page-specific bars take full width on mobile */
    .filter-bar {
        flex-wrap: wrap;
        padding: 12px 0;
        top: 60px;
    }
    
    .quick-prompt-input {
        width: 100%;
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .quick-creation-method-select {
        flex: 1;
        min-width: 0;
    }
    
    .quick-generate-btn {
        flex-shrink: 0;
    }
    
    .filter-bar select {
        flex: 1;
        min-width: 0;
    }
    
    .filter-bar .search-box {
        flex: 1;
        min-width: 0;
        max-width: none;
    }
    
    /* Adjust content padding */
    .content-container {
        padding: 16px;
    }
    
    /* Stack content actions vertically on mobile */
    .content-actions {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .view-toggle,
    .filter-toggle,
    .sort-dropdown {
        width: 100%;
    }
    
    .view-toggle {
        justify-content: center;
    }
    
    .filter-btn,
    .sort-select {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 12px;
    }
    
    .search-container {
        margin: 0 8px;
    }
    
    .action-btn {
        padding: 6px;
        min-width: 36px;
    }
    
    .content-container {
        padding: 12px;
    }
    
    .sidebar-content {
        padding: 16px;
    }
    
    .nav-item {
        padding: 10px 12px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    color: var(--text-primary);
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Footer Styles */
.footer {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 60px 0;
    margin-top: 0;
    position: relative;
    z-index: 1;
    width: 100%;
    clear: both;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
}

.footer-logo span {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.legal-notice {

    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: var(--text-secondary);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
        color: var(--primary-color);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* Filter Bar - Generic for all pages (home generation bar, trends filter, ai-models filter) */
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px 0 0px 0;
    width: 100%;
    margin-bottom: 8px;
    position: -webkit-sticky;
    position: sticky;
    top: 65px;
    z-index: 99;
    flex-wrap: wrap;
}

/* Ensure filter-buttons inside filter-bar are aligned */
.filter-bar .filter-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 0;
    flex-wrap: wrap;
}

/* Ensure consistent height for all filter bar elements */
.filter-bar .filter-buttons {
    display: flex;
    align-items: center;
}

.filter-bar .filter-btn {
    padding: 8px 16px;
    white-space: nowrap;
    height: 36px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-bar .sort-select,
.filter-bar .filter-select {
    padding: 8px 12px;
    height: 36px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.filter-bar .search-box {
    display: flex;
    align-items: center;
}

.filter-bar .search-input {
    height: 36px;
    box-sizing: border-box;
    padding: 8px 12px 8px 36px;
}

.filter-bar .search-section {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
}

.quick-prompt-input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.quick-prompt-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.quick-prompt-input::placeholder {
    color: var(--text-tertiary);
}

.quick-creation-method-select {
    min-width: 200px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-creation-method-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

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

.quick-generate-btn {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(184deg, #251020 0%, #221825 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25),
                0 1px 2px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

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

.quick-generate-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    padding: 1px;
    background: linear-gradient(184deg, #251020 0%, #221825 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.quick-generate-btn:hover::before {
    left: 100%;
}

.quick-generate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4),
                0 2px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
    background: linear-gradient(184deg, #910771 0%, #1c0e0e 100%);
}

.quick-generate-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(99, 102, 241, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.quick-generate-btn i {
    font-size: 15px;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

/* Filter Bar - Dropdowns (for creation methods, categories, model types, etc.) */
.filter-bar select {
    min-width: 180px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-bar select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

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

/* Filter Bar - Search Box */
.filter-bar .search-box {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    position: relative;
}

.filter-bar .search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
    font-size: 13px;
}

.filter-bar .search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.filter-bar .search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.filter-bar .search-input::placeholder {
    color: var(--text-tertiary);
}

/* Filter Bar - Sort Select */
.filter-bar .sort-select,
.filter-bar .filter-select {
    min-width: 150px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-bar .sort-select:focus,
.filter-bar .filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.filter-bar .sort-select option,
.filter-bar .filter-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Results Count */
.filter-bar .results-count {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
    margin-left: auto;
}

/* Responsive behavior for filter bar */
@media (max-width: 992px) {
    .filter-bar .search-box {
        max-width: 250px;
        min-width: 150px;
    }
}


/* Responsive behavior for quick generation bar */
@media (max-width: 1200px) {
    .quick-prompt-input {
        max-width: 400px;
    }
    
    .quick-creation-method-select {
        min-width: 180px;
    }
}

@media (max-width: 992px) {
    .quick-prompt-input {
        max-width: 300px;
    }
    
    .quick-creation-method-select {
        min-width: 160px;
    }
    
    .quick-generate-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .quick-generate-btn i {
        font-size: 14px;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .quick-generation-bar {
        flex-wrap: wrap;
    }
    
    .quick-prompt-input {
        width: 100%;
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .quick-creation-method-select {
        flex: 1;
        min-width: 0;
    }
    
    .quick-generate-btn {
        flex-shrink: 0;
    }
}