:root {
    --bg-primary: #0a0d12;
    --bg-secondary: #11151c;
    --bg-tertiary: #161a26;
    --bg-card: #141825;
    --bg-hover: #1b2030;
    --text-primary: #f0f0f0;
    --text-secondary: #c5c6cf;
    --text-muted: rgba(255, 255, 255, 0.6);
    --accent-primary: #fd7d62;
    --accent-secondary: #ff9a8b;
    --accent-hover: #ff9a8b;
    --accent-glow: rgba(253, 125, 98, 0.4);
    --success: #4ade80;
    --warning: #facc15;
    --danger: #f87171;
    --info: #60a5fa;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(253, 125, 98, 0.3);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(253, 125, 98, 0.5);
}

/* LOGIN PAGE */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0d12;
    position: relative;
    overflow: hidden;
}

.login-background {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.04), transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.03), transparent 35%);
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: rgba(20, 23, 30, 0.85);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.login-header {
    text-align: center;
    padding: 34px 26px 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.login-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 55%);
    pointer-events: none;
}

.server-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.server-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.login-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.login-content {
    padding: 24px;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.info-box svg {
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 2px;
}

.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 22px;
    background: rgba(20, 23, 30, 0.85);
    color: #e5e7eb;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.discord-btn:hover {
    background: rgba(30, 34, 45, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.requirements {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.requirements p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
}

.login-footer {
    text-align: center;
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    font-size: 12px;
    color: var(--text-muted);
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 264px;
    height: 100vh;
    background: rgba(20, 23, 30, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 22px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.logo img {
    height: 56px;
    width: auto;
    display: block;
}

.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 101;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: rgba(20, 23, 30, 0.85);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    cursor: pointer;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.main-content {
    margin-left: 264px;
    min-height: 100vh;
    padding: 22px 24px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

#viewContainer {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(253, 125, 98, 0.18);
    color: var(--accent-primary);
}

.nav-item svg {
    flex-shrink: 0;
}

.nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 10px 14px;
}

.nav-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    padding: 6px 14px 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    margin-bottom: 4px;
}

/* SIDEBAR FOOTER */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.server-status.online {
    border-color: rgba(87, 242, 135, 0.3);
    background: rgba(87, 242, 135, 0.05);
}

.server-status.offline {
    border-color: rgba(237, 66, 69, 0.3);
    background: rgba(237, 66, 69, 0.05);
}

.server-status.loading {
    border-color: rgba(250, 168, 26, 0.3);
    background: rgba(250, 168, 26, 0.05);
}

.server-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
    position: relative;
}

.server-status.online .server-status-indicator {
    background: var(--success);
    box-shadow: 0 0 8px rgba(87, 242, 135, 0.5);
    animation: pulse-green 2s infinite;
}

.server-status.offline .server-status-indicator {
    background: var(--danger);
}

.server-status.loading .server-status-indicator {
    background: var(--warning);
    animation: pulse-yellow 1s infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 4px rgba(87, 242, 135, 0.4); }
    50% { box-shadow: 0 0 10px rgba(87, 242, 135, 0.7); }
}

@keyframes pulse-yellow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.server-status-info {
    flex: 1;
    min-width: 0;
}

.server-status-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-status-detail {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    object-fit: cover;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 12px;
    color: var(--accent-primary);
    font-weight: 500;
}

/* SERVER VIEW */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    width: 36px;
    height: 36px;
}

.theme-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    inset: 0;
    margin: auto;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(-90deg);
}

[data-theme="light"] .theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="light"] .theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] {
    --bg-primary: #f4f5f7;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef0f2;
    --bg-card: #ffffff;
    --bg-hover: #e4e6ea;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #7a7a8a;
    --border-color: #d8dbe0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .task-card {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .modal {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg-primary: #f4f5f7;
        --bg-secondary: #ffffff;
        --bg-tertiary: #eef0f2;
        --bg-card: #ffffff;
        --bg-hover: #e4e6ea;
        --text-primary: #1a1a2e;
        --text-secondary: #4a4a5a;
        --text-muted: #7a7a8a;
        --border-color: #d8dbe0;
        --shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
        --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    }
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    object-fit: cover;
}

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

.user-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 12px;
    color: var(--accent-primary);
    font-weight: 500;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: var(--transition);
}

.logout-btn:hover {
    background: rgba(237, 66, 69, 0.1);
    color: var(--danger);
}

/* MAIN CONTENT */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    padding: 24px;
}

/* VIEWS */
.view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.view-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.view-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.view-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* STATS TABS */
.stats-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px;
    width: fit-content;
}

.stats-tab {
    padding: 8px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.stats-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.stats-tab.active {
    background: var(--accent-primary);
    color: white;
}

.stats-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.stats-filters .form-input {
    width: auto;
    min-width: 130px;
}

.stats-date-separator {
    color: var(--text-muted);
    font-size: 14px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.stat-trend {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* KANBAN BOARD */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    min-height: calc(100vh - 200px);
}

.kanban-column {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.column-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.column-badge {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.column-todo { border-color: var(--warning); }
.column-todo .column-title { color: var(--warning); }
.column-in-progress { border-color: var(--info); }
.column-in-progress .column-title { color: var(--info); }
.column-done { border-color: var(--success); }
.column-done .column-title { color: var(--success); }

.task-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    min-height: 100px;
}

.task-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    cursor: grab;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.task-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
    border-color: var(--accent-primary);
}

.task-card.priority-high {
    border-left-color: var(--danger);
}

.task-card.priority-medium {
    border-left-color: var(--warning);
}

.task-card.priority-low {
    border-left-color: var(--success);
}

.task-card.priority-critical {
    border-left-color: var(--danger);
    background: rgba(237, 66, 69, 0.05);
}

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

.task-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.task-priority {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-left: 8px;
}

.priority-low { background: rgba(87, 242, 135, 0.1); color: var(--success); }
.priority-medium { background: rgba(250, 168, 26, 0.1); color: var(--warning); }
.priority-high { background: rgba(237, 66, 69, 0.1); color: var(--danger); }
.priority-critical { background: rgba(237, 66, 69, 0.2); color: var(--danger); }

.task-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.task-category-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.task-assignee {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 auto;
}

.task-assignee::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.task-type-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.task-type-badge.type-admin {
    background: rgba(88, 101, 242, 0.12);
    color: var(--info);
}

.task-type-badge.type-dev {
    background: rgba(87, 242, 135, 0.12);
    color: var(--success);
}

.task-date {
    font-size: 11px;
    color: var(--text-muted);
}

.task-actions {
    display: flex;
    gap: 4px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.task-action-btn {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-action-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.task-action-btn.delete:hover {
    background: rgba(237, 66, 69, 0.1);
    color: var(--danger);
}

.task-action-btn.success,
.task-action-btn.success:hover {
    background: rgba(87, 242, 135, 0.12);
    color: var(--success);
}

.task-table .task-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    justify-content: flex-start;
    gap: 6px;
}

.task-table .task-action-btn {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
}

.timer-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 110px;
}

.timer-display {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.timer-controls {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.2;
}

.status-badge.todo {
    background: rgba(250, 168, 26, 0.1);
    color: var(--warning);
}

.status-badge.in_progress {
    background: rgba(88, 101, 242, 0.1);
    color: var(--info);
}

.status-badge.done {
    background: rgba(87, 242, 135, 0.1);
    color: var(--success);
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.2;
}

.priority-badge.low {
    background: rgba(87, 242, 135, 0.1);
    color: var(--success);
}

.priority-badge.medium {
    background: rgba(250, 168, 26, 0.1);
    color: var(--warning);
}

.priority-badge.high {
    background: rgba(237, 66, 69, 0.1);
    color: var(--danger);
}

.priority-badge.critical {
    background: rgba(237, 66, 69, 0.2);
    color: var(--danger);
}

/* TASK LIST VIEW */
.task-list-view {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
}

.task-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.task-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.task-table tr:hover td {
    background: var(--bg-hover);
}

.task-table .task-title-cell {
    font-weight: 600;
    min-width: 250px;
}

.task-title-main {
    font-weight: 600;
    margin-bottom: 4px;
}

.task-description-inline {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-sm:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    color: var(--bg-primary);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-hover);
}

/* FILTERS */
.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

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

.search-input {
    padding: 8px 14px 8px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    min-width: 250px;
    transition: var(--transition);
}

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

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95);
    transition: var(--transition);
}

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

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

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    cursor: pointer;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--success);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* STATS CHART */
.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.chart-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chart-bar-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chart-bar-label {
    min-width: 140px;
    font-size: 14px;
    color: var(--text-secondary);
}

.chart-bar-track {
    flex: 1;
    height: 24px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.chart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), #4752c4);
    border-radius: var(--radius-sm);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
}

.chart-bar-value {
    font-size: 12px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.task-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

/* ACTIVITY */
.activity-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.activity-item:hover {
    background: var(--bg-hover);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.activity-user {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.activity-action {
    font-size: 14px;
    color: var(--text-secondary);
}

.activity-details {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.4;
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.activity-category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.activity-ip {
    font-size: 12px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.server-logs-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.server-logs-filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.server-logs-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.server-log-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.server-log-item:hover {
    background: var(--bg-hover);
}

.server-log-item.log-info {
    border-left: 3px solid var(--info);
}

.server-log-item.log-warn {
    border-left: 3px solid var(--warning);
    background: rgba(250, 168, 26, 0.04);
}

.server-log-item.log-error {
    border-left: 3px solid var(--danger);
    background: rgba(237, 66, 69, 0.04);
}

.server-log-item.log-debug {
    border-left: 3px solid #95A5A6;
}

.server-log-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.server-log-level {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.server-log-source {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.server-log-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
    white-space: nowrap;
}

.server-log-message {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    word-break: break-word;
}

.server-log-payload {
    margin-top: 8px;
    padding: 8px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

.server-logs-filters .form-select,
.server-logs-filters .form-input {
    min-width: 140px;
}

/* CATEGORIES */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
    cursor: pointer;
    border-left: 4px solid transparent;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.category-card.category-disabled {
    cursor: not-allowed;
    opacity: 0.65;
    pointer-events: none;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.category-name {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-count {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-muted);
}

.category-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .kanban-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 16px;
        padding-top: 72px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .task-table {
        font-size: 12px;
    }

    .task-table th,
    .task-table td {
        padding: 10px 14px;
    }

    .filters {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .kanban-board {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .view-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .calendar-day {
        min-height: 60px;
        padding: 4px;
    }

    .calendar-event {
        font-size: 10px;
        padding: 3px 4px;
    }

    .calendar-day-number {
        font-size: 12px;
    }

    .event-detail-row {
        flex-direction: column;
        gap: 4px;
    }

    .event-detail-value {
        text-align: left;
    }
}

    .view-header h1 {
        font-size: 20px;
    }

    .btn span {
        display: none;
    }
}

/* UTILITY */
.text-center {
    text-align: center;
}

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

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

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

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

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 14px;
}

.task-card {
    cursor: grab;
}

.task-card:active {
    cursor: grabbing;
}

.task-card.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.task-list.drag-over {
    background: rgba(253, 125, 98, 0.08) !important;
    border: 2px dashed var(--accent-primary) !important;
    border-radius: var(--radius-md);
}

/* CHANGELOG */
.changelog-view {
    padding: 0;
}

.changelog-summary {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.changelog-count {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.changelog-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
}

.changelog-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.changelog-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.changelog-item-title {
    font-size: 16px;
    font-weight: 700;
    flex: 1;
}

.changelog-item-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.changelog-item-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.changelog-item-footer {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.task-table .changelog-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-secondary);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.task-table .changelog-checkbox:checked {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.task-table .changelog-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.task-table .changelog-checkbox:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.task-table .changelog-cell {
    text-align: center;
}

/* CHANGELOG TABS */
.changelog-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px;
    width: fit-content;
}

.changelog-tab {
    padding: 8px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.changelog-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.changelog-tab.active {
    background: var(--accent-primary);
    color: white;
}

/* CHANGELOG HISTORY */
.changelog-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.changelog-history-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
}

.changelog-history-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.changelog-history-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 12px;
}

.changelog-history-title {
    font-size: 16px;
    font-weight: 700;
    flex: 1;
}

.changelog-history-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.changelog-history-count {
    padding: 4px 10px;
    background: var(--accent-primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.changelog-history-date {
    font-size: 13px;
    color: var(--text-muted);
}

.changelog-history-author {
    font-size: 13px;
    color: var(--text-secondary);
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.changelog-history-tasks {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.changelog-history-category {
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-primary);
}

.changelog-history-category:last-child {
    margin-bottom: 0;
}

.changelog-history-category-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.changelog-history-category-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.changelog-history-error {
    color: var(--danger);
    font-size: 13px;
    font-style: italic;
}

/* PAYMENTS */
.payments-view {
    padding: 0;
}

.payments-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.payments-insights {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.4fr);
    gap: 16px;
    margin-bottom: 20px;
}

.payment-summary-panel,
.payment-chart {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.payment-summary-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-summary-label,
.payment-chart-header {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-summary-value {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 800;
    margin-top: 4px;
}

.payment-progress {
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 12px;
}

.payment-progress-fill {
    height: 100%;
    background: var(--success);
    border-radius: inherit;
    transition: width 0.25s ease;
}

.payment-alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
}

.payment-alert.success {
    background: rgba(87, 242, 135, 0.1);
    color: var(--success);
}

.payment-alert.danger {
    background: rgba(237, 66, 69, 0.1);
    color: var(--danger);
}

.payment-chart-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.payment-chart-bars {
    display: grid;
    grid-template-columns: repeat(6, minmax(34px, 1fr));
    gap: 12px;
    align-items: end;
    min-height: 170px;
}

.payment-chart-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.payment-chart-stack {
    height: 130px;
    width: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 4px;
}

.payment-bar {
    width: 10px;
    min-height: 4px;
    border-radius: 999px 999px 0 0;
    display: block;
}

.payment-bar.server {
    background: var(--success);
}

.payment-bar.scripts {
    background: var(--accent-primary);
}

.payment-bar.other {
    background: #EB459E;
}

.payment-chart-label {
    color: var(--text-muted);
    font-size: 11px;
    white-space: nowrap;
}

.payments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
}

.payment-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.payment-item.paid {
    border-color: rgba(87, 242, 135, 0.28);
}

.payment-item.overdue {
    border-color: rgba(237, 66, 69, 0.45);
}

.payment-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 12px;
}

.payment-info {
    flex: 1;
}

.payment-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.payment-status {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.payment-status.paid {
    background: rgba(87, 242, 135, 0.12);
    color: var(--success);
}

.payment-status.unpaid {
    background: rgba(250, 168, 26, 0.12);
    color: var(--warning);
}

.payment-status.overdue {
    background: rgba(237, 66, 69, 0.12);
    color: var(--danger);
}

.payment-category {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.payment-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.payment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}

.payment-amount {
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 16px;
}

.payment-date {
    color: var(--text-muted);
    font-size: 13px;
}

.payment-actions {
    display: flex;
    gap: 6px;
}

@media (max-width: 900px) {
    .payments-insights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .payment-header,
    .payment-footer,
    .payment-chart-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .payment-chart-bars {
        gap: 8px;
    }

    .payment-bar {
        width: 7px;
    }
}

/* Bugs View */
.bugs-view {
    padding: 0;
}

.bugs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bug-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: var(--transition);
}

.bug-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.bug-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.bug-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    margin-right: 12px;
}

.bug-priority {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.priority-low {
    background: rgba(87, 242, 135, 0.1);
    color: var(--success);
}

.priority-medium {
    background: rgba(250, 168, 26, 0.1);
    color: var(--warning);
}

.priority-high {
    background: rgba(253, 125, 98, 0.1);
    color: var(--accent-primary);
}

.priority-critical {
    background: rgba(237, 66, 69, 0.1);
    color: var(--danger);
}

.bug-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.bug-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

.bug-author {
    font-weight: 500;
}

.bug-date {
    font-size: 12px;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    gap: 16px;
}

.loading-state svg {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    text-align: center;
    gap: 16px;
}

.empty-state svg {
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 600;
}

.empty-state p {
    font-size: 14px;
    max-width: 400px;
}

/* Kanban Bug Column */
.column-bugs {
    border-top: 3px solid var(--danger);
}

.column-bugs .column-title {
    color: var(--danger);
}

.column-bugs .column-badge {
    background: rgba(237, 66, 69, 0.15);
    color: var(--danger);
}

/* Admins View */
.admins-view {
    padding: 0;
}

.admins-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
}

.admin-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.admin-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.admin-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
}

.admin-info {
    flex: 1;
}

.admin-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.admin-id {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.admin-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-detail-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.admin-textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    resize: vertical;
    min-height: 80px;
    transition: var(--transition);
}

.admin-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(253, 125, 98, 0.1);
}

.admin-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.admin-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
}

.admin-status-badge.status-active {
    background: rgba(87, 242, 135, 0.12);
    color: var(--success);
}

.admin-status-badge.status-inactive {
    background: rgba(237, 66, 69, 0.12);
    color: var(--danger);
}

.admin-status-badge.status-vacation {
    background: rgba(250, 168, 26, 0.12);
    color: var(--warning);
}

.vacation-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(250, 168, 26, 0.08);
    border: 1px solid rgba(250, 168, 26, 0.2);
    border-radius: var(--radius-sm);
    color: var(--warning);
    font-size: 13px;
    margin-bottom: 16px;
}

.vacation-info svg {
    flex-shrink: 0;
}

.admin-card.status-inactive {
    border-color: rgba(237, 66, 69, 0.3);
    opacity: 0.85;
}

.admin-card.status-vacation {
    border-color: rgba(250, 168, 26, 0.3);
}

.vacation-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.vacation-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.vacation-form input,
.vacation-form textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: var(--transition);
}

.vacation-form input:focus,
.vacation-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(253, 125, 98, 0.1);
}

.vacation-form .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

/* ADMIN WARNINGS */
.admin-warnings {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.admin-warnings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.admin-warnings-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.admin-warnings-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.warning-item {
    padding: 12px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--border-color);
    background: var(--bg-secondary);
}

.warning-item.severity-low {
    border-left-color: var(--info);
}

.warning-item.severity-medium {
    border-left-color: var(--warning);
}

.warning-item.severity-high {
    border-left-color: #ED4245;
}

.warning-item.severity-critical {
    border-left-color: #ED4245;
    background: rgba(237, 66, 69, 0.05);
}

.warning-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.warning-severity {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.warning-item.severity-critical .warning-severity {
    background: rgba(237, 66, 69, 0.15);
    color: var(--danger);
}

.warning-item.severity-high .warning-severity {
    background: rgba(237, 66, 69, 0.1);
    color: #ED4245;
}

.warning-item.severity-medium .warning-severity {
    background: rgba(250, 168, 26, 0.1);
    color: var(--warning);
}

.warning-item.severity-low .warning-severity {
    background: rgba(88, 101, 242, 0.1);
    color: var(--info);
}

.warning-date {
    font-size: 11px;
    color: var(--text-muted);
}

.warning-reason {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.warning-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.warning-author {
    font-size: 12px;
    color: var(--text-muted);
}

.empty-warnings {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.warning-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.warning-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.warning-form textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: var(--transition);
    resize: vertical;
    min-height: 100px;
}

.warning-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(253, 125, 98, 0.1);
}


/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.25s ease forwards;
    max-width: 420px;
    min-width: 280px;
}

.toast-hide {
    animation: toastOut 0.18s ease forwards;
}

.toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 2px;
    transition: var(--transition);
}

.toast-close:hover {
    color: var(--text-primary);
}

.toast-success {
    border-left: 4px solid var(--success);
}
.toast-success .toast-icon {
    background: rgba(87, 242, 135, 0.15);
    color: var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}
.toast-error .toast-icon {
    background: rgba(237, 66, 69, 0.15);
    color: var(--danger);
}

.toast-warning {
    border-left: 4px solid var(--warning);
}
.toast-warning .toast-icon {
    background: rgba(250, 168, 26, 0.15);
    color: var(--warning);
}

.toast-info {
    border-left: 4px solid var(--info);
}
.toast-info .toast-icon {
    background: rgba(240, 160, 144, 0.15);
    color: var(--info);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

/* Custom dialog overlay used by showConfirm / showPrompt */
.app-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.app-dialog-overlay.active {
    opacity: 1;
    visibility: visible;
}

.app-dialog {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.2s ease;
}

.app-dialog-overlay.active .app-dialog {
    transform: translateY(0);
}

.app-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.app-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.app-dialog-body {
    padding: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.app-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 20px 16px;
}

.calendar-view {
    padding: 0;
}

.calendar-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.calendar-month {
    font-size: 18px;
    font-weight: 700;
    min-width: 90px;
    text-align: center;
}

.calendar-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.calendar-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.calendar-day-name {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    min-height: 100px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px;
    background: var(--bg-secondary);
    transition: var(--transition);
}

.calendar-day.empty {
    background: transparent;
    border-color: transparent;
}

.calendar-day.today {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary);
}

.calendar-day.overloaded {
    border-color: var(--danger);
    background: rgba(237, 66, 69, 0.04);
}

.calendar-day.overloaded .calendar-day-number {
    color: var(--danger);
}

.calendar-day.drag-over {
    background: rgba(88, 101, 242, 0.08);
    border-color: var(--accent-primary);
    border-style: dashed;
}

.calendar-day-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.calendar-day.today .calendar-day-number {
    color: var(--accent-primary);
}

.calendar-event {
    font-size: 11px;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    line-height: 1.3;
    word-break: break-word;
}

.calendar-event.event-payment {
    background: rgba(253, 125, 98, 0.12);
    color: var(--accent-primary);
    border-left: 3px solid var(--accent-primary);
}

.calendar-event.event-task {
    background: rgba(87, 242, 135, 0.12);
    color: var(--success);
    border-left: 3px solid var(--success);
}

.calendar-event.event-vacation {
    background: rgba(235, 69, 158, 0.20);
    color: #EB459E;
    border-left: 3px solid #EB459E;
    font-weight: 600;
    font-size: 12px;
}

.calendar-event[draggable="true"] {
    cursor: grab;
}

.calendar-event[draggable="true"]:active {
    cursor: grabbing;
}

.event-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    margin-top: 3px;
    margin-left: 4px;
}

.task-badge {
    background: rgba(88, 101, 242, 0.15);
    color: var(--accent-primary);
}

.progress-badge {
    background: rgba(250, 168, 26, 0.15);
    color: var(--warning);
}

.done-badge {
    background: rgba(87, 242, 135, 0.15);
    color: var(--success);
}

.vacation-badge {
    background: rgba(235, 69, 158, 0.15);
    color: #EB459E;
}

.event-title {
    font-weight: 600;
}

.calendar-event {
    cursor: pointer;
}

.calendar-event:hover {
    filter: brightness(1.1);
    transform: translateX(2px);
}

.event-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.event-detail-row:last-child {
    border-bottom: none;
}

.event-detail-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    min-width: 100px;
}

.event-detail-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.event-detail-value.status-paid {
    color: var(--success);
}

.event-detail-value.status-unpaid {
    color: var(--warning);
}

.event-detail-value.status-overdue {
    color: var(--danger);
}

.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr 260px;
    gap: 0;
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 0;
}

.docs-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.docs-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.docs-search {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    transition: var(--transition);
}

.docs-search:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(253, 125, 98, 0.1);
}

.docs-tree {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.docs-category {
    margin-bottom: 4px;
}

.docs-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.docs-category-header:hover {
    background: var(--bg-hover);
}

.docs-category-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.docs-category-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.docs-category-count {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.docs-category-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.docs-category.open .docs-category-arrow {
    transform: rotate(90deg);
}

.docs-category-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.docs-category.open .docs-category-items {
    max-height: 500px;
}

.docs-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    color: var(--text-secondary);
}

.docs-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.docs-item.active {
    background: rgba(253, 125, 98, 0.1);
    color: var(--accent-primary);
    font-weight: 500;
}

.docs-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-primary);
    min-height: 100%;
}

.docs-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    flex-wrap: wrap;
}

.docs-toolbar-title {
    flex: 1;
    min-width: 0;
}

.docs-toolbar-title h1 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.docs-toolbar-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.docs-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px 48px;
}

.docs-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.docs-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.docs-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.docs-content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.docs-content ul,
.docs-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.docs-content li {
    margin-bottom: 6px;
}

.docs-content code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: 'Consolas', 'Monaco', monospace;
    color: var(--accent-primary);
}

.docs-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 16px;
    position: relative;
}

.docs-content pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.6;
}

.docs-right {
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    padding: 24px;
    overflow-y: auto;
    min-height: 0;
}

.docs-toc {
    position: sticky;
    top: 0;
}

.docs-toc-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.docs-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-toc-item {
    padding: 4px 0;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border-left: 2px solid transparent;
    padding-left: 12px;
}

.docs-toc-item:hover {
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
}

.docs-toc-item.active {
    color: var(--accent-primary);
    font-weight: 600;
    border-left-color: var(--accent-primary);
}

.docs-related {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.docs-related-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.docs-related-item {
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.docs-related-item:hover {
    color: var(--accent-primary);
}

@media (max-width: 1024px) {
    .docs-layout {
        grid-template-columns: 260px 1fr;
    }
    .docs-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }
    .docs-sidebar {
        display: none;
    }
    .docs-content {
        padding: 24px;
    }
}

.docs-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.alert {
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border-left: 4px solid;
}

.alert-info {
    background: rgba(88, 101, 242, 0.08);
    border-left-color: var(--accent-primary);
    color: var(--text-secondary);
}

.alert-warning {
    background: rgba(250, 168, 26, 0.08);
    border-left-color: var(--warning);
    color: var(--text-secondary);
}

.alert-danger {
    background: rgba(237, 66, 69, 0.08);
    border-left-color: var(--danger);
    color: var(--text-secondary);
}

.alert-success {
    background: rgba(87, 242, 135, 0.08);
    border-left-color: var(--success);
    color: var(--text-secondary);
}

pre code {
    display: block;
    overflow-x: auto;
    padding: 0;
}

.docs-content pre {
    position: relative;
}

.docs-content pre::before {
    content: attr(data-lang);
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.docs-content blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 16px;
    margin: 16px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.docs-content th,
.docs-content td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.docs-content th {
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.docs-content td {
    color: var(--text-secondary);
}

.docs-content img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 16px 0;
}

.docs-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 24px 0;
}

.docs-content .docs-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(253, 125, 98, 0.1);
    color: var(--accent-primary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    margin-right: 6px;
    margin-bottom: 6px;
}

.docs-content .docs-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.docs-status.current {
    background: rgba(87, 242, 135, 0.1);
    color: var(--success);
}

.docs-status.outdated {
    background: rgba(237, 66, 69, 0.1);
    color: var(--danger);
}

.docs-status.updating {
    background: rgba(250, 168, 26, 0.1);
    color: var(--warning);
}

.docs-dashboard {
    animation: fadeIn 0.3s ease;
}

.docs-dashboard-header {
    margin-bottom: 32px;
}

.docs-dashboard-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.docs-dashboard-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

.docs-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.docs-dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
}

.docs-dashboard-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.docs-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.docs-card-icon {
    font-size: 20px;
}

.docs-card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.docs-card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.docs-card-item {
    padding: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.docs-card-item:hover {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

.docs-card-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.docs-card-item-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.docs-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.docs-stat-item {
    text-align: center;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.docs-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 4px;
}

.docs-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.docs-breadcrumb span {
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.docs-breadcrumb span:hover {
    color: var(--accent-primary);
}

.docs-breadcrumb-separator {
    color: var(--text-muted);
    cursor: default;
}

.docs-banner {
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    color: white;
}

.docs-banner-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.docs-banner-icon {
    font-size: 48px;
    line-height: 1;
}

.docs-banner h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
}

.docs-banner p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
}

.docs-banner-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.docs-badge {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.docs-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.docs-meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.docs-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    object-fit: cover;
}

.docs-meta-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.docs-meta-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.docs-meta-right {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.docs-meta-item {
    font-size: 13px;
    color: var(--text-secondary);
}

.callout {
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border-left: 4px solid;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.callout-info {
    background: rgba(88, 101, 242, 0.08);
    border-left-color: var(--accent-primary);
}

.callout-success {
    background: rgba(87, 242, 135, 0.08);
    border-left-color: var(--success);
}

.callout-warning {
    background: rgba(250, 168, 26, 0.08);
    border-left-color: var(--warning);
}

.callout-danger {
    background: rgba(237, 66, 69, 0.08);
    border-left-color: var(--danger);
}

.callout-deprecated {
    background: rgba(149, 165, 166, 0.08);
    border-left-color: #95A5A6;
}

.callout-tip {
    background: rgba(235, 69, 158, 0.08);
    border-left-color: #EB459E;
}

.callout-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.callout-content {
    flex: 1;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.callout-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.docs-content pre {
    position: relative;
    margin-bottom: 16px;
}

.docs-content pre::before {
    content: attr(data-lang);
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    z-index: 1;
}

.docs-content pre code {
    display: block;
    overflow-x: auto;
    padding: 16px;
    font-size: 13px;
    line-height: 1.6;
}

.docs-category-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    transition: var(--transition);
}

.docs-category-banner:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow);
}

.docs-category-banner-icon {
    font-size: 48px;
    line-height: 1;
    flex-shrink: 0;
}

.docs-category-banner-info h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.docs-category-banner-info p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.docs-change-history {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.docs-change-history-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.docs-change-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.docs-change-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.docs-change-item:hover {
    border-color: var(--accent-primary);
}

.docs-change-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.docs-change-content {
    flex: 1;
}

.docs-change-description {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.docs-change-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.docs-content pre {
    position: relative;
    margin-bottom: 16px;
}

.docs-content pre::before {
    content: attr(data-lang);
    position: absolute;
    top: 8px;
    right: 48px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    z-index: 1;
}

.docs-code-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1;
}

.docs-code-copy:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.docs-code-copy.copied {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.docs-content pre code {
    display: block;
    overflow-x: auto;
    padding: 16px;
    font-size: 13px;
    line-height: 1.6;
    background: var(--bg-code);
    border-radius: var(--radius-md);
}

.docs-sidebar-footer {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    border-top: 1px solid var(--border-color);
}

.docs-sidebar-section {
    margin-bottom: 16px;
}

.docs-sidebar-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding: 0 4px;
}

.docs-categories-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.docs-category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    color: var(--text-secondary);
}

.docs-category-item:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
}

.docs-category-item-icon {
    font-size: 14px;
    line-height: 1;
}

.docs-category-item-name {
    flex: 1;
}

.docs-category-item-count {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.docs-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.docs-tag {
    padding: 4px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.docs-tag:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.docs-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
}

.docs-widget-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.docs-info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.docs-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.docs-info-label {
    color: var(--text-muted);
}

.docs-info-value {
    font-weight: 600;
    color: var(--text-primary);
}

.docs-status-current {
    color: var(--success);
}

.docs-status-outdated {
    color: var(--danger);
}

.docs-status-updating {
    color: var(--warning);
}

.docs-contributors-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.docs-contributor {
    display: flex;
    align-items: center;
    gap: 10px;
}

.docs-contributor-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    object-fit: cover;
}

.docs-contributor-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.docs-contributor-role {
    font-size: 11px;
    color: var(--text-muted);
}

.docs-quick-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.docs-quick-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.docs-quick-action-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.docs-comments {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.docs-comments-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.docs-comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.docs-comment {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.docs-comment:hover {
    border-color: var(--accent-primary);
}

.docs-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    object-fit: cover;
    flex-shrink: 0;
}

.docs-comment-content {
    flex: 1;
}

.docs-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.docs-comment-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.docs-comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.docs-comment-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.docs-comment-actions {
    display: flex;
    gap: 12px;
}

.docs-comment-action {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.docs-comment-action:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
}

.docs-comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.docs-comment-textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: var(--transition);
}

.docs-comment-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(253, 125, 98, 0.1);
}

.docs-comment-form .btn {
    align-self: flex-end;
}

.docs-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.docs-tag-cloud-item {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.docs-tag-cloud-item:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.docs-contributors-dashboard {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.docs-contributor-dashboard-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.docs-contributor-dashboard-item:hover {
    border-color: var(--accent-primary);
}

.docs-contributor-dashboard-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    object-fit: cover;
}

.docs-contributor-dashboard-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.docs-contributor-dashboard-count {
    font-size: 11px;
    color: var(--text-muted);
}

.docs-activity-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    height: 100px;
    padding-top: 8px;
}

.docs-activity-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
}

.docs-activity-fill {
    width: 100%;
    background: linear-gradient(to top, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: var(--transition);
    min-height: 4px;
}

.docs-activity-bar:hover .docs-activity-fill {
    opacity: 0.8;
}

.docs-activity-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.docs-dashboard-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.docs-dashboard-card:nth-child(1) { animation-delay: 0.05s; }
.docs-dashboard-card:nth-child(2) { animation-delay: 0.1s; }
.docs-dashboard-card:nth-child(3) { animation-delay: 0.15s; }
.docs-dashboard-card:nth-child(4) { animation-delay: 0.2s; }
.docs-dashboard-card:nth-child(5) { animation-delay: 0.25s; }
.docs-dashboard-card:nth-child(6) { animation-delay: 0.3s; }

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

.docs-comment {
    animation: fadeIn 0.3s ease;
}

.docs-change-item {
    animation: fadeIn 0.3s ease;
}

.docs-sidebar-item,
.docs-related-item,
.docs-card-item {
    transition: all 0.2s ease;
}

.docs-sidebar-footer {
    animation: slideIn 0.3s ease;
}

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

.docs-toc-item {
    transition: all 0.2s ease;
}

.docs-toc-item:hover {
    color: var(--accent-primary);
    padding-left: 16px;
}

@media (max-width: 1200px) {
    .docs-layout {
        grid-template-columns: 260px 1fr 240px;
    }
}

@media (max-width: 1024px) {
    .docs-layout {
        grid-template-columns: 260px 1fr;
    }
    .docs-right {
        display: none;
    }
    .docs-dashboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }
    .docs-sidebar {
        display: none;
    }
    .docs-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .docs-quick-actions {
        flex-direction: column;
    }
    .docs-quick-action-btn {
        width: 100%;
        justify-content: center;
    }
    .docs-activity-chart {
        height: 80px;
    }
    .docs-activity-label {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .docs-dashboard-header h1 {
        font-size: 24px;
    }
    .docs-dashboard-header p {
        font-size: 14px;
    }
    .docs-card-header h3 {
        font-size: 14px;
    }
    .docs-stat-value {
        font-size: 20px;
    }
    .docs-stat-label {
        font-size: 11px;
    }
}

.docs-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--bg-tertiary);
    z-index: 10000;
}

.docs-reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.1s ease;
    width: 0%;
}

.docs-toc-item {
    transition: all 0.2s ease;
}

.docs-toc-item:hover {
    color: var(--accent-primary);
    padding-left: 16px;
}

.docs-toc-item.active {
    color: var(--accent-primary);
    font-weight: 600;
    border-left: 2px solid var(--accent-primary);
    padding-left: 10px;
}

.docs-favorite-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.docs-favorite-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.docs-favorite-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

@media print {
    .docs-sidebar,
    .docs-right,
    .docs-toolbar,
    .docs-quick-actions,
    .docs-reading-progress,
    .docs-favorite-btn,
    .docs-comments {
        display: none !important;
    }
    
    .docs-layout {
        display: block;
    }
    
    .docs-main {
        width: 100%;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .docs-content {
        color: black;
    }
    
    .docs-content pre {
        background: #f5f5f5;
        border: 1px solid #ddd;
    }
    
    .docs-content pre code {
        color: black;
    }
}

.docs-cms-view {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.docs-cms-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    flex: 1;
    overflow: hidden;
}

.docs-cms-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    padding-right: 8px;
}

.docs-cms-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.docs-cms-section-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.docs-cms-section-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.docs-cms-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.docs-cms-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.docs-cms-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-color);
}

.docs-cms-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.docs-cms-item-icon {
    font-size: 14px;
    line-height: 1;
}

.docs-cms-item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.docs-cms-item-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.docs-cms-item-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.docs-cms-main {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    overflow-y: auto;
}

.docs-cms-main h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.docs-cms-main .form-group {
    margin-bottom: 16px;
}

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

@media (max-width: 1024px) {
    .docs-cms-layout {
        grid-template-columns: 1fr;
    }
    
    .docs-cms-sidebar {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .docs-cms-section {
        min-width: 280px;
    }
}

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

.view-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.docs-cms-item-missing {
    opacity: 0.7;
    border: 1px dashed var(--border-color);
    background: var(--bg-secondary);
}

.docs-cms-item-missing:hover {
    opacity: 1;
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

.server-logs-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(87, 242, 135, 0.1);
    border: 1px solid rgba(87, 242, 135, 0.3);
    border-radius: var(--radius-md);
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
