/* Dashboard Layout structure */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-color);
}

.dashboard-sidebar {
    width: var(--sidebar-width);
    background: var(--surface-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: transform var(--transition-normal);
}

.dashboard-sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-nav {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    overflow-y: auto;
}

.dashboard-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.dashboard-nav-item svg {
    color: var(--muted);
    transition: color var(--transition-fast);
}

.dashboard-nav-item:hover, .dashboard-nav-item.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.03);
}

.dashboard-nav-item.active {
    color: var(--primary-gold);
    background: var(--gold-glow);
    border-left: 2px solid var(--primary-gold);
}

.dashboard-nav-item.active svg {
    color: var(--primary-gold);
}

.dashboard-sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-profile-summary {
    display: flex;
    flex-direction: column;
}

.user-profile-name {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
}

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

/* Dashboard Content Area */
.dashboard-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

.dashboard-header {
    height: var(--header-height);
    background: rgba(11, 11, 11, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    position: sticky;
    top: 0;
    z-index: 90;
}

.dashboard-title-area h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.dashboard-body {
    padding: 3rem;
    flex: 1;
    overflow-y: auto;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.stat-card-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
}

.stat-card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.stat-trend-up {
    color: var(--success);
}

.stat-trend-down {
    color: var(--danger);
}

/* Canvas/SVG Chart containers */
.chart-container {
    position: relative;
    width: 100%;
    height: 250px;
    margin-top: 1.5rem;
}

.chart-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Kanban Board Component */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: start;
    margin-top: 2rem;
}

.kanban-column {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 500px;
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.kanban-column-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kanban-column-count {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
}

.kanban-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 400px;
}

.kanban-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    cursor: grab;
    transition: all var(--transition-fast);
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card.dragging {
    opacity: 0.4;
    border-color: var(--primary-gold);
    transform: scale(0.98);
}

.kanban-card:hover {
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-sm), var(--gold-glow);
}

.kanban-card-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.kanban-card-desc {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.kanban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-card-avatars {
    display: flex;
    align-items: center;
}

.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--card-color);
    margin-left: -6px;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--white);
}

.avatar:first-child {
    margin-left: 0;
}

/* Activity Timeline Component */
.timeline-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 4px;
    width: 1px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item-dot {
    position: absolute;
    left: -1.5rem;
    top: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--muted-dark);
    border: 2px solid var(--bg-color);
}

.timeline-item.success .timeline-item-dot { background-color: var(--success); }
.timeline-item.danger .timeline-item-dot { background-color: var(--danger); }
.timeline-item.warning .timeline-item-dot { background-color: var(--warning); }
.timeline-item.info .timeline-item-dot { background-color: var(--info); }
.timeline-item.gold .timeline-item-dot { background-color: var(--primary-gold); }

.timeline-item-time {
    font-size: 0.75rem;
    color: var(--muted-dark);
    margin-bottom: 0.25rem;
}

.timeline-item-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
}

.timeline-item-desc {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

/* responsive adjustments for sidebar */
@media (max-width: 992px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
    }
    
    .mobile-sidebar-active .dashboard-sidebar {
        transform: translateX(0);
    }
    
    .dashboard-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .kanban-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        padding: 0 1.5rem;
    }
    
    .dashboard-body {
        padding: 1.5rem;
    }
}
