/* ====================================
   CUSTOMER DASHBOARD STYLES
   ==================================== */

:root {
    --primary-blue: #0D85D8;
    --primary-blue-dark: #0B6DB0;
    --primary-blue-light: rgba(13, 133, 216, 0.1);
    --success-green: #10B981;
    --warning-orange: #F59E0B;
    --danger-red: #EF4444;
    --purple: #8B5CF6;
    --grey-dark: #1C1C1C;
    --grey-medium: #4F5B67;
    --grey-light: #9CA3AF;
    --grey-lighter: #E8EDF2;
    --grey-lightest: #F8F9FA;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--grey-lightest);
    color: var(--grey-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ====================================
   DASHBOARD HEADER
   ==================================== */

.dashboard-header {
    background: var(--white);
    border-bottom: 1px solid var(--grey-lighter);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.dashboard-header .dashboard-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo img {
    height: 40px;
    width: auto;
}

.dashboard-welcome {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--grey-dark);
    margin: 0;
}

.user-name {
    color: var(--primary-blue);
}

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

/* Header Quick Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 1rem;
    border-right: 1px solid var(--grey-lighter);
}

.header-action-btn {
    position: relative;
    background: transparent;
    border: 2px solid var(--grey-lighter);
    cursor: pointer;
    color: var(--grey-medium);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.header-action-btn:hover {
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 133, 216, 0.2);
}

.header-action-btn:active {
    transform: translateY(0);
}

.notification-btn {
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--grey-medium);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: var(--grey-lightest);
    color: var(--primary-blue);
}

.notification-btn[data-count]:after {
    content: attr(data-count);
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger-red);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notification-btn[data-count="0"]:after {
    display: none;
}

/* Notification Dropdown */
.notification-dropdown-container {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: var(--white);
    border: 1px solid var(--grey-lighter);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 380px;
    max-height: 500px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-dropdown-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--grey-lighter);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-dropdown-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.mark-all-read {
    background: transparent;
    border: none;
    color: var(--primary-blue);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.mark-all-read:hover {
    background: var(--grey-lightest);
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--grey-lightest);
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.notification-item:hover {
    background: var(--grey-lightest);
}

.notification-item.unread {
    background: rgba(13, 133, 216, 0.05);
    border-left: 3px solid var(--primary-blue);
}

.notification-item.unread:hover {
    background: rgba(13, 133, 216, 0.1);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.message {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
}

.notification-icon.deliverable {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.notification-icon.task {
    background: rgba(13, 133, 216, 0.1);
    color: var(--primary-blue);
}

.notification-icon.milestone {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content p {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.notification-time {
    font-size: 0.8rem;
    color: var(--grey-medium);
}

.notification-empty {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--grey-medium);
}

.notification-empty svg {
    opacity: 0.3;
    margin-bottom: 1rem;
}

.notification-empty p {
    margin: 0;
    font-size: 0.95rem;
}

.notification-dropdown-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--grey-lighter);
    text-align: center;
}

.notification-dropdown-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.notification-dropdown-footer a:hover {
    text-decoration: underline;
}

.user-menu {
    position: relative;
}

.user-avatar {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(13, 133, 216, 0.3);
}

.avatar-initials {
    user-select: none;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: var(--white);
    border: 1px solid var(--grey-lighter);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--grey-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--grey-lighter);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: var(--grey-lightest);
    color: var(--primary-blue);
    padding-left: 1.5rem;
}

/* ====================================
   DASHBOARD NAVIGATION
   ==================================== */

.dashboard-nav {
    background: var(--white);
    border-bottom: 1px solid var(--grey-lighter);
    position: sticky;
    top: 73px;
    z-index: 90;
}

.nav-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.5rem;
}

.nav-tabs li {
    margin: 0;
}

.nav-tabs a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    color: var(--grey-medium);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-tabs a:hover {
    color: var(--primary-blue);
    background: var(--grey-lightest);
}

.nav-tabs a.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.badge {
    background: var(--danger-red);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* ====================================
   MAIN DASHBOARD
   ==================================== */

.dashboard-main {
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 200px);
}

/* Quick Stats Bar */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--grey-lighter);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.blue {
    background: rgba(13, 133, 216, 0.1);
    color: var(--primary-blue);
}

.stat-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
}

.stat-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-orange);
}

.stat-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--grey-medium);
    margin: 0 0 0.25rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--grey-dark);
    margin: 0;
    line-height: 1;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.dashboard-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Dashboard Sections */
.dashboard-section {
    background: var(--white);
    border: 1px solid var(--grey-lighter);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

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

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--grey-dark);
    margin: 0;
}

.view-all {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.view-all:hover {
    color: var(--primary-blue-dark);
    transform: translateX(3px);
}

.count-badge {
    background: var(--primary-blue);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    min-width: 28px;
    text-align: center;
}

.dashboard-section h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--grey-dark);
    margin: 0 0 1.25rem;
}

/* ====================================
   PROJECT CARDS
   ==================================== */

.project-card {
    background: var(--grey-lightest);
    border: 2px solid var(--grey-lighter);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.project-card:last-child {
    margin-bottom: 0;
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.project-card.featured {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(13, 133, 216, 0.02) 0%, rgba(13, 133, 216, 0.05) 100%);
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.project-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--grey-dark);
    margin: 0 0 0.5rem;
}

.project-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
}

.status-review {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-orange);
}

.project-menu {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--grey-medium);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.project-menu:hover {
    background: var(--grey-lighter);
    color: var(--grey-dark);
}

.project-progress {
    margin-bottom: 1.25rem;
}

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

.progress-label {
    font-size: 0.9rem;
    color: var(--grey-medium);
    font-weight: 500;
}

.progress-percent {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--grey-dark);
}

.progress-bar {
    background: var(--grey-lighter);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

.progress-fill.complete {
    background: linear-gradient(90deg, var(--success-green) 0%, #059669 100%);
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--grey-lighter);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--grey-medium);
}

.meta-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.project-actions {
    display: flex;
    gap: 0.75rem;
}

/* ====================================
   ACTIVITY FEED
   ==================================== */

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: var(--grey-lightest);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.blue {
    background: rgba(13, 133, 216, 0.1);
    color: var(--primary-blue);
}

.activity-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
}

.activity-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple);
}

.activity-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-orange);
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.95rem;
    color: var(--grey-dark);
    margin: 0 0 0.25rem;
    line-height: 1.5;
}

.activity-text strong {
    font-weight: 600;
    color: var(--grey-dark);
}

.activity-time {
    font-size: 0.85rem;
    color: var(--grey-light);
    margin: 0;
}

/* ====================================
   DELIVERABLES
   ==================================== */

.deliverable-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.deliverable-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--grey-lightest);
    border: 1px solid var(--grey-lighter);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.deliverable-item:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.deliverable-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.deliverable-content {
    flex: 1;
}

.deliverable-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--grey-dark);
    margin: 0 0 0.25rem;
}

.deliverable-meta {
    font-size: 0.85rem;
    color: var(--grey-medium);
    margin: 0;
}

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

/* ====================================
   QUICK ACTIONS
   ==================================== */

.quick-actions-section h2 {
    margin-bottom: 1rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    background: var(--grey-lightest);
    border: 2px solid var(--grey-lighter);
    border-radius: var(--radius-md);
    color: var(--grey-dark);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--white);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.action-btn svg {
    color: var(--primary-blue);
}

/* ====================================
   MILESTONES
   ==================================== */

.milestone-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.milestone-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--grey-lightest);
    border: 1px solid var(--grey-lighter);
    border-left: 4px solid var(--primary-blue);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.milestone-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.milestone-item.urgent {
    border-left-color: var(--warning-orange);
    background: rgba(245, 158, 11, 0.03);
}

.milestone-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--white);
    border: 2px solid var(--grey-lighter);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--grey-dark);
    line-height: 1;
}

.date-month {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--grey-medium);
    text-transform: uppercase;
}

.milestone-content {
    flex: 1;
}

.milestone-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--grey-dark);
    margin: 0 0 0.25rem;
}

.milestone-content p {
    font-size: 0.85rem;
    color: var(--grey-medium);
    margin: 0 0 0.5rem;
}

.milestone-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
}

.milestone-badge.urgent {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-orange);
}

.milestone-badge.overdue {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-red);
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--grey-medium);
}

.empty-state p {
    margin: 0;
    font-size: 0.95rem;
}

/* ====================================
   MESSAGES
   ==================================== */

.message-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1rem;
}

.message-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--grey-lighter);
    cursor: pointer;
    transition: all 0.2s ease;
}

.message-item:last-child {
    border-bottom: none;
}

.message-item:hover {
    background: var(--grey-lightest);
}

.message-item.unread {
    background: rgba(13, 133, 216, 0.03);
}

.message-item.unread .message-content h4 {
    font-weight: 700;
}

.message-avatar {
    position: relative;
}

.avatar-initials.small {
    width: 44px;
    height: 44px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--grey-dark);
    margin: 0 0 0.25rem;
}

.message-content p {
    font-size: 0.9rem;
    color: var(--grey-medium);
    margin: 0 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-time {
    font-size: 0.8rem;
    color: var(--grey-light);
}

/* ====================================
   FINANCIAL OVERVIEW
   ==================================== */

.financial-summary {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--grey-lighter);
}

.financial-item {
    flex: 1;
}

.financial-label {
    font-size: 0.85rem;
    color: var(--grey-medium);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.financial-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--grey-dark);
    line-height: 1;
}

.financial-value .unit {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--grey-medium);
}

.financial-divider {
    width: 1px;
    height: 50px;
    background: var(--grey-lighter);
}

.budget-progress {
    margin-bottom: 1.5rem;
}

.budget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--grey-medium);
    font-weight: 500;
}

/* ====================================
   TEAM MEMBERS
   ==================================== */

.team-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--grey-lighter);
    cursor: pointer;
    transition: all 0.2s ease;
}

.team-member:last-child {
    border-bottom: none;
}

.team-member:hover {
    background: var(--grey-lightest);
}

.member-avatar {
    position: relative;
}

.member-avatar .avatar-initials {
    width: 44px;
    height: 44px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
}

.status-dot.online {
    background: var(--success-green);
}

.status-dot.away {
    background: var(--warning-orange);
}

.status-dot.offline {
    background: var(--grey-light);
}

.member-info {
    flex: 1;
}

.member-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--grey-dark);
    margin: 0 0 0.25rem;
}

.member-info p {
    font-size: 0.85rem;
    color: var(--grey-medium);
    margin: 0;
}

/* ====================================
   BUTTONS
   ==================================== */

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 133, 216, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--grey-dark);
    border: 2px solid var(--grey-lighter);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

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

.btn-full {
    width: 100%;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--grey-medium);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--grey-lightest);
    color: var(--primary-blue);
}

/* ====================================
   FOOTER
   ==================================== */

.dashboard-footer {
    background: var(--white);
    border-top: 1px solid var(--grey-lighter);
    padding: 2rem 0;
    margin-top: 4rem;
}

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

.footer-content p {
    margin: 0;
    color: var(--grey-medium);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--grey-medium);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr 350px;
    }
    
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-right {
        order: -1;
    }
    
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-welcome {
        font-size: 1.1rem;
    }
    
    .header-left {
        gap: 1rem;
    }
    
    .header-actions {
        gap: 0.25rem;
        padding-right: 0.75rem;
    }
    
    .header-action-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 0 1.5rem;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-welcome {
        display: none;
    }
    
    .header-actions {
        gap: 0.25rem;
        padding-right: 0.5rem;
        border-right: none;
    }
    
    .header-action-btn {
        width: 36px;
        height: 36px;
        border: 1px solid var(--grey-lighter);
    }
    
    .header-right {
        gap: 0.5rem;
    }
    
    .nav-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .nav-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .nav-tabs a {
        padding: 1rem;
    }
    
    .dashboard-section {
        padding: 1.25rem;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .project-actions button {
        width: 100%;
    }
    
    .deliverable-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .deliverable-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .financial-summary {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .financial-divider {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 0 1rem;
    }
    
    .dashboard-header .dashboard-container {
        padding: 0 1rem;
    }
    
    .logo img {
        height: 32px;
    }
    
    /* Hide less important action buttons on very small screens */
    .header-action-btn:nth-child(3),
    .header-action-btn:nth-child(4) {
        display: none;
    }
    
    .header-actions {
        padding-right: 0.5rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .project-card {
        padding: 1.25rem;
    }
    
    .milestone-date {
        width: 50px;
        height: 50px;
    }
    
    .date-day {
        font-size: 1.25rem;
    }
}

/* ====================================
   ANIMATIONS & TRANSITIONS
   ==================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* ====================================
   UTILITY CLASSES
   ==================================== */

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--grey-medium);
}

.text-primary {
    color: var(--primary-blue);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }


/* ====================================
   NOTIFICATION PREFERENCES MODAL
   ==================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--grey-lighter);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--grey-medium);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--grey-lightest);
    color: var(--text-dark);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--grey-lighter);
}

/* Preference Sections */
.preference-section {
    margin-bottom: 2rem;
}

.preference-section:last-child {
    margin-bottom: 0;
}

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

.preference-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.preference-description {
    margin: 0;
    font-size: 0.9rem;
    color: var(--grey-medium);
}

.sub-preferences {
    margin-left: 1rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--grey-lighter);
    transition: opacity 0.3s ease;
}

.preference-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--grey-lightest);
}

.preference-item:last-child {
    border-bottom: none;
}

.preference-label {
    flex: 1;
}

.preference-label strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.preference-label span {
    font-size: 0.85rem;
    color: var(--grey-medium);
}

.preference-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--grey-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.preference-select:hover {
    border-color: var(--primary-blue);
}

.preference-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(13, 133, 216, 0.1);
}

.preference-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--grey-light);
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background: var(--white);
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: var(--primary-blue);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}
