/* ===================================
   NEXUSBOARD DASHBOARD TEMPLATE
   Modern Analytics Dashboard Styles
   =================================== */

/* ===================================
   CSS Custom Properties
   =================================== */

:root {
    /* Primary Colors */
    --nexus-primary: #4F46E5;
    --nexus-primary-light: #6366F1;
    --nexus-primary-dark: #4338CA;

    /* Semantic Colors */
    --nexus-success: #10B981;
    --nexus-success-light: #34D399;
    --nexus-warning: #F59E0B;
    --nexus-warning-light: #FBBF24;
    --nexus-danger: #EF4444;
    --nexus-danger-light: #F87171;
    --nexus-info: #06B6D4;
    --nexus-info-light: #22D3EE;

    /* Neutral Colors */
    --nexus-bg: #F9FAFB;
    --nexus-bg-card: #FFFFFF;
    --nexus-text: #111827;
    --nexus-text-muted: #6B7280;
    --nexus-text-light: #9CA3AF;
    --nexus-border: #E5E7EB;
    --nexus-border-light: #F3F4F6;

    /* Spacing */
    --nexus-radius: 12px;
    --nexus-radius-sm: 8px;
    --nexus-radius-lg: 16px;
    --nexus-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --nexus-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --nexus-transition: 0.2s ease;

    /* Accessibility Widget Theming */
    --rsl-a11y-primary: #4F46E5;
    --rsl-a11y-primary-dark: #4338CA;
    --rsl-a11y-primary-light: #6366F1;
    --rsl-a11y-button-gradient: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
    --rsl-a11y-button-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
    --rsl-a11y-button-shadow-hover: 0 6px 24px rgba(79, 70, 229, 0.5);
    --rsl-a11y-header-gradient: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
    --rsl-a11y-toggle-gradient: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
}

/* Dark Mode */
[data-theme="dark"] {
    --nexus-bg: #111827;
    --nexus-bg-card: #1F2937;
    --nexus-text: #F9FAFB;
    --nexus-text-muted: #9CA3AF;
    --nexus-text-light: #6B7280;
    --nexus-border: #374151;
    --nexus-border-light: #1F2937;
    --nexus-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===================================
   OFF-CANVAS STYLING
   Match NexusBoard indigo theme
   =================================== */

/* Hide shadow when panels are closed */
.off-canvas:not(.off-canvas-open) {
    box-shadow: none !important;
    visibility: hidden;
}

.off-canvas.off-canvas-open {
    visibility: visible;
}

/* Override off-canvas colors to match NexusBoard theme */
.off-canvas {
    --off-canvas-bg: #1E1B4B;
    --off-canvas-text: #E0E7FF;
    --off-canvas-heading: #FFFFFF;
    --off-canvas-paragraph: #C7D2FE;
    --off-canvas-shadow-color: rgba(79, 70, 229, 0.3);
    background: linear-gradient(180deg, #1E1B4B 0%, #312E81 100%);
}

.off-canvas-header {
    background: rgba(79, 70, 229, 0.15);
    border-bottom: 1px solid rgba(199, 210, 254, 0.15) !important;
}

.off-canvas-title {
    color: #FFFFFF !important;
}

.off-canvas-title i {
    color: var(--nexus-primary-light);
    margin-right: 0.5rem;
}

.off-canvas-close {
    color: #C7D2FE !important;
    transition: all 0.2s ease;
}

.off-canvas-close:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.1);
}

.off-canvas-body {
    color: #C7D2FE;
}

/* Dark mode off-canvas - slightly darker */
[data-theme="dark"] .off-canvas {
    --off-canvas-bg: #0F0D2E;
    background: linear-gradient(180deg, #0F0D2E 0%, #1E1B4B 100%);
}

[data-theme="dark"] .off-canvas-header {
    background: rgba(79, 70, 229, 0.1);
}

/* Override CSS variables inside off-canvas for proper theming */
.off-canvas {
    --nexus-text: #FFFFFF;
    --nexus-text-muted: #C7D2FE;
    --nexus-text-light: #A5B4FC;
    --nexus-border: rgba(199, 210, 254, 0.2);
    --nexus-border-light: rgba(99, 102, 241, 0.15);
    --nexus-bg-card: rgba(255, 255, 255, 0.05);
}

/* Profile section in off-canvas */
.off-canvas .nexus-profile-header {
    border-bottom-color: rgba(199, 210, 254, 0.15);
}

.off-canvas .nexus-profile-name {
    color: #FFFFFF;
}

.off-canvas .nexus-profile-role {
    color: var(--nexus-primary-light);
}

.off-canvas .nexus-profile-email {
    color: #A5B4FC;
}

.off-canvas .nexus-profile-stat .stat-value {
    color: #A5B4FC;
}

.off-canvas .nexus-profile-stat .stat-label {
    color: #818CF8;
}

.off-canvas .nexus-profile-stats {
    border-bottom-color: rgba(199, 210, 254, 0.15);
}

.off-canvas .nexus-profile-menu-item {
    color: #E0E7FF;
}

.off-canvas .nexus-profile-menu-item:hover {
    background: rgba(99, 102, 241, 0.2);
}

.off-canvas .nexus-profile-menu-item i:first-child {
    color: #A5B4FC;
}

.off-canvas .nexus-profile-menu-item i:last-child {
    color: #6366F1;
}

.off-canvas .nexus-profile-menu-item.danger {
    color: #FCA5A5;
}

.off-canvas .nexus-profile-menu-item.danger i:first-child {
    color: #FCA5A5;
}

/* Search panel styling */
.off-canvas .nexus-search-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(199, 210, 254, 0.2);
    color: #FFFFFF;
}

.off-canvas .nexus-search-input::placeholder {
    color: #A5B4FC;
}

.off-canvas .nexus-search-input:focus {
    border-color: var(--nexus-primary-light);
    background: rgba(255, 255, 255, 0.15);
}

.off-canvas .nexus-search-recent h4 {
    color: #C7D2FE;
}

.off-canvas .nexus-search-recent a {
    color: #E0E7FF;
}

.off-canvas .nexus-search-recent a:hover {
    color: #FFFFFF;
    background: rgba(99, 102, 241, 0.2);
}

.off-canvas .nexus-search-recent a i {
    color: #818CF8;
}

/* Notification items styling */
.off-canvas .nexus-notification-item {
    border-bottom-color: rgba(199, 210, 254, 0.1);
}

.off-canvas .nexus-notification-item:hover {
    background: rgba(99, 102, 241, 0.15);
}

.off-canvas .nexus-notification-item.unread {
    background: rgba(99, 102, 241, 0.1);
}

.off-canvas .nexus-notification-text {
    color: #E0E7FF;
}

.off-canvas .nexus-notification-time {
    color: #818CF8;
}

/* Override accessibility widget active state */
.rsl-a11y-widget-button.active {
    background: linear-gradient(135deg, #4338CA 0%, #3730A3 100%) !important;
}

/* Theme Toggle Styling */
.rsl-theme-toggle {
    background: var(--nexus-primary) !important;
    border-color: var(--nexus-primary) !important;
    color: #FFFFFF !important;
}

.rsl-theme-toggle:hover {
    background: var(--nexus-primary-light) !important;
    border-color: var(--nexus-primary-light) !important;
}

.rsl-theme-toggle .icon-sun,
.rsl-theme-toggle .icon-moon {
    color: #FFFFFF !important;
}

/* ===================================
   Global Styles
   =================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--nexus-bg);
    color: var(--nexus-text);
    line-height: 1.6;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nexus-primary);
    color: #FFFFFF;
    padding: 1rem 2rem;
    z-index: 10000;
    border-radius: 0 0 var(--nexus-radius-sm) var(--nexus-radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: top var(--nexus-transition);
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--nexus-text);
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===================================
   Navigation
   =================================== */

.nexus-nav.rsl-navbar {
    background: var(--nexus-bg-card);
    border-bottom: 1px solid var(--nexus-border);
    padding: 0.75rem 1.5rem;
    box-shadow: var(--nexus-shadow);
}

[data-theme="dark"] .nexus-nav.rsl-navbar {
    background: var(--nexus-bg-card);
}

.nexus-brand-icon {
    font-size: 1.5rem;
    color: var(--nexus-primary);
    margin-right: 0.5rem;
}

.nexus-brand-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--nexus-text);
}

.nexus-nav .rsl-navbar-link {
    color: var(--nexus-text-muted);
    font-weight: 500;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--nexus-transition);
}

.nexus-nav .rsl-navbar-link:hover,
.nexus-nav .rsl-navbar-link:focus,
.nexus-nav .rsl-navbar-link[aria-current="page"] {
    color: var(--nexus-primary) !important;
    background: transparent !important;
}

.nexus-nav .rsl-navbar-link i {
    font-size: 0.875rem;
}

/* Icon Buttons */
.nexus-icon-btn {
    background: transparent;
    border: none;
    color: var(--nexus-text-muted);
    font-size: 1.125rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: var(--nexus-radius-sm);
    transition: all var(--nexus-transition);
    position: relative;
}

.nexus-icon-btn:hover {
    color: var(--nexus-primary);
    background: rgba(79, 70, 229, 0.1);
}

/* Notification Badge */
.nexus-notification-btn {
    position: relative;
}

.nexus-notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--nexus-danger);
    color: #FFFFFF;
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* User Button */
.nexus-user-btn {
    background: transparent;
    border: 2px solid var(--nexus-border);
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--nexus-transition);
    overflow: hidden;
}

.nexus-user-btn:hover {
    border-color: var(--nexus-primary);
}

.nexus-user-avatar {
    width: 36px;
    height: 36px;
    object-fit: cover;
    display: block;
}

/* ===================================
   Off-Canvas Panels
   =================================== */

.nexus-search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.nexus-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--nexus-border);
    border-radius: var(--nexus-radius-sm);
    font-size: 1rem;
    background: var(--nexus-bg);
    color: var(--nexus-text);
}

.nexus-search-input:focus {
    outline: none;
    border-color: var(--nexus-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.nexus-search-recent h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nexus-text-muted);
    margin: 0 0 1rem 0;
}

.nexus-search-recent ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nexus-search-recent li {
    margin-bottom: 0.5rem;
}

.nexus-search-recent a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--nexus-text);
    text-decoration: none;
    border-radius: var(--nexus-radius-sm);
    transition: background var(--nexus-transition);
}

.nexus-search-recent a:hover {
    background: var(--nexus-border-light);
}

.nexus-search-recent a i {
    color: var(--nexus-text-light);
}

/* Notifications Panel */
.nexus-notification-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nexus-notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--nexus-radius-sm);
    transition: background var(--nexus-transition);
}

.nexus-notification-item:hover {
    background: var(--nexus-border-light);
}

.nexus-notification-item.unread {
    background: rgba(79, 70, 229, 0.05);
}

[data-theme="dark"] .nexus-notification-item.unread {
    background: rgba(79, 70, 229, 0.1);
}

.nexus-notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nexus-border-light);
    color: var(--nexus-text-muted);
    flex-shrink: 0;
}

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

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

.nexus-notification-icon.info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--nexus-info);
}

.nexus-notification-content {
    flex: 1;
}

.nexus-notification-text {
    margin: 0 0 0.25rem 0;
    font-size: 0.9375rem;
    color: var(--nexus-text);
}

.nexus-notification-time {
    font-size: 0.8125rem;
    color: var(--nexus-text-light);
}

.nexus-notification-footer {
    margin-top: 1.5rem;
    text-align: center;
}

/* User Profile Panel */
.nexus-profile-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--nexus-border);
    margin-bottom: 1.5rem;
}

.nexus-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--nexus-primary);
}

.nexus-profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--nexus-text);
}

.nexus-profile-role {
    font-size: 0.875rem;
    color: var(--nexus-primary);
    margin: 0 0 0.5rem 0;
}

.nexus-profile-email {
    font-size: 0.875rem;
    color: var(--nexus-text-muted);
    margin: 0;
}

.nexus-profile-stats {
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
    border-bottom: 1px solid var(--nexus-border);
    margin-bottom: 1.5rem;
}

.nexus-profile-stat {
    text-align: center;
}

.nexus-profile-stat .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nexus-primary);
}

.nexus-profile-stat .stat-label {
    font-size: 0.75rem;
    color: var(--nexus-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nexus-profile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nexus-profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--nexus-text);
    text-decoration: none;
    border-radius: var(--nexus-radius-sm);
    transition: all var(--nexus-transition);
}

.nexus-profile-menu-item:hover {
    background: var(--nexus-border-light);
}

.nexus-profile-menu-item i:first-child {
    width: 20px;
    color: var(--nexus-text-muted);
}

.nexus-profile-menu-item span {
    flex: 1;
}

.nexus-profile-menu-item i:last-child {
    color: var(--nexus-text-light);
    font-size: 0.75rem;
}

.nexus-profile-menu-item.danger {
    color: var(--nexus-danger);
}

.nexus-profile-menu-item.danger i:first-child {
    color: var(--nexus-danger);
}

/* ===================================
   Main Content
   =================================== */

.nexus-main {
    padding: 2rem 0;
    min-height: calc(100vh - 150px);
}

/* Welcome Section */
.nexus-welcome {
    margin-bottom: 2rem;
}

.nexus-welcome-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--nexus-text);
}

.nexus-welcome-subtitle {
    font-size: 1rem;
    color: var(--nexus-text-muted);
    margin: 0 0 0.5rem 0;
}

.nexus-welcome-date {
    font-size: 0.875rem;
    color: var(--nexus-text-light);
    margin: 0;
}

.nexus-welcome-date i {
    margin-right: 0.5rem;
}

.nexus-welcome-actions {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .nexus-welcome-actions {
        justify-content: flex-start;
        margin-top: 1rem;
    }
}

/* Section Styling */
.nexus-section {
    margin-bottom: 2rem;
}

.nexus-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--nexus-text);
    margin: 0 0 1.5rem 0;
}

/* ===================================
   Cards
   =================================== */

.nexus-card {
    background: var(--nexus-bg-card);
    border-radius: var(--nexus-radius);
    border: 1px solid var(--nexus-border);
    box-shadow: var(--nexus-shadow);
    overflow: hidden;
}

.nexus-card-full-height {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.nexus-card-full-height .nexus-card-body {
    flex: 1;
}

.nexus-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--nexus-border);
}

.nexus-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--nexus-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nexus-card-title i {
    color: var(--nexus-primary);
}

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

.nexus-card-link {
    font-size: 0.875rem;
    color: var(--nexus-primary);
    text-decoration: none;
    font-weight: 500;
}

.nexus-card-link:hover {
    text-decoration: underline;
}

.nexus-card-body {
    padding: 1.5rem;
}

/* ===================================
   Gantt Chart Customization
   =================================== */

.nexus-gantt-container {
    min-height: 400px;
}

/* Style the Gantt to match NexusBoard theme */
.nexus-gantt-container .rsl-gantt-header {
    background: var(--nexus-bg);
}

.nexus-gantt-container .rsl-gantt-grid {
    background: var(--nexus-bg-card);
}

.nexus-gantt-container .rsl-gantt-task-name {
    color: var(--nexus-text);
}

.nexus-gantt-container .rsl-gantt-task-bar {
    border-radius: 4px;
}

[data-theme="dark"] .nexus-gantt-container .rsl-gantt-header {
    background: var(--nexus-bg);
}

[data-theme="dark"] .nexus-gantt-container .rsl-gantt-grid-line {
    border-color: var(--nexus-border);
}

/* Mini Select */
.nexus-mini-select {
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    font-size: 0.8125rem;
    border: 1px solid var(--nexus-border);
    border-radius: var(--nexus-radius-sm);
    background: var(--nexus-bg);
    color: var(--nexus-text);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
}

.nexus-mini-select:focus {
    outline: none;
    border-color: var(--nexus-primary);
}

/* ===================================
   KPI Cards Customization
   =================================== */

.rsl-kpi-card {
    background: var(--nexus-bg-card);
    border: 1px solid var(--nexus-border);
    border-radius: var(--nexus-radius);
    box-shadow: var(--nexus-shadow);
}

.nexus-kpi-revenue .rsl-kpi-icon,
.nexus-kpi-revenue {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--nexus-success) !important;
}

.nexus-kpi-users .rsl-kpi-icon,
.nexus-kpi-users {
    background: rgba(79, 70, 229, 0.1) !important;
    color: var(--nexus-primary) !important;
}

.nexus-kpi-conversion .rsl-kpi-icon,
.nexus-kpi-conversion {
    background: rgba(245, 158, 11, 0.1) !important;
    color: var(--nexus-warning) !important;
}

.nexus-kpi-tasks .rsl-kpi-icon,
.nexus-kpi-tasks {
    background: rgba(139, 92, 246, 0.1) !important;
    color: #8B5CF6 !important;
}

/* ===================================
   Table Customization
   =================================== */

.rsl-smart-table {
    width: 100%;
}

.nexus-project-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nexus-project-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--nexus-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 0.875rem;
}

.nexus-user-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nexus-user-cell img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.nexus-progress-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nexus-progress-cell .rsl-progress-bar {
    flex: 1;
    max-width: 100px;
}

.nexus-progress-cell span {
    font-size: 0.8125rem;
    color: var(--nexus-text-muted);
    min-width: 40px;
}

.nexus-actions-cell {
    display: flex;
    gap: 0.25rem;
}

.nexus-table-btn {
    background: transparent;
    border: none;
    color: var(--nexus-text-muted);
    padding: 0.375rem;
    cursor: pointer;
    border-radius: var(--nexus-radius-sm);
    transition: all var(--nexus-transition);
}

.nexus-table-btn:hover {
    color: var(--nexus-primary);
    background: rgba(79, 70, 229, 0.1);
}

/* ===================================
   Activity List
   =================================== */

.nexus-activity-list {
    display: flex;
    flex-direction: column;
}

.nexus-activity-item {
    display: flex;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--nexus-border-light);
}

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

.nexus-activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nexus-border-light);
    color: var(--nexus-text-muted);
    font-size: 0.75rem;
    flex-shrink: 0;
}

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

.nexus-activity-icon.primary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--nexus-primary);
}

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

.nexus-activity-icon.info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--nexus-info);
}

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

.nexus-activity-content p {
    margin: 0 0 0.25rem 0;
    font-size: 0.9375rem;
    color: var(--nexus-text);
    line-height: 1.4;
}

.nexus-activity-time {
    font-size: 0.75rem;
    color: var(--nexus-text-light);
}

/* ===================================
   Task List
   =================================== */

.nexus-task-list {
    display: flex;
    flex-direction: column;
}

.nexus-task-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--nexus-border-light);
    align-items: flex-start;
}

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

.nexus-task-check {
    position: relative;
    flex-shrink: 0;
}

.nexus-task-check input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.nexus-task-check label {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--nexus-border);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--nexus-transition);
}

.nexus-task-check input:checked + label {
    background: var(--nexus-success);
    border-color: var(--nexus-success);
}

.nexus-task-check input:checked + label::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #FFFFFF;
    font-size: 0.625rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.nexus-task-check input:focus + label {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.nexus-task-content {
    flex: 1;
}

.nexus-task-title {
    margin: 0 0 0.25rem 0;
    font-size: 0.9375rem;
    color: var(--nexus-text);
}

.nexus-task-due {
    font-size: 0.75rem;
    color: var(--nexus-text-light);
}

.nexus-task-due.urgent {
    color: var(--nexus-danger);
    font-weight: 600;
}

/* ===================================
   Footer
   =================================== */

.nexus-footer {
    background: var(--nexus-bg-card);
    border-top: 1px solid var(--nexus-border);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.nexus-footer-text {
    font-size: 0.875rem;
    color: var(--nexus-text-muted);
    margin: 0;
}

.nexus-footer-text a {
    color: var(--nexus-primary);
    text-decoration: none;
}

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

.nexus-footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .nexus-footer-links {
        justify-content: flex-start;
        margin-top: 1rem;
    }
}

.nexus-footer-links a {
    font-size: 0.875rem;
    color: var(--nexus-text-muted);
    text-decoration: none;
    transition: color var(--nexus-transition);
}

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

/* ===================================
   Button Overrides
   =================================== */

.btn-primary {
    background: var(--nexus-primary) !important;
    border-color: var(--nexus-primary) !important;
    color: #FFFFFF !important;
}

.btn-primary:hover {
    background: var(--nexus-primary-light) !important;
    border-color: var(--nexus-primary-light) !important;
}

.btn-outline {
    border: 1px solid var(--nexus-border) !important;
    background: transparent !important;
    color: var(--nexus-text) !important;
}

.btn-outline:hover {
    background: var(--nexus-border-light) !important;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

/* ===================================
   Badge Overrides
   =================================== */

.rsl-badge-primary {
    background: rgba(79, 70, 229, 0.1) !important;
    color: var(--nexus-primary) !important;
}

.rsl-badge-success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--nexus-success) !important;
}

.rsl-badge-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    color: var(--nexus-warning) !important;
}

.rsl-badge-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: var(--nexus-danger) !important;
}

.rsl-badge-info {
    background: rgba(6, 182, 212, 0.1) !important;
    color: var(--nexus-info) !important;
}

/* ===================================
   Focus States
   =================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--nexus-primary);
    outline-offset: 2px;
}

/* ===================================
   Responsive Adjustments
   =================================== */

@media (max-width: 1024px) {
    .nexus-main {
        padding: 1.5rem 0;
    }

    .nexus-welcome-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nexus-nav.rsl-navbar {
        padding: 0.5rem 1rem;
    }

    .nexus-welcome-actions {
        flex-direction: column;
        width: 100%;
    }

    .nexus-welcome-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .nexus-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nexus-card-actions {
        width: 100%;
    }
}

/* ===================================
   Reduced Motion
   =================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
