/* Digital Marketing Agency Management System - Premium Styling */

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

:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #161c2d;
    --bg-card: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --accent: #d946ef;
    
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.15);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --info: #0ea5e9;
    --info-bg: rgba(14, 165, 233, 0.15);
    
    --font-sans: 'Outfit', sans-serif;
    --sidebar-width: 260px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulseBorder {
    0% { border-color: rgba(99, 102, 241, 0.4); }
    50% { border-color: rgba(217, 70, 239, 0.8); }
    100% { border-color: rgba(99, 102, 241, 0.4); }
}

/* Auth Pages Layout */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(217, 70, 239, 0.15) 0%, transparent 40%);
}

.auth-container {
    width: 100%;
    max-width: 450px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-premium);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 16px;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.5);
}

.auth-logo i {
    font-size: 2rem;
    color: #fff;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 60%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

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

.form-input-wrapper {
    position: relative;
}

.form-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-input: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);
}

.form-input:focus + .form-icon {
    color: var(--primary);
}

textarea.form-input {
    padding-left: 1rem;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M12 16L6 10H18L12 16Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em;
    padding-right: 2.5rem;
}

.form-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.form-link {
    color: var(--primary);
    font-weight: 500;
}

.form-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Alert Notification Banner */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
    animation: fadeIn 0.4s ease;
}

.alert-success {
    background: var(--success-bg);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: var(--danger-bg);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 15px -4px rgba(99, 102, 241, 0.4);
}

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

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

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

.btn-danger {
    background: var(--danger-bg);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Main Dashboard Panel Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: var(--glass-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar a {
    text-decoration: none !important;
}

.sidebar-header {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: var(--glass-border);
}

.sidebar-logo {
    width: 38px;
    height: 38px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

.sidebar-title {
    font-weight: 700;
    font-size: 1.15rem;
    background: linear-gradient(135deg, #fff 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-menu {
    list-style: none;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
    overflow-y: auto;
}

.menu-item-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

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

.menu-item-link.active {
    border-left: 3px solid var(--primary);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.menu-item-link i {
    font-size: 1.25rem;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.1);
}

.user-info {
    overflow: hidden;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Header Content & Body Layout */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 2rem 3rem;
    min-height: 100vh;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Card Panel */
.panel {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-premium);
    margin-bottom: 2rem;
}

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

.panel-title {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-premium);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.stat-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.primary {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.stat-icon.success {
    background: var(--success-bg);
    color: var(--success);
}

.stat-icon.warning {
    background: var(--warning-bg);
    color: var(--warning);
}

/* Table Design */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.custom-table td {
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.custom-table tbody tr {
    transition: var(--transition-fast);
}

.custom-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: var(--success-bg);
    color: #34d399;
}

.badge-danger {
    background: var(--danger-bg);
    color: #f87171;
}

.badge-info {
    background: var(--info-bg);
    color: #38bdf8;
}

/* Action buttons */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.btn-icon.delete:hover {
    background: var(--danger-bg);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}

/* Profile Form Page */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: var(--glass-border);
    }
    
    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 1rem;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }
    
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* LIGHT MODE OVERRIDES FOR THE RIGHT SIDE (.main-content) */
.main-content {
    background: #ffffff !important;
    color: #1e293b !important;
}

.main-content .page-title,
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
    color: #0f172a !important;
}

.main-content .page-subtitle,
.main-content p,
.main-content .text-muted {
    color: #64748b !important;
}

/* Panels / Cards */
.main-content .panel,
.main-content .card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 2px 4px -1px rgba(0,0,0,0.02) !important;
    color: #1e293b !important;
}

.main-content .panel-title,
.main-content .card-title {
    color: #0f172a !important;
}

/* Tables */
.main-content .custom-table {
    color: #1e293b !important;
}

.main-content .custom-table th {
    color: #475569 !important;
    border-bottom: 2px solid #e2e8f0 !important;
    background: #f8fafc !important;
}

.main-content .custom-table td {
    color: #1e293b !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.main-content .custom-table tbody tr:hover {
    background: #f8fafc !important;
}

/* Secondary Button Light Mode Overrides */
.main-content .btn-secondary {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

.main-content .btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Form Elements */
.main-content label {
    color: #475569 !important;
}

.main-content .form-control,
.main-content .form-select,
.main-content input[type="text"],
.main-content input[type="password"],
.main-content input[type="email"],
.main-content input[type="number"],
.main-content textarea,
.main-content select {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}

.main-content .form-control:focus,
.main-content .form-select:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
}

/* Action Buttons / Icons */
.main-content .btn-icon {
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #475569 !important;
}

.main-content .btn-icon:hover {
    background: #f1f5f9 !important;
    color: #6366f1 !important;
}

.main-content .btn-icon.delete:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    border-color: #fca5a5 !important;
}

/* Badges */
.main-content .badge-info {
    background: rgba(14, 165, 233, 0.1) !important;
    color: #0284c7 !important;
}

.main-content .badge-success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
}

.main-content .badge-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #dc2626 !important;
}

.main-content .badge-secondary {
    background: rgba(100, 116, 139, 0.1) !important;
    color: #475569 !important;
}

/* Stat Cards */
.main-content .stat-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 2px 4px -1px rgba(0,0,0,0.02) !important;
}

.main-content .stat-content h3 {
    color: #0f172a !important;
}

.main-content .stat-content p {
    color: #64748b !important;
}

/* Top Bar / Breadcrumbs */
.main-content .top-bar {
    border-bottom: 1px solid #e2e8f0 !important;
    margin-bottom: 2rem !important;
    padding-bottom: 1rem !important;
}

/* UTILITY CLASSES FOR DESIGN CONSISTENCY */
.d-flex {
    display: flex !important;
}
.flex-wrap {
    flex-wrap: wrap !important;
}
.align-items-center {
    align-items: center !important;
}
.justify-content-between {
    justify-content: space-between !important;
}
.justify-content-center {
    justify-content: center !important;
}
.gap-1 {
    gap: 0.25rem !important;
}
.gap-2 {
    gap: 0.5rem !important;
}
.ms-2 {
    margin-left: 0.5rem !important;
}
.m-0 {
    margin: 0 !important;
}
.mb-3 {
    margin-bottom: 1rem !important;
}
.pb-3 {
    padding-bottom: 1rem !important;
}
.border-bottom {
    border-bottom: 1px solid #e2e8f0 !important;
}
.w-100 {
    width: 100% !important;
}
.px-2 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}
.py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}
.text-white {
    color: #ffffff !important;
}
.text-danger {
    color: #ef4444 !important;
}
.text-decoration-none {
    text-decoration: none !important;
}
.bg-dark {
    background-color: #1e293b !important;
}
.bg-primary {
    background-color: #3b82f6 !important;
}
.bg-success {
    background-color: #10b981 !important;
}
.btn-xs {
    padding: 0.2rem 0.5rem !important;
    font-size: 0.75rem !important;
    border-radius: 4px !important;
    font-weight: 600;
}
.form-select-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.85rem !important;
}
.form-control-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.85rem !important;
}

/* Unified Top Header Bar Styling */
.top-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.top-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.top-header-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

.top-header-breadcrumbs a {
    color: #64748b;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.top-header-breadcrumbs a:hover {
    color: var(--primary);
}

.top-header-breadcrumbs .breadcrumb-separator {
    color: #cbd5e1;
}

.top-header-breadcrumbs .active {
    color: #0f172a;
    font-weight: 500;
}

.top-header-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.top-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-header-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 1.5rem;
    border-left: 1px solid #e2e8f0;
}

.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.profile-details {
    display: flex;
    flex-direction: column;
    max-width: 150px;
}

.profile-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.profile-role {
    font-size: 0.75rem;
    color: #64748b;
}

.profile-logout-btn {
    color: #64748b;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.04);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.profile-logout-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.header-actions-wrapper .btn {
    height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Fixed Top Header Navigation Styling */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--bg-secondary);
    border-bottom: var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
}

.top-navbar-container {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.top-navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
    flex-shrink: 0;
}

.top-navbar-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.top-navbar-menu .menu-item-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    text-decoration: none !important;
}

.top-navbar-menu .menu-item-link i {
    font-size: 1.15rem;
}

.top-navbar-menu .menu-item-link:hover,
.top-navbar-menu .menu-item-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.top-navbar-menu .menu-item-link.active {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

.top-navbar-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.top-navbar .top-header-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-navbar .profile-name {
    color: var(--text-primary) !important;
}

.top-navbar .profile-role {
    color: var(--text-secondary) !important;
}

.top-navbar .profile-logout-btn {
    color: var(--text-secondary) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem !important;
    height: 36px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all var(--transition-fast);
}

.top-navbar .profile-logout-btn:hover {
    color: #ffffff !important;
    background: rgba(239, 68, 68, 0.8) !important;
}

/* Submenu dropdown styles */
.top-navbar-menu .has-submenu {
    position: relative;
}

.top-navbar-menu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: var(--shadow-premium);
    display: none;
    z-index: 1001;
    margin-top: 0.1rem;
    list-style: none;
}

.top-navbar-menu .has-submenu:hover .submenu {
    display: block;
}

.top-navbar-menu .has-submenu:hover .submenu-arrow {
    transform: rotate(180deg);
}

.top-navbar-menu .submenu-item-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all var(--transition-fast);
}

.top-navbar-menu .submenu-item-link:hover,
.top-navbar-menu .submenu-item-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.top-navbar-menu .submenu-item-link.active {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

/* Adjust Main Content to not be hidden behind fixed header */
.main-content {
    margin-left: 0 !important;
    padding-top: calc(70px + 2rem) !important;
}

/* Mobile responsive styling for the top navbar */
@media (max-width: 992px) {
    .top-navbar {
        height: auto;
        padding: 0.75rem 1.5rem;
    }
    
    .top-navbar-container {
        display: grid;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        gap: 0.75rem;
        align-items: center;
        width: 100%;
    }
    
    .top-navbar-brand {
        grid-column: 1;
        grid-row: 1;
    }
    
    .top-navbar-right {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }
    
    .top-navbar-menu {
        grid-column: 1 / span 2;
        grid-row: 2;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        gap: 0.25rem;
        padding-bottom: 0.25rem;
    }
    
    .top-navbar-menu::-webkit-scrollbar {
        display: none;
    }
    
    .top-navbar-menu .submenu {
        position: absolute;
        top: 100%;
        left: auto;
        right: 0;
    }
    
    .main-content {
        padding-top: calc(125px + 1.5rem) !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}


