/**
 * Shared Dashboard Styles
 * Standardizes layout components across Vendor, Agency, and Admin views.
 */

:root {
    --header-height: 70px;
    --sidebar-width: 280px;
}

/* Header Standardization */
.header-top {
    height: var(--header-height);
    padding: 0 var(--space-xl);
    background: var(--color-bg-primary);
    border-bottom: var(--border-width) solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

/* Sidebar Sidebar width must be consistent */
.sidebar {
    width: var(--sidebar-width);
    background: var(--color-bg-primary);
    border-right: 2px solid var(--color-border);
    position: relative;
    box-shadow: var(--shadow-sm);
}

/* Typography Enforcement */
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div,
input,
button,
select,
textarea {
    font-family: var(--font-family-primary) !important;
}

/* High Contrast Adjustments for Dashboard Pages */
.dashboard-v2 .main-content {
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
}

.dashboard-v2 .text-muted {
    color: var(--text-muted) !important;
}

/* Removal of footers from dashboards as requested */
.dashboard-v2 .site-footer,
.dashboard-v2 footer#site-footer {
    display: none !important;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Ensure consistent card formatting */
.dashboard-v2 .content-card,
.dashboard-v2 .standard-card,
.dashboard-v2 .enhanced-card {
    background: var(--bg-white);
    border: 1px solid var(--color-border-light);
    color: var(--text-primary);
}

/* Touch Targets for Mobile */
.nav-item,
.btn,
.action-card,
.header-actions button {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
}

/* Navigation Active State */
.nav-item.active {
    background: var(--color-bg-tertiary) !important;
    color: var(--color-primary) !important;
    border-left: 4px solid var(--color-primary) !important;
    font-weight: var(--font-weight-bold);
}

/* Dashboard Grid Layout */
.dashboard-v2 {
    display: flex;
    min-height: 100vh;
}

.dashboard-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.main-content {
    padding: var(--space-md) var(--space-xl) var(--space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .sidebar {
        display: none;
        /* Mobile navigation will be via standard header */
    }

    .dashboard-v2 {
        display: block;
    }

    .main-content {
        padding: var(--space-lg);
    }
}