/* Dashboard Container */
#dashboard {
    min-height: 100vh;
    /* Background removed to show body background */
}

/* Profile Overlay - Floating Mini Card */
.profile-overlay {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(var(--color-surface-rgb, 255, 255, 255), 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    border-radius: 0 0 var(--card-radius) var(--card-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-overlay:hover {
    background: rgba(var(--color-surface-rgb, 255, 255, 255), 0.95);
}

.profile-overlay:active {
    transform: scale(0.99);
}

.profile-mini-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-mini-avatar svg {
    width: 22px;
    height: 22px;
    color: white;
}

.profile-mini-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.profile-mini-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.profile-mini-status {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

/* Status Pill */
.status-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    border-radius: 20px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    flex-shrink: 0;
    font-size: 0.75rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-secondary);
}

.status-pill.status-online .status-indicator {
    background: var(--color-success);
    box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.2);
}

.status-pill.status-offline .status-indicator {
    background: var(--color-error);
}

.status-text {
    font-weight: 500;
    color: var(--color-text);
}

/* Notification Badge */
.notification-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.125rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.notification-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.notification-badge:active {
    transform: scale(0.95);
}

.notification-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-error);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Dashboard Feed Container */
.dashboard-feed {
    max-width: var(--container-max-width);
    margin: 0 auto;
    width: 100%;
}

/* Quick Actions Strip - Three Button Layout */
.quick-actions-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1rem;
    background: var(--color-surface);
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    border-radius: 0 0 var(--card-radius) var(--card-radius);
    border: var(--card-border);
    border-top: none;
    box-shadow: var(--card-shadow);
}

/* Action Buttons - Consistent Three-Button Layout */
.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: var(--color-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 20px;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
}

.action-btn svg {
    width: 20px;
    height: 20px;
    color: white;
}

.action-btn span {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-align: center;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.35);
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.25);
}

/* AI Assistant Button - Distinct Gradient Styling */
.action-btn.action-ai {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.35);
}

.action-btn.action-ai:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.action-btn.action-ai:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.35);
}

/* Desktop responsive adjustments */
@media (min-width: 768px) {
    .profile-overlay {
        max-width: var(--container-max-width);
        margin: 0 auto;
        border-radius: var(--card-radius) var(--card-radius) 0 0;
        border-left: 1px solid var(--color-border);
        border-right: 1px solid var(--color-border);
        border-bottom: none;
    }

    .quick-actions-strip {
        gap: 1rem;
        padding: 1.25rem;
    }

    .action-btn {
        padding: 0.625rem 1rem;
        min-height: 22px;
    }

    .action-btn svg {
        width: 22px;
        height: 22px;
    }

    .action-btn span {
        font-size: 0.8125rem;
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .profile-overlay {
        background: rgba(var(--color-surface-rgb), 0.9);
    }

    .profile-overlay:hover {
        background: rgba(var(--color-surface-rgb), 0.95);
    }

    .quick-actions-strip {
        background: var(--color-surface);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .profile-overlay,
    .action-btn {
        transition: none;
    }

    .action-btn:hover {
        transform: none;
    }

    .profile-overlay:active,
    .action-btn:active {
        transform: none;
    }
}