@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px var(--primary-glow); }
    50% { box-shadow: 0 0 20px var(--primary-glow); }
    100% { box-shadow: 0 0 5px var(--primary-glow); }
}

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --primary-glow-thick: rgba(99, 102, 241, 0.6);
    --secondary: #64748b;
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.3);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.3);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.3);
    
    /* Semantic Fluid Backgrounds */
    --mesh-1: rgba(99, 102, 241, 0.15);
    --mesh-2: rgba(139, 92, 246, 0.15);
    --mesh-3: rgba(236, 72, 153, 0.15);
    --mesh-4: rgba(20, 184, 166, 0.15);

    --bg: #f8fafc;
    --surface: rgba(255, 255, 255, 0.75);
    --surface-hover: rgba(241, 245, 249, 0.8);
    --border: rgba(226, 232, 240, 0.5);
    --border-light: rgba(255, 255, 255, 0.3);
    --text: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --sidebar-width: 180px;
    --radius: 6px;
    --radius-sm: 4px;
    --shadow: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-card: inset 0 0 0 1px rgba(255,255,255,0.4), 0 2px 4px rgba(0,0,0,0.03);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-blur: 16px;
}

[data-theme="dark"] {
    --bg: #020617;
    --surface: rgba(30, 41, 59, 0.8);
    --surface-hover: #334155;
    --border: rgba(51, 65, 85, 0.6);
    --border-light: rgba(30, 41, 59, 0.4);
    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.2), 0 2px 4px -1px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.4), 0 10px 10px -5px rgba(0,0,0,0.3);
    --shadow-card: 0 0 0 1px rgba(255,255,255,0.05), 0 4px 20px -2px rgba(0,0,0,0.4);
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

body::before, body::after {
    content: '';
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: drift 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
    pointer-events: none;
}

body::before {
    top: -20%;
    left: -10%;
    background: var(--mesh-1);
}

body::after {
    bottom: -20%;
    right: -10%;
    background: var(--mesh-2);
    animation-delay: -5s;
}

@keyframes drift {
    0% { transform: scale(1) translate(0, 0) rotate(0deg); }
    100% { transform: scale(1.1) translate(10%, 10%) rotate(10deg); }
}

.app-container {
    display: flex;
    min-height: 100vh;
    background: transparent;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: var(--text-muted);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.sidebar.collapsed {
    width: 50px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-group-label,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-label-box,
.sidebar.collapsed .user-info,
.sidebar.collapsed .search-box,
.sidebar.collapsed .logo-text,
.sidebar.collapsed .sidebar-header > div:not(.logo) {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    padding: 12px 8px;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.sidebar.collapsed .logo {
    justify-content: center;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 8px;
    margin: 0 4px;
}

.sidebar.collapsed .nav-icon {
    margin: 0;
}

.sidebar.collapsed .user-card {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .logout-btn {
    display: none;
}

.app-container.sidebar-collapsed .main-content {
    margin-left: 80px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--surface-hover);
    color: var(--primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 18px;
    animation: glow 4s infinite alternate;
}

.logo-text {
    font-size: 0.85rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 16px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2px;
    position: relative;
}

.nav-item:hover {
    background: var(--surface-hover);
    color: var(--text);
    padding-left: 20px;
}

.nav-item.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 8px 16px -4px var(--primary-glow);
}

.nav-item.active .nav-icon {
    color: white;
}

.nav-group {
    margin-bottom: 8px;
}

.nav-group-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 12px 16px 6px;
    margin-top: 8px;
}

.nav-group:first-child .nav-group-label {
    margin-top: 0;
}

.nav-icon {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-light);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-weight: 700;
    font-size: 14px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

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

.search-box {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}

.search-box input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    background: var(--bg);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
}

.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    display: block;
}

.search-result-item:hover {
    background: var(--bg);
}

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

.search-result-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2px;
}

.search-result-title {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.search-result-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.logout-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 12px 16px;
    max-width: 1600px;
}

.page-content {
    max-width: 1400px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.page-header h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.welcome h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.welcome p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.header-actions .date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--surface);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stats-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.settings-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.settings-card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-card h2::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    border: 1px solid var(--border-light);
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-light);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 8px 16px -4px var(--primary-glow);
}

.stat-card:hover .stat-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 24px -6px var(--primary-glow);
}

.stat-content {
    flex: 1;
}

.stat-link {
    color: var(--text-muted);
    font-size: 1.5rem;
    text-decoration: none;
    margin-left: auto;
    padding: 8px;
}

.stat-link:hover {
    color: var(--primary);
}

.quick-links {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.quick-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.quick-link svg {
    width: 18px;
    height: 18px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.project-card {
    display: block;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s;
}

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

.project-card .project-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.project-card .project-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-domain {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.doc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.doc-item:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.doc-item svg {
    flex-shrink: 0;
}

.doc-item span:first-of-type {
    flex: 1;
}

.doc-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.doc-item:hover .doc-date {
    color: rgba(255,255,255,0.8);
}

.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.tab {
    padding: 12px 20px;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab:hover {
    color: var(--text);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.calendar-legend {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--surface);
    border-radius: var(--radius);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-dot.task { background: #f59e0b; }
.legend-dot.project { background: #10b981; }
.legend-dot.contract { background: #8b5cf6; }

.calendar {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--primary);
    color: white;
}

.calendar-header > div {
    padding: 12px;
    text-align: center;
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid var(--border-light);
}

.calendar-day {
    min-height: 100px;
    padding: 8px;
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: var(--surface);
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day.empty {
    background: var(--bg);
}

.calendar-day.today {
    background: rgba(102, 126, 234, 0.1);
}

.calendar-day.today .day-number {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-number {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event {
    font-size: 0.75rem;
    padding: 4px 6px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-task {
    background: #fef3c7;
    color: #92400e;
}

.event-project {
    background: #d1fae5;
    color: #065f46;
}

.event-contract {
    background: #ede9fe;
    color: #5b21b6;
}

.current-month {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 16px;
}

.upcoming-section {
    margin-top: 24px;
}

.upcoming-section h3 {
    margin-bottom: 16px;
}

.kb-section {
    margin-bottom: 32px;
}

.kb-category {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.kb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.kb-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.kb-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.kb-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.kb-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.kb-actions {
    display: flex;
    justify-content: flex-end;
}

.modal-body {
    padding: 20px;
    line-height: 1.6;
    color: var(--text);
}

.user-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    font-size: 0.9rem;
}

.chip-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

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

.chip-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 12px;
}

.chip-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 4px;
    margin-left: 4px;
}

.chip-remove:hover {
    color: #ef4444;
}

.team-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.team-member {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    background: var(--bg);
    border-radius: 20px;
    font-size: 0.85rem;
}

.team-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 600;
}

.btn-icon-sm {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0 4px;
}

.btn-icon-sm:hover {
    color: #ef4444;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.dashboard-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

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

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

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

.view-all:hover {
    color: var(--primary-dark);
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    overflow: hidden;
    animation: fadeIn 0.4s ease-out forwards;
}

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

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.9rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--surface);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}

.quick-link:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: var(--primary);
}

.quick-link svg {
    color: var(--primary);
    transition: transform 0.3s;
}

.quick-link:hover svg {
    transform: scale(1.1);
}

.ticket-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--border-light);
}

.ticket-item:hover {
    background: var(--bg);
    border-color: var(--border);
    transform: translateX(4px);
}

.ticket-status {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    min-width: 70px;
    text-align: center;
}

.ticket-status.open {
    background: #dbeafe;
    color: #2563eb;
}

.ticket-status.bezig {
    background: #fef3c7;
    color: #d97706;
}

.ticket-status.opgelost {
    background: #d1fae5;
    color: #059669;
}

.ticket-info {
    flex: 1;
    min-width: 0;
}

.ticket-subject {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-project {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ticket-meta {
    flex-shrink: 0;
}

.ticket-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.update-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.update-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.update-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

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

.update-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.update-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-weight: 800;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.login-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--bg);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.login-form button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    margin-top: 8px;
}

.login-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    animation: slideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
    box-shadow: var(--shadow);
}

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

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid var(--success-glow);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid var(--danger-glow);
}

.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    padding: 10px 12px;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.data-table tr:hover td {
    background: var(--surface-hover);
    color: var(--text);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge-actief, .badge-live, .badge-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 10px var(--success-glow);
}

.badge-open, .badge-prio-medium {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 10px var(--primary-glow);
}

.badge-bezig, .badge-in_progress, .badge-prio-high {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 10px var(--warning-glow);
}

.badge-urgent, .badge-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 10px var(--danger-glow);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 10px;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    color: var(--text);
    border-color: var(--text-muted);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.toolbar select,
.toolbar input {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--surface);
    min-width: 160px;
}

.toolbar select:focus,
.toolbar input:focus {
    outline: none;
    border-color: var(--primary);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border-radius: 20px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: var(--bg);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close:hover {
    background: #fee2e2;
    color: #ef4444;
}

.modal form {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

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

@media (max-width: 768px) {
    .sidebar {
        width: 80px;
    }
    
    .logo-text,
    .nav-label,
    .nav-section-title,
    .user-info,
    .sidebar-footer .logout-link {
        display: none;
    }
    
    .nav-item {
        justify-content: center;
        padding: 12px;
    }
    
    .main-content {
        margin-left: 80px;
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.card-body {
    padding: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 0.9rem;
    color: var(--text);
}

.info-value a {
    color: var(--primary);
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

.credentials-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.cred-type {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    background: var(--primary);
    color: white;
    border-radius: 4px;
}

.cred-details {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.update-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-item {
    display: flex;
    gap: 16px;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 70px;
}

.timeline-content {
    flex: 1;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.timeline-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.timeline-author {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
    display: block;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.back-link {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.back-link:hover {
    color: var(--primary);
}

.badge-lg {
    padding: 6px 14px;
    font-size: 0.85rem;
}

/* Floating Action Button (FAB) */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.fab-button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.fab-container .fab-button svg {
    transition: transform 0.3s;
}

.fab-menu.active ~ .fab-button svg {
    transform: rotate(45deg);
}

.fab-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.fab-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s;
}

.fab-item:hover {
    transform: translateX(-5px);
}

.fab-label {
    background: var(--surface);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    white-space: nowrap;
}

.fab-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    color: var(--primary);
    border: 1px solid var(--border-light);
}

.fab-item:hover .fab-icon {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Notifications */
.notif-dropdown {
    animation: slideDown 0.3s ease-out;
}

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

.notif-item {
    border-left: 3px solid transparent;
}

.notif-item.unread {
    background: var(--bg-hover) !important;
    border-left-color: var(--primary);
}

.notif-item:hover {
    background: var(--bg-hover);
}

.notif-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.notif-dropdown::-webkit-scrollbar {
    width: 6px;
}

.notif-dropdown::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

/* Bootstrap Grid Compatibility */
.row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.row.g-3, .row.g-4 {
    gap: 24px;
}

.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }
.col-lg-8 { grid-column: span 8; }
.col-lg-6 { grid-column: span 6; }
.col-lg-4 { grid-column: span 4; }
.col-lg-3 { grid-column: span 3; }

@media (max-width: 991px) {
    .col-lg-8, .col-lg-6, .col-lg-4, .col-lg-3 { grid-column: span 12; }
}

@media (max-width: 767px) {
    .col-6, .col-4, .col-3 { grid-column: span 12; }
}

.card-header { display: flex; justify-content: space-between; align-items: center; }
.card-header h3, .card-header h5 { margin: 0; }
.card-body { padding: 20px; }

.d-flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.text-end { text-align: right; }
.w-100 { width: 100%; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.p-0 { padding: 0; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }

.badge { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-primary { background: #e0e7ff; color: #4338ca; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-secondary { background: #f3f4f6; color: #374151; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #cffafe; color: #0e7490; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border-light); }
.table-hover tbody tr:hover { background: var(--bg-hover); }

.page-content { max-width: 1400px; margin: 0 auto; padding: 40px 20px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.toolbar { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.empty-state { padding: 40px; text-align: center; color: var(--text-muted); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea { 
    width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); 
    background: var(--surface); color: var(--text); font-size: 0.95rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.info-item { display: flex; flex-direction: column; gap: 4px; }
.info-label { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; letter-spacing: 0.05em; }
.info-value { font-weight: 600; color: var(--text); }

.kanban-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kanban-column { background: var(--bg); border-radius: 12px; padding: 16px; }
.kanban-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.kanban-card { background: var(--surface); padding: 14px; border-radius: 10px; margin-bottom: 10px; border: 1px solid var(--border-light); }

.wiki-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.wiki-card { text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; border-left: 4px solid var(--primary); }
.wiki-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.update-timeline { display: flex; flex-direction: column; gap: 24px; }
.timeline-item { display: flex; gap: 24px; }
.timeline-date { width: 100px; text-align: right; flex-shrink: 0; }
.timeline-content { flex: 1; background: var(--surface); padding: 20px; border-radius: 12px; border: 1px solid var(--border-light); }

.proof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 40px; }
.empty-state-card { grid-column: 1/-1; text-align: center; padding: 100px; background: var(--glass-bg); border: 2px dashed var(--glass-border); border-radius: 40px; }

.status-orb { padding: 10px 18px; border-radius: 30px; font-weight: 800; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }
.status-orb.pending { background: var(--warning); color: #451a03; }
.status-orb.approved { background: var(--success); color: white; }
.status-orb.rejected { background: var(--danger); color: white; }

.incident-card { border-top: 4px solid; position: relative; overflow: hidden; }
.feedback-bubble { background: var(--surface-hover); border-radius: 20px; padding: 20px; border: 1px solid var(--border-light); position: relative; }
.feedback-bubble::before { content: '"'; position: absolute; top: -10px; left: 20px; font-size: 3rem; color: var(--primary); opacity: 0.2; font-family: serif; }

.card-premium { background: var(--glass-bg); border-radius: 32px; border: 1px solid var(--glass-border); overflow: hidden; }
.project-hero { background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); padding: 64px 48px; border-radius: 40px; border: 1px solid var(--glass-border); position: relative; overflow: hidden; }
.stat-card-v2 { background: var(--glass-bg); padding: 32px; border-radius: 28px; border: 1px solid var(--glass-border); display: flex; flex-direction: column; gap: 16px; }

.team-list { display: flex; flex-wrap: wrap; gap: 8px; }
.team-member { background: var(--surface-hover); padding: 8px 12px; border-radius: 12px; border: 1px solid var(--border-light); display: flex; align-items: center; gap: 10px; }
.team-avatar { width: 24px; height: 24px; font-size: 0.65rem; background: var(--primary); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: white; }

.credentials-list { display: grid; gap: 12px; }
.credential-item { background: var(--bg); padding: 16px; border-radius: 16px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border-light); }

.pulse-timeline { display: flex; flex-direction: column; gap: 32px; }
.pulse-item { display: flex; gap: 24px; position: relative; }

.roadmap-list { max-height: 400px; overflow-y: auto; }

.user-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.user-chip { background: var(--surface-hover); padding: 6px 12px; border-radius: 20px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-light); }
.chip-avatar { width: 24px; height: 24px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; color: white; }
.chip-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; padding: 0 4px; }

/* Dashboard Layout */
.dashboard-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.main-content { }
.sidebar-content { }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--surface); padding: 20px; border-radius: 16px; border: 1px solid var(--border-light); display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.stat-info { }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

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

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* Floating Action Button */
.floating-actions { position: fixed; bottom: 30px; right: 30px; z-index: 1000; }
.fab-btn { 
    width: 60px; height: 60px; border-radius: 50%; background: var(--primary); color: white; 
    border: none; font-size: 2rem; cursor: pointer; box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    display: flex; align-items: center; justify-content: center; transition: transform 0.2s;
}
.fab-btn:hover { transform: scale(1.1); }


