html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    /* Remove overflow: hidden to allow scrolling when needed */
}

/* Header & Navigation */
/* Make header full width from edge to edge */
.header {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Fix header to be full width */
.header-content {
    /* max-width: 1400px; */  /* Comment out or remove */
    /* margin: 0 auto; */     /* Comment out or remove */
    width: 100%;
    margin: 0;
    padding: 1rem 2rem 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* THIS IS THE BASE DROPDOWN MENU STYLING - MOVED TO COMPONENTS.CSS */
/* This dropdown menu styling is now the standard for all dropdowns across the app */
/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    position: relative;
}

.user-menu #userName {
    white-space: nowrap;
    overflow: visible;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    overflow: hidden;
    flex-shrink: 0;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.user-dropdown.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-light);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

/* THIS IS THE BASE SIDEBAR NAVIGATION STYLING - MOVED TO COMPONENTS.CSS */
/* Sidebar styles are now defined in components.css for consistency */

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 2rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-light);
}

.nav-item.active {
    color: var(--primary);
    background: #eff6ff;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
}

.nav-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}


/* Main content styles are now defined in components.css for consistency */

/* Responsive stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 20vw, 350px), 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    margin-bottom: 2rem;
}

/* Container */
.container {
    width: 100%;
    margin: 0;
    padding: 0; /* Remove container padding to prevent squishing */
}

/* Responsive */
/* For very small screens */
@media (max-width: 768px) {
    .sidebar {
        display: none; /* Hide sidebar on mobile */
    }
}

/* For ultra-wide monitors */
@media (min-width: 2560px) {
    .dashboard-layout {
        padding: 0 clamp(2rem, 5vw, 10rem); /* Add side padding on ultra-wide */
    }
}