/* Modern 360 Tour System Design */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Cyberpunk/Modern Glass */
    --bg-dark: #050505;
    /* Deep Black */
    --bg-darker: #000000;
    --primary: #00f0ff;
    /* Cyber Cyan */
    --primary-hover: #00cce6;
    --secondary: #ec4899;
    /* Pink */
    --accent: #8b5cf6;
    /* Violet */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(18, 18, 18, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --success: #10b981;
    --danger: #ef4444;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    /* Layout Variables */
    --sidebar-width: 260px;
    --header-height: 64px;
}

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

body {
    background-color: var(--bg-dark);
    /* #050505 */
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.08) 0%, transparent 25%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-header-cta {
    background: #00f0ff;
    /* Cyber Cyan */
    color: #000;
    /* Black Text */
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.3);
    border: none;
    transition: all 0.2s ease;
}

.btn-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 240, 255, 0.5);
    background: #00cce6;
    color: #000;
}



.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-main);
}

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

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

/* Layout */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    background: #050505;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #050505;
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        display: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        /* Added shadow for better visibility */
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.main-content {
    margin-top: 80px;
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

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

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    height: calc(100vh - 120px);
}

.sidebar {
    height: 100%;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-item {
    padding: 1rem;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-item:hover,
.sidebar-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

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

.b-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    background: #1e293b;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
    /* Align to right */
    gap: 0.75rem;
    /* Consistent gap */
    align-items: center;
}

.card-footer .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-width: 0;
    /* Prevent unwanted stretching */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Tour Editor */
.editor-layout {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 1rem;
    height: calc(100vh - 100px);
}

.scene-list {
    overflow-y: auto;
    padding-right: 0.5rem;
}

.scene-item {
    margin-bottom: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.scene-item.active {
    border-color: var(--primary);
}

.scene-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.viewport {
    background: #000;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.properties-panel {
    overflow-y: auto;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
}

/* User Sidebar Styles - Redesigned */
.user-sidebar-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100vh;
    background: #050505;
    /* Deep Black Match */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0;
    overflow-y: auto;
}

.user-sidebar-logo {
    padding: 1.5rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: transparent;
    border-bottom: none;
}

.user-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.user-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: white;
}

.user-sidebar-userinfo {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    margin-bottom: 1rem;
}

.user-info-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.user-info-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

.sidebar-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 1rem 1rem 1rem;
}

.user-sidebar-menu {
    flex: 1;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-sidebar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    background: transparent;
    border: 1px solid transparent;
}

.user-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    transform: translateX(4px);
}

.user-sidebar-item.active {
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.1) 0%, rgba(0, 240, 255, 0.05) 100%);
    color: var(--primary);
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-sidebar-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.user-sidebar-item.active i {
    color: var(--primary);
}

/* Remove the left-border style used before */
.user-sidebar-item.active::before {
    display: none;
}

.user-sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
}

.user-sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
}

.user-sidebar-logout:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
    transform: translateY(-2px);
}

/* Admin Item Styling */
.user-sidebar-item.admin {
    border-color: transparent;
}

.user-sidebar-item.admin.active {
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.1) 0%, rgba(0, 240, 255, 0.05) 100%);
    color: var(--primary);
    border-color: rgba(0, 240, 255, 0.2);
}

.user-sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #27272a;
    background: rgba(0, 0, 0, 0.2);
}

.user-sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #ef4444;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.user-sidebar-logout:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.user-sidebar-logout i {
    font-size: 1rem;
}

/* User Header Styles - PIXELX SOLUTIONS Style */
/* Header starts after sidebar */
.user-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    /* Start after sidebar (260px) */
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    overflow: hidden;
    transition: left 0.3s ease;
}

.user-header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #050505;
    /* Deep Black Match */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

/* Header Image Support - Add background-image via inline style */
.user-header-background.has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.user-header-background.has-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 41, 59, 0.70) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* Enhanced image overlay for better text readability */
.user-header-background.has-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
}

.user-header-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1;
}

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

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

.mobile-menu-toggle i {
    display: block;
}

.user-header-title {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

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

.user-header-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-header-dropdown:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.user-header-dropdown-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.user-header-dropdown-text {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.user-header-dropdown-arrow {
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.user-header-dropdown:hover .user-header-dropdown-arrow {
    transform: translateY(2px);
}

.user-header-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    min-width: 220px;
    padding: 0.5rem;
    display: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1001;
}

.user-header-dropdown-menu.active {
    display: block;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-header-dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.user-header-dropdown-menu-item i {
    width: 18px;
    text-align: center;
    color: var(--text-muted);
}

.user-header-dropdown-menu-item:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    transform: translateX(4px);
}

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

.user-header-dropdown-menu-item.logout {
    color: #ef4444;
    border-top: 1px solid var(--glass-border);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

.user-header-dropdown-menu-item.logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.user-header-dropdown-menu-item.logout i {
    color: #ef4444;
}

/* Admin Dashboard Menu Item */
.user-header-dropdown-menu-item.admin {
    color: var(--accent);
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid var(--accent);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 600;
}

.user-header-dropdown-menu-item.admin i {
    color: var(--accent);
}

.user-header-dropdown-menu-item.admin:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent);
    transform: translateX(4px);
}

.user-header-dropdown-menu-item.admin:hover i {
    color: var(--accent);
}

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}


.mobile-sidebar-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: all;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Editor Header Styles */
.editor-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    overflow: hidden;
}

.editor-header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.editor-header-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1;
}

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

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

.editor-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.editor-logo-text {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.editor-dashboard-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.editor-dashboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.editor-dashboard-btn i {
    font-size: 1rem;
}

/* Responsive Editor Header */
@media (max-width: 768px) {
    .editor-header-content {
        padding: 0 1rem;
    }

    .editor-logo-text {
        font-size: 1.1rem;
    }

    .editor-logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .editor-dashboard-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .editor-dashboard-btn span {
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .editor-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }

    /* Mobile Header Styles */
    .user-header {
        left: 0 !important;
        padding: 0;
    }

    .user-header-content {
        padding: 0 1rem;
    }

    .user-header-left {
        gap: 0.75rem;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .user-header-title {
        font-size: 1.25rem;
    }

    .user-header-dropdown-text,
    .user-header-dropdown-info {
        display: none !important;
        /* Hide username text on mobile, show only icon */
    }

    .user-header-dropdown {
        padding: 0.5rem;
        min-width: auto;
    }

    .user-header-dropdown-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .user-sidebar-container {
        width: 100%;
    }

    /* Dashboard sidebar responsive */
    .dashboard-sidebar {
        width: 280px;
        max-width: 85vw;
        top: var(--header-height);
        /* Start below header */
        height: calc(100vh - var(--header-height));
        /* Full height minus header */
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .dashboard-sidebar.mobile-open {
        transform: translateX(0);
    }

    .dashboard-full-layout {
        left: 0 !important;
    }

    /* Mobile overlay starts below header */
    .mobile-sidebar-overlay {
        top: var(--header-height);
    }

    /* Mobile dropdown menu adjustments */
    .user-header-dropdown-menu {
        right: 0.5rem;
        min-width: 200px;
    }
}

/* Tablet and smaller desktop */
@media (max-width: 1024px) and (min-width: 769px) {
    .user-header-title {
        font-size: 1.35rem;
    }

    .user-header-dropdown-text {
        font-size: 0.9rem;
    }
}