:root {
    --primary: #0052d9;
    --primary-hover: #0042cd;
    --primary-light: #0066ff;
    --primary-lighter: #e6f0ff;
    --secondary: #5e6e82;
    --success: #00a870;
    --success-light: #e6fff5;
    --warning: #faad14;
    --warning-light: #fff7e6;
    --danger: #ff4d4f;
    --danger-light: #fff0f0;
    --info: #1890ff;
    --info-light: #e6f7ff;
    
    --bg-body: #f2f3f5;
    --bg-card: #ffffff;
    --bg-sidebar: #2b2f3a;
    --bg-header: #ffffff;
    --bg-hover: #f5f6f7;
    
    --text-primary: #2c3e50;
    --text-secondary: #5e6e82;
    --text-tertiary: #8993a4;
    --text-inverse: #ffffff;
    
    --border: #e5e8eb;
    --border-light: #f2f3f5;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.15);
    
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 9999px;
    
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
    
    --header-height: 60px;
    --sidebar-width: 200px;
}

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

html, body {
    height: 100%;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ========== Header ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(90deg, #0052d9 0%, #0066ff 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
}

.brand h1 {
    font-size: 17px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.5px;
}

.brand .subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-center {
    flex: 1;
    max-width: 400px;
    margin: 0 32px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.4);
}

.search-box input {
    width: 100%;
    height: 36px;
    padding: 0 16px 0 40px;
    border: none;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    color: var(--text-primary);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-header);
    box-shadow: 0 0 0 3px var(--primary-lighter);
}

.search-box input::placeholder {
    color: var(--text-tertiary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.icon-btn .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu {
    position: relative;
    margin-left: 8px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.user-avatar:hover {
    box-shadow: 0 0 0 3px var(--primary-lighter);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 200;
}

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

.user-info {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.user-role {
    font-size: 12px;
    color: var(--text-secondary);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.user-dropdown a.logout {
    color: var(--danger);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* ========== Sidebar ========== */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: #fff;
    padding: 12px 0;
    overflow-y: auto;
    z-index: 90;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.06);
    border-right: 1px solid var(--border-light);
}

.sidebar-section {
    margin-bottom: 12px;
}

.sidebar-title {
    padding: 8px 16px 8px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #8993a4;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius);
    color: #5e6e82;
    font-size: 13px;
    font-weight: 400;
    transition: var(--transition);
    cursor: pointer;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary-lighter);
    color: var(--primary);
    font-weight: 500;
}

.nav-item svg {
    flex-shrink: 0;
    color: inherit;
}

.nav-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item.active .nav-badge {
    background: rgba(255, 255, 255, 0.25);
}

.sidebar-footer {
    position: absolute;
    bottom: 16px;
    left: 12px;
    right: 12px;
    padding: 12px;
    background: var(--bg-body);
    border-radius: var(--radius);
    display: none;
}

.system-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-tertiary);
}

/* ========== Main Content ========== */
.main {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 24px;
    min-height: calc(100vh - var(--header-height));
}

/* ========== Page Header ========== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.page-header .actions {
    display: flex;
    gap: 12px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-tertiary);
}

/* ========== Stats Grid ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.blue {
    background: var(--primary-lighter);
    color: var(--primary);
}

.stat-icon.green {
    background: var(--success-light);
    color: var(--success);
}

.stat-icon.yellow {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-icon.red {
    background: var(--danger-light);
    color: var(--danger);
}

.stat-content h3 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-trend {
    font-size: 12px;
    margin-top: 4px;
}

.stat-trend.up {
    color: var(--success);
}

.stat-trend.down {
    color: var(--danger);
}

/* ========== Process Cards ========== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

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

.process-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

.process-card .process-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.process-card .process-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: #e2e8f0;
    color: #4a5568;
}

.process-card .status-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.status-badge.active {
    background: var(--success-light);
    color: var(--success);
}

.process-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.process-card .description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.process-card .meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-tertiary);
}

.process-card .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========== Relation Graph ========== */
.relation-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.relation-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.flowchart-container {
    background: var(--bg-body);
    border-radius: var(--radius);
    padding: 24px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== Process Detail ========== */
.process-detail {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.process-detail .detail-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    padding: 32px;
    color: white;
}

.process-detail .detail-header.supply {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.process-detail .detail-header.launch {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.process-detail .detail-header.rnd {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.process-detail .detail-header .owner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    opacity: 0.9;
    font-size: 14px;
}

.process-detail .detail-header .status-badge {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.process-detail .detail-body {
    padding: 24px;
}

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

.detail-tabs button {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: var(--transition);
}

.detail-tabs button:hover {
    color: var(--text-primary);
}

.detail-tabs button.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.detail-tab-content {
    display: none;
}

.detail-tab-content.active {
    display: block;
}

/* ========== Sub Process Cards ========== */
.sub-process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.sub-process-card {
    background: var(--bg-body);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.sub-process-card:hover {
    background: var(--bg-card);
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.sub-process-card h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sub-process-card p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========== Roles & IO Tags ========== */
.roles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.role-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
}

.role-tag.owner {
    background: var(--danger-light);
    color: var(--danger);
}

.role-tag.editor {
    background: var(--primary-lighter);
    color: var(--primary);
}

.role-tag.viewer {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

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

.io-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.io-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-body);
    border-radius: var(--radius);
    font-size: 13px;
}

.io-item .io-name {
    font-weight: 500;
}

.io-item .io-meta {
    color: var(--text-secondary);
}

/* ========== Task Board ========== */
.task-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.task-column {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border);
}

.task-column h4 {
    font-size: 12px;
    font-weight: 600;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-column h4.pending {
    border-color: #718096;
    color: #4a5568;
}

.task-column h4.in_progress {
    border-color: #2b6cb0;
    color: #2c5282;
}

.task-column h4.completed {
    border-color: #276749;
    color: #276749;
}

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

.task-item {
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    padding: 12px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.task-item:hover {
    background: #edf2f7;
    box-shadow: var(--shadow-sm);
    border-left-color: var(--primary);
}

.task-item .task-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.task-item .task-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.task-item .task-progress {
    height: 4px;
    background: var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.task-item .task-progress .progress {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* ========== Modal ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    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-card {
    background: var(--bg-header);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95);
    transition: var(--transition-slow);
}

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

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

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

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.modal-body {
    padding: 24px;
}

/* ========== Forms ========== */
.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-field select,
.form-field input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-header);
    transition: var(--transition);
}

.form-field select:focus,
.form-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-lighter);
}

.form-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--primary-lighter);
    border-radius: var(--radius);
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 32px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 2px 4px rgba(0, 82, 217, 0.3);
}

.btn-block {
    width: 100%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 20px;
    border-radius: var(--radius);
    background: var(--bg-header);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

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

/* ========== Panel ========== */
.panel {
    position: fixed;
    top: var(--header-height);
    right: 24px;
    width: 360px;
    max-height: calc(100vh - var(--header-height) - 48px);
    background: var(--bg-header);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 200;
    overflow: hidden;
}

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

.panel-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.panel-header button {
    font-size: 13px;
    color: var(--primary);
}

.panel-body {
    padding: 12px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    transition: var(--transition);
}

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

.notification-item.unread {
    background: var(--primary-lighter);
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.success {
    background: var(--success-light);
    color: var(--success);
}

.notification-icon.warning {
    background: var(--warning-light);
    color: var(--warning);
}

.notification-icon.info {
    background: var(--info-light);
    color: var(--info);
}

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

.notification-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
}

.notification-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.notification-time {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* ========== Table ========== */
.data-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.data-table thead {
    background: var(--bg-body);
}

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

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

.data-table tr:last-child td {
    border-bottom: none;
}

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

/* ========== Empty State ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.empty-state h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========== Responsive ========== */
@media (max-width: 1280px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main {
        margin-left: 0;
    }
    
    .task-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-center {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .sub-process-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Animation ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-fade-in {
    animation: fadeIn 0.3s ease;
}

.animate-slide-up {
    animation: slideUp 0.4s ease;
}

/* Stagger animations */
.process-card:nth-child(1) { animation-delay: 0s; }
.process-card:nth-child(2) { animation-delay: 0.1s; }
.process-card:nth-child(3) { animation-delay: 0.2s; }

.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.05s; }
.stat-card:nth-child(3) { animation-delay: 0.1s; }
.stat-card:nth-child(4) { animation-delay: 0.15s; }

/* Gantt Chart Styles */
.gantt-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.gantt-label {
    width: 200px;
    flex-shrink: 0;
    padding-right: 12px;
}

.gantt-phase-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #2d3748;
}

.gantt-owner {
    display: block;
    font-size: 11px;
    color: #a0aec0;
}

.gantt-bar-container {
    flex: 1;
    position: relative;
    height: 28px;
    background: linear-gradient(to right, #f0f0f0 1px, transparent 1px);
    background-size: calc(100% / 17) 100%;
}

.gantt-bar {
    position: absolute;
    top: 2px;
    bottom: 2px;
    background: #a0aec0;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    font-weight: 500;
}

.gantt-bar.completed {
    background: #276749;
}

.gantt-bar.in_progress {
    background: #2b6cb0;
}

.gantt-bar.pending {
    background: #cbd5e0;
}

.gantt-progress {
    color: #fff;
}

/* Docs TOC */
.docs-toc ol {
    padding-left: 20px;
}

.docs-toc a {
    color: #2b6cb0;
    text-decoration: none;
}

.docs-toc a:hover {
    text-decoration: underline;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    text-align: left;
    padding: 10px 12px;
    background: #f7fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: #4a5568;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    color: #2d3748;
}

.data-table tr:hover {
    background: #f7fafc;
}