/* ═══ USB AI Platform - Design System ═══ */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --bg-input: #1a1a26;
    --bg-sidebar: #0e0e16;
    --border: #2a2a3a;
    --border-hover: #3a3a50;
    --text-primary: #e8e8f0;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    --color-indigo: #6366f1;
    --color-indigo-glow: rgba(99, 102, 241, 0.3);
    --color-purple: #a855f7;
    --color-blue: #3b82f6;
    --color-green: #10b981;
    --color-amber: #f59e0b;
    --color-red: #ef4444;
    --color-pink: #ec4899;
    --color-slate: #64748b;
    --color-teal: #14b8a6;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --transition: all 0.2s ease;
    --sidebar-width: 260px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--color-indigo);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-purple);
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

input,
select,
textarea,
button {
    font-family: var(--font);
    font-size: 0.93rem;
}

/* ═══ Scrollbar ═══ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* ═══ LOGIN PAGE ═══ */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: orbFloat 8s ease-in-out infinite;
}

.login-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--color-indigo);
    top: -100px;
    left: -100px;
}

.login-orb-2 {
    width: 350px;
    height: 350px;
    background: var(--color-purple);
    bottom: -80px;
    right: -80px;
    animation-delay: 2s;
}

.login-orb-3 {
    width: 250px;
    height: 250px;
    background: var(--color-blue);
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 30px) scale(0.95);
    }
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
}

.login-card {
    background: rgba(22, 22, 31, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--color-indigo), var(--color-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.login-form .form-group {
    margin-bottom: 1.2rem;
}

.login-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.6rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.input-wrapper input:focus {
    border-color: var(--color-indigo);
    box-shadow: 0 0 0 3px var(--color-indigo-glow);
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.btn-login {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--color-indigo), var(--color-purple));
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--color-indigo-glow);
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.login-hint {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

.login-flash {
    margin-bottom: 1rem;
}

/* ═══ SIDEBAR ═══ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--color-indigo), var(--color-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sidebar-menu {
    flex: 1;
    padding: 1rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.menu-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.menu-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1));
    color: var(--color-indigo);
    border-left: 3px solid var(--color-indigo);
}

.menu-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.badge-count {
    position: absolute;
    right: 10px;
    background: var(--color-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.logout-btn {
    color: var(--text-muted);
    transition: var(--transition);
    padding: 4px;
}

.logout-btn:hover {
    color: var(--color-red);
}

/* ═══ MAIN CONTENT ═══ */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.content-area {
    padding: 1.5rem 2rem 3rem;
    max-width: 1400px;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2rem;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    padding: 6px;
}

.notification-bell:hover {
    color: var(--text-primary);
}

.bell-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-red);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ═══ PAGE HEADER ═══ */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-indigo), var(--color-purple));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--color-indigo-glow);
    color: white;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
}

/* ═══ CARDS ═══ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    font-size: 1rem;
}

.card-link {
    font-size: 0.82rem;
    color: var(--color-indigo);
}

.card-body {
    padding: 1rem 1.2rem;
}

/* ═══ FLASH MESSAGES ═══ */
.flash-container {
    padding: 0 2rem;
}

.flash-msg {
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    animation: slideDown 0.3s ease;
    cursor: pointer;
}

.flash-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-green);
}

.flash-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--color-red);
}

.flash-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--color-amber);
}

.flash-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--color-blue);
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══ STATS GRID ═══ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card-primary::before {
    background: linear-gradient(90deg, var(--color-indigo), var(--color-purple));
}

.stat-card-success::before {
    background: linear-gradient(90deg, var(--color-green), var(--color-teal));
}

.stat-card-warning::before {
    background: linear-gradient(90deg, var(--color-amber), var(--color-pink));
}

.stat-card-info::before {
    background: linear-gradient(90deg, var(--color-blue), var(--color-indigo));
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-indigo);
}

.stat-card-success .stat-icon {
    background: rgba(16, 185, 129, 0.1);
}

.stat-card-success .stat-icon svg {
    color: var(--color-green);
}

.stat-card-warning .stat-icon {
    background: rgba(245, 158, 11, 0.1);
}

.stat-card-warning .stat-icon svg {
    color: var(--color-amber);
}

.stat-card-info .stat-icon {
    background: rgba(59, 130, 246, 0.1);
}

.stat-card-info .stat-icon svg {
    color: var(--color-blue);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

.stat-trend {
    font-size: 0.75rem;
    color: var(--color-green);
    margin-top: auto;
    padding-top: 0.5rem;
}

/* ═══ DASHBOARD GRID ═══ */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.card-chart {
    grid-column: 1;
}

.card-activity {
    grid-column: 2;
    grid-row: span 2;
}

/* ═══ CHART ═══ */
.task-chart {
    height: 200px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 100%;
    padding: 0.5rem 0;
    gap: 0.5rem;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    flex: 1;
}

.chart-bar {
    width: 100%;
    max-width: 48px;
    min-height: 4px;
    border-radius: 6px 6px 0 0;
    transition: height 0.6s ease;
    position: relative;
}

.bar-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
}

.bar-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: center;
}

/* ═══ PROJECT CARDS ═══ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.project-card-badges {
    display: flex;
    gap: 0.4rem;
}

.project-code-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.project-card-body {
    display: block;
    color: inherit;
}

.project-card-body:hover {
    color: inherit;
}

.project-card-title {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.project-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.8rem;
    min-height: 2.4em;
}

.project-card-progress {
    margin-bottom: 0.8rem;
}

.project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-members-avatars {
    display: flex;
    gap: -4px;
}

.avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    margin-right: -4px;
    border: 2px solid var(--bg-card);
}

.avatar-more {
    background: var(--border);
    font-size: 0.6rem;
}

.project-meta-icons {
    display: flex;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-meta-icons span {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.project-mini-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-mini-item {
    display: block;
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    color: inherit;
}

.project-mini-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    color: inherit;
}

.project-mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.project-code {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.project-mini-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.project-mini-footer {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* ═══ PROGRESS BAR ═══ */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-lg {
    height: 10px;
    border-radius: 5px;
}

.progress-bar-mini {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-indigo), var(--color-purple));
    border-radius: inherit;
    transition: width 0.6s ease;
}

.progress-fill.progress-high {
    background: linear-gradient(90deg, var(--color-green), var(--color-teal));
}

.progress-fill.progress-mid {
    background: linear-gradient(90deg, var(--color-amber), var(--color-pink));
}

.progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.progress-inline {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
}

.progress-inline .progress-bar {
    flex: 1;
}

.progress-inline span {
    font-weight: 600;
    font-size: 0.85rem;
}

/* ═══ BADGES ═══ */
.status-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.status-planning {
    background: rgba(99, 102, 241, 0.15);
    color: var(--color-indigo);
}

.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-green);
}

.status-on_hold,
.status-on-hold {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-amber);
}

.status-completed {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-blue);
}

.status-archived {
    background: rgba(100, 116, 139, 0.15);
    color: var(--color-slate);
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-amber);
}

.status-achieved {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-green);
}

.status-missed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-red);
}

.priority-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.priority-critical {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-red);
}

.priority-high {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-amber);
}

.priority-medium {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-blue);
}

.priority-low {
    background: rgba(100, 116, 139, 0.15);
    color: var(--color-slate);
}

.priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.priority-dot.priority-critical {
    background: var(--color-red);
}

.priority-dot.priority-high {
    background: var(--color-amber);
}

.priority-dot.priority-medium {
    background: var(--color-blue);
}

.priority-dot.priority-low {
    background: var(--color-slate);
}

/* ═══ FILTER BAR ═══ */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 0.3rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 3px;
    border: 1px solid var(--border);
}

.filter-tab {
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.filter-tab:hover {
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--color-indigo);
    color: white;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 0.8rem;
    gap: 0.5rem;
}

.search-input-wrapper svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input-wrapper input {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 0.5rem 0;
    outline: none;
    width: 200px;
}

/* ═══ DETAIL STATS ═══ */
.detail-stats {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.detail-stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.detail-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-stat-value {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ═══ TABS ═══ */
.detail-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.2rem;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.8rem 1.2rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--color-indigo);
    border-bottom-color: var(--color-indigo);
}

.tab-count {
    font-size: 0.7rem;
    background: var(--border);
    padding: 1px 6px;
    border-radius: 10px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tab-header h3 {
    font-size: 1.1rem;
}

/* ═══ TASK BOARD ═══ */
.task-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
    overflow-x: auto;
}

.task-column {
    min-width: 200px;
}

.task-column-header {
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-col-todo {
    background: rgba(100, 116, 139, 0.15);
    color: var(--color-slate);
}

.task-col-in_progress {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-blue);
}

.task-col-review {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-amber);
}

.task-col-done {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-green);
}

.task-col-blocked {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-red);
}

.task-col-count {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 1px 6px;
    border-radius: 8px;
}

.task-column-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
    min-height: 100px;
}

.task-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.8rem;
    transition: var(--transition);
    cursor: grab;
    user-select: none;
}

.task-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.task-card:active {
    cursor: grabbing;
}

.task-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.task-title {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
}

.task-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.task-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-assignee-avatars {
    display: flex;
}

.avatar-xs {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    margin-right: -3px;
    border: 2px solid var(--bg-card);
}

.task-due {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.task-actions {
    margin-top: 0.5rem;
}

.task-status-select {
    width: 100%;
    padding: 0.3rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.75rem;
    cursor: pointer;
}

/* ═══ KANBAN DRAG & DROP ═══ */
.task-card.dragging {
    opacity: 0.35;
    border: 1px dashed var(--color-indigo);
    background: rgba(99, 102, 241, 0.05);
    transform: rotate(2deg) scale(0.97);
    box-shadow: none;
    cursor: grabbing;
}

.task-column-body.drop-zone-highlight {
    background: rgba(99, 102, 241, 0.03);
    border: 2px dashed rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.task-column-body.drop-zone-active {
    background: rgba(99, 102, 241, 0.08);
    border: 2px dashed var(--color-indigo);
    border-radius: var(--radius-sm);
    box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.1);
}

.task-card.task-dropped {
    animation: dropPulse 0.6s ease;
}

@keyframes dropPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 8px rgba(99, 102, 241, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: none;
    }
}

/* Kanban Toast Notifications */
.kanban-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.kanban-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.kanban-toast-success {
    background: rgba(16, 185, 129, 0.9);
    color: white;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.kanban-toast-error {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.kanban-toast-info {
    background: rgba(99, 102, 241, 0.9);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

/* Touch Drag Clone (mobile) */
.touch-drag-clone {
    position: fixed;
    width: 200px;
    z-index: 10000;
    pointer-events: none;
    opacity: 0.85;
    transform: rotate(3deg) scale(1.05);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    border: 2px solid var(--color-indigo);
    border-radius: var(--radius-sm);
}

/* ═══ MILESTONES ═══ */
.milestone-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.milestone-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.milestone-date {
    text-align: center;
    min-width: 48px;
}

.ms-day {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
}

.ms-month {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.milestone-info {
    flex: 1;
}

.milestone-title {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}

.milestone-project {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.milestone-timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--border);
}

.timeline-item:last-child {
    border-left: none;
}

.timeline-marker {
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-primary);
}

.timeline-marker.status-pending {
    border-color: var(--color-amber);
    background: var(--color-amber);
}

.timeline-marker.status-achieved {
    border-color: var(--color-green);
    background: var(--color-green);
}

.timeline-marker.status-missed {
    border-color: var(--color-red);
    background: var(--color-red);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.timeline-header h4 {
    font-size: 0.95rem;
}

.timeline-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ═══ RESOURCES ═══ */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.8rem;
}

.resource-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.resource-type-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
}

.resource-info {
    flex: 1;
}

.resource-info h4 {
    font-size: 0.9rem;
}

.resource-type-label {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.resource-usage {
    min-width: 120px;
}

.resource-usage span {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.3rem;
}

/* ═══ GOALS ═══ */
.goals-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.goal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.goal-header h4 {
    font-size: 0.95rem;
}

.goal-deadline {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.goal-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.goal-progress .progress-bar {
    flex: 1;
}

.goal-numbers {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ═══ TEAM ═══ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.team-card-header {
    position: relative;
    margin-bottom: 1rem;
    display: inline-block;
}

.avatar-xl {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto;
}

.avatar-lg {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.team-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    background: var(--color-slate);
}

.team-status.online {
    background: var(--color-green);
}

.team-name {
    font-size: 1.05rem;
    font-weight: 600;
}

.team-role-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 6px;
    margin: 0.4rem 0;
}

.role-admin {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-red);
}

.role-manager {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-amber);
}

.role-member {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-blue);
}

.role-viewer {
    background: rgba(100, 116, 139, 0.15);
    color: var(--color-slate);
}

.team-email {
    font-size: 0.78rem;
    color: var(--text-muted);
    word-break: break-all;
}

.team-card-footer {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.team-stat {
    text-align: center;
}

.team-stat-value {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
}

.team-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ═══ MEMBERS GRID ═══ */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.8rem;
}

.member-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.member-info h4 {
    font-size: 0.9rem;
}

.member-role {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.member-email {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
}

/* ═══ NOTIFICATIONS ═══ */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.notification-item.unread {
    border-left: 3px solid var(--color-indigo);
    background: rgba(99, 102, 241, 0.05);
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.notif-info {
    background: rgba(59, 130, 246, 0.15);
}

.notif-success {
    background: rgba(16, 185, 129, 0.15);
}

.notif-warning {
    background: rgba(245, 158, 11, 0.15);
}

.notif-error {
    background: rgba(239, 68, 68, 0.15);
}

.notif-reminder {
    background: rgba(168, 85, 247, 0.15);
}

.notif-content {
    flex: 1;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.notif-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.notif-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notif-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.notif-link {
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: inline-block;
}

/* ═══ ACTIVITY LOG TABLE ═══ */
.log-table-wrapper {
    overflow-x: auto;
}

.log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.log-table th {
    text-align: left;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.log-table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(42, 42, 58, 0.5);
    vertical-align: middle;
}

.log-table tr:hover td {
    background: rgba(99, 102, 241, 0.03);
}

.log-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.log-time {
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.log-detail {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-ip {
    font-family: monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.action-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.action-create {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-green);
}

.action-update {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-blue);
}

.action-delete {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-red);
}

.action-login {
    background: rgba(168, 85, 247, 0.15);
    color: var(--color-purple);
}

.action-logout {
    background: rgba(100, 116, 139, 0.15);
    color: var(--color-slate);
}

.action-view {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-muted);
}

.empty-cell {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.page-link {
    padding: 0.4rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.page-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ═══ BREADCRUMB ═══ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb .current {
    color: var(--text-primary);
}

/* ═══ FORMS ═══ */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.form-col-2 {
    grid-column: span 2;
}

.form-col-3 {
    grid-column: span 3;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.required {
    color: var(--color-red);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.6rem 0.8rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-indigo);
    box-shadow: 0 0 0 3px var(--color-indigo-glow);
}

.form-group select {
    cursor: pointer;
}

.multi-select {
    min-height: 80px;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-indigo);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.range-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-indigo);
}

input[type="range"] {
    accent-color: var(--color-indigo);
}

/* ═══ MODALS ═══ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.visible {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.1rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 4px;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.2rem 1.5rem;
}

.modal-body .form-group {
    margin-bottom: 1rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

/* ═══ EMPTY STATES ═══ */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    grid-column: 1 / -1;
}

.empty-icon {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.empty-state-mini {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .card-activity {
        grid-column: 1;
        grid-row: auto;
    }

    .task-board {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-col-3 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .content-area {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .task-board {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-col-2,
    .form-col-3 {
        grid-column: span 1;
    }

    .form-row {
        flex-direction: column;
    }

    .detail-stats {
        flex-direction: column;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ═══ ACTIVITY FEED ═══ */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.5rem 0;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 0.4rem;
    flex-shrink: 0;
    background: var(--border);
}

.activity-dot.activity-create {
    background: var(--color-green);
}

.activity-dot.activity-update {
    background: var(--color-blue);
}

.activity-dot.activity-delete {
    background: var(--color-red);
}

.activity-dot.activity-login {
    background: var(--color-purple);
}

.activity-dot.activity-view {
    background: var(--text-muted);
}

.activity-content {
    flex: 1;
}

.activity-user {
    font-weight: 600;
    font-size: 0.85rem;
}

.activity-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0 0.3rem;
}

.activity-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.2rem;
}