/* ============================================================
   Cange / 苍易电子招投标系统 — 视觉系统 v2
   方向:政企深蓝 × 金色点缀 × 稳重传统
   主色:#1A2B4A (Navy)  强调:#C9A961 (Gold)  背景:#F5F6F8
   字体:Source Han Serif SC(品牌)+ PingFang SC / Microsoft YaHei(正文)
   ============================================================ */

:root {
    /* 主色 */
    --bg: #F5F6F8;
    --surface: #FFFFFF;
    --surface-alt: #F0F2F5;
    --paper-warm: #FFFFFF;
    --paper-cool: #F0F2F5;
    --mist: #DDE2EA;
    --hairline: rgba(26, 43, 74, 0.08);
    --hairline-strong: rgba(26, 43, 74, 0.16);

    /* 文字 */
    --text: #1A2B4A;
    --ink: #1A2B4A;
    --ink-soft: #3A4A6B;
    --ink-mute: #7A8499;
    --muted: #7A8499;

    /* 政企色 */
    --primary: #1A2B4A;
    --primary-dark: #0E1A33;
    --primary-light: #2D4068;
    --primary-soft: rgba(26, 43, 74, 0.08);
    --primary-line: rgba(26, 43, 74, 0.32);

    /* 金色强调 */
    --accent: #C9A961;
    --accent-deep: #A88944;
    --accent-soft: rgba(201, 169, 97, 0.12);
    --accent-line: rgba(201, 169, 97, 0.4);

    /* 状态色 */
    --success: #2D8659;
    --success-soft: rgba(45, 134, 89, 0.08);
    --warning: #B8761A;
    --warning-soft: rgba(184, 118, 26, 0.08);
    --danger: #B8312F;
    --danger-soft: rgba(184, 49, 47, 0.08);
    --danger-line: rgba(184, 49, 47, 0.32);
    --info: #2D5AA0;
    --info-soft: rgba(45, 90, 160, 0.08);

    /* legacy aliases (兼容旧 class) */
    --cinnabar: #B8312F;
    --cinnabar-deep: #951B1A;
    --cinnabar-soft: rgba(184, 49, 47, 0.08);
    --cinnabar-line: rgba(184, 49, 47, 0.32);

    /* 字体 */
    --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
    --font-mono: "SFMono-Regular", "Menlo", "Consolas", monospace;

    /* 圆角(政企风:精致小圆角) */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;

    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(26, 43, 74, 0.04);
    --shadow-md: 0 2px 8px rgba(26, 43, 74, 0.08);
    --shadow-lg: 0 12px 32px rgba(26, 43, 74, 0.16);

    /* 间距 */
    --gap-1: 4px;
    --gap-2: 8px;
    --gap-3: 12px;
    --gap-4: 16px;
    --gap-5: 24px;
    --gap-6: 32px;
    --gap-7: 48px;
    --gap-8: 64px;

    /* 字号 */
    --text-xs: 12px;
    --text-sm: 13px;
    --text-base: 14px;
    --text-md: 15px;
    --text-lg: 16px;
    --text-xl: 18px;
    --text-2xl: 22px;
    --text-3xl: 28px;
    --text-4xl: 36px;
}

/* ============================================================
   Reset & Base
   ============================================================ */

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

html {
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: var(--text-md);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent-deep);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.04em;
    line-height: 1.3;
}

::selection {
    background: var(--primary);
    color: white;
}

/* ============================================================
   品牌印章(.brand-mark)
   ============================================================ */

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-2);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.06em;
}

.brand-mark::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: var(--radius-xs);
    box-shadow: inset 0 0 0 1px var(--accent-deep);
}

/* ============================================================
   登录页
   ============================================================ */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg);
    background-image:
        linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.login-container::after {
    content: "苍 易 系 统";
    position: absolute;
    bottom: 32px;
    right: 32px;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    color: rgba(201, 169, 97, 0.6);
    letter-spacing: 0.4em;
}

.login-box {
    background: var(--surface);
    border: 1px solid var(--mist);
    border-radius: var(--radius-lg);
    padding: 48px 44px 36px;
    width: 420px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.login-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.login-box h1 {
    text-align: center;
    color: var(--primary);
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
}

.login-box .subtitle {
    text-align: center;
    color: var(--muted);
    font-size: var(--text-sm);
    letter-spacing: 0.3em;
    padding-left: 0.3em;
    margin-bottom: 32px;
    position: relative;
}

.login-box .subtitle::before,
.login-box .subtitle::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--mist);
    vertical-align: middle;
    margin: 0 12px;
}

.login-error,
.login-success {
    padding: 10px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: var(--text-sm);
    text-align: center;
    border: 1px solid;
}

.login-error {
    background: var(--danger-soft);
    border-color: var(--danger-line);
    color: var(--danger);
}

.login-success {
    background: var(--success-soft);
    border-color: rgba(45, 134, 89, 0.32);
    color: var(--success);
}

/* ============================================================
   表单
   ============================================================ */

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: var(--text-sm);
    color: var(--ink-soft);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--mist);
    border-radius: var(--radius);
    font-size: var(--text-md);
    font-family: var(--font-body);
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--ink-mute);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-group textarea {
    min-height: 96px;
    resize: vertical;
    line-height: 1.5;
}

/* ============================================================
   按钮
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-2);
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: var(--text-base);
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
    line-height: 1.2;
    letter-spacing: 0.06em;
}

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

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    width: 100%;
    padding: 12px 24px;
    font-size: var(--text-md);
    font-family: var(--font-display);
    letter-spacing: 0.4em;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

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

.btn-success {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
    font-weight: 700;
}

.btn-success:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    color: white;
}

.btn-danger {
    background: var(--surface);
    color: var(--danger);
    border: 1px solid var(--danger-line);
    padding: 6px 14px;
    font-size: var(--text-sm);
}

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

.btn-small {
    padding: 6px 14px;
    font-size: var(--text-sm);
}

.btn-ghost {
    background: transparent;
    color: var(--ink-soft);
    border-color: var(--mist);
}

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

/* ============================================================
   主框架
   ============================================================ */

.layout {
    display: flex;
    min-height: 100vh;
}

/* ============================================================
   侧边栏 — 政企深蓝 + 金色 accent
   ============================================================ */

.sidebar {
    width: 240px;
    background: var(--primary);
    color: rgba(255, 255, 255, 0.92);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 3px solid var(--accent);
    z-index: 10;
}

.sidebar-header {
    padding: 28px 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.sidebar-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 24px;
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.sidebar-header h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: white;
    letter-spacing: 0.16em;
    line-height: 1;
    margin-bottom: 6px;
}

.sidebar-header .version {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.18em;
    font-family: var(--font-mono);
}

.sidebar-nav {
    padding: 16px 0;
}

.sidebar-nav a {
    display: block;
    padding: 10px 24px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: var(--text-base);
    transition: background 0.15s ease, color 0.15s ease, padding 0.15s ease;
    position: relative;
    letter-spacing: 0.04em;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
    padding-left: 28px;
}

.sidebar-nav a.active {
    background: rgba(201, 169, 97, 0.16);
    color: white;
}

.sidebar-nav a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
}

.sidebar-nav .section-title {
    padding: 20px 24px 6px;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.36);
    letter-spacing: 0.3em;
    font-family: var(--font-display);
    text-transform: none;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--primary);
    font-size: var(--text-sm);
}

.sidebar-footer span {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 6px;
}

.sidebar-footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.15s ease;
}

.sidebar-footer a:hover {
    color: var(--accent);
}

/* ============================================================
   主内容区
   ============================================================ */

.main-content {
    margin-left: 240px;
    padding: 36px 40px;
    flex: 1;
    max-width: calc(100vw - 240px);
}

.page-header {
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hairline);
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* ============================================================
   卡片
   ============================================================ */

.card {
    background: var(--surface);
    border: 1px solid var(--mist);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    transition: border-color 0.15s ease;
}

.card:hover {
    border-color: var(--hairline-strong);
}

.card-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hairline);
    letter-spacing: 0.06em;
}

/* ============================================================
   品牌欢迎区(welcome-section)
   ============================================================ */

.welcome-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--accent);
}

.welcome-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.welcome-section::after {
    content: "公 正 · 透 明 · 高 效";
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: var(--text-base);
    color: rgba(201, 169, 97, 0.42);
    letter-spacing: 0.6em;
    pointer-events: none;
}

.welcome-section h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: white;
    margin-bottom: 8px;
    letter-spacing: 0.08em;
    position: relative;
    z-index: 1;
}

.welcome-section p {
    font-size: var(--text-md);
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0.04em;
    position: relative;
    z-index: 1;
}

/* ============================================================
   统计卡片
   ============================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gap-4);
    margin-bottom: 28px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--mist);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    position: relative;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.stat-card .number {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stat-card .label {
    font-size: var(--text-sm);
    color: var(--muted);
    margin-top: 8px;
    letter-spacing: 0.18em;
}

/* ============================================================
   表格
   ============================================================ */

.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-base);
}

table th,
table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--hairline);
}

table th {
    background: var(--surface-alt);
    font-weight: 600;
    color: var(--ink-soft);
    font-size: var(--text-xs);
    letter-spacing: 0.18em;
    text-transform: none;
    border-bottom: 2px solid var(--primary);
    font-family: var(--font-display);
}

table td {
    font-size: var(--text-base);
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

table tbody tr {
    transition: background 0.1s ease;
}

table tbody tr:hover {
    background: var(--surface-alt);
}

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

/* ============================================================
   状态徽章 / 角色标签
   ============================================================ */

.role-tag,
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-xs);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    border: 1px solid;
    background: var(--surface);
    line-height: 1.4;
    font-family: var(--font-body);
}

/* 角色 */
.role-ADMIN {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: var(--primary-line);
}

.role-EXPERT {
    background: var(--accent-soft);
    color: var(--accent-deep);
    border-color: var(--accent-line);
}

.role-OBSERVER {
    background: var(--info-soft);
    color: var(--info);
    border-color: rgba(45, 90, 160, 0.32);
}

.role-BIDDER {
    background: var(--success-soft);
    color: var(--success);
    border-color: rgba(45, 134, 89, 0.32);
}

/* 状态 */
.status-DRAFT {
    background: var(--surface-alt);
    color: var(--muted);
    border-color: var(--hairline-strong);
}

.status-PUBLISHED,
.status-ACTIVE,
.status-SUBMITTED {
    background: var(--info-soft);
    color: var(--info);
    border-color: rgba(45, 90, 160, 0.32);
}

.status-BIDDING,
.status-EVALUATING,
.status-FORMING {
    background: var(--warning-soft);
    color: var(--warning);
    border-color: rgba(184, 118, 26, 0.32);
}

.status-CLOSED,
.status-COMPLETED,
.status-AWARDED {
    background: var(--success-soft);
    color: var(--success);
    border-color: rgba(45, 134, 89, 0.32);
}

.status-ARCHIVED,
.status-RETIRED,
.status-WITHDRAWN,
.status-SUSPENDED {
    background: var(--surface-alt);
    color: var(--muted);
    border-color: var(--hairline-strong);
}

/* ============================================================
   消息提示
   ============================================================ */

.alert {
    padding: 12px 18px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: var(--text-base);
    border: 1px solid;
    line-height: 1.5;
}

.alert-success {
    background: var(--success-soft);
    border-color: rgba(45, 134, 89, 0.32);
    color: var(--success);
}

.alert-error {
    background: var(--danger-soft);
    border-color: var(--danger-line);
    color: var(--danger);
}

.alert-warning {
    background: var(--warning-soft);
    border-color: rgba(184, 118, 26, 0.32);
    color: var(--warning);
}

.alert-info {
    background: var(--info-soft);
    border-color: rgba(45, 90, 160, 0.32);
    color: var(--info);
}

/* ============================================================
   快捷操作卡
   ============================================================ */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gap-4);
}

.quick-action-card {
    background: var(--surface);
    border: 1px solid var(--mist);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
    text-decoration: none;
    color: var(--text);
    display: block;
    position: relative;
    overflow: hidden;
}

.quick-action-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.quick-action-card::after {
    content: "→";
    position: absolute;
    right: 20px;
    top: 28px;
    color: var(--muted);
    font-size: var(--text-lg);
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

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

.quick-action-card:hover::before {
    transform: scaleX(1);
}

.quick-action-card:hover::after {
    opacity: 1;
    transform: translateX(4px);
    color: var(--accent);
}

.quick-action-card .icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
}

.quick-action-card .title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text);
}

.quick-action-card .desc {
    font-size: var(--text-sm);
    color: var(--muted);
    margin-top: 6px;
    letter-spacing: 0.02em;
}

/* ============================================================
   空状态 / 骨架屏
   ============================================================ */

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

.empty-state .empty-icon {
    font-size: 48px;
    color: var(--mist);
    margin-bottom: 16px;
}

.empty-state .empty-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--ink-soft);
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.empty-state .empty-hint {
    font-size: var(--text-sm);
    color: var(--muted);
}

.skeleton {
    background: linear-gradient(90deg, var(--surface-alt) 0%, var(--mist) 50%, var(--surface-alt) 100%);
    background-size: 200% 100%;
    animation: skeleton 1.4s ease-in-out infinite;
    border-radius: var(--radius-sm);
    height: 16px;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   印章装饰
   ============================================================ */

.seal {
    display: inline-block;
    padding: 6px 12px;
    border: 2px solid var(--accent);
    color: var(--accent-deep);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    letter-spacing: 0.3em;
    font-weight: 700;
    transform: rotate(-4deg);
    background: var(--surface);
    border-radius: var(--radius-xs);
}

/* ============================================================
   工具类
   ============================================================ */

.text-mute { color: var(--muted); }
.text-soft { color: var(--ink-soft); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent-deep); }
.text-display { font-family: var(--font-display); }
.text-tabular { font-variant-numeric: tabular-nums; }

.divider {
    height: 1px;
    background: var(--hairline);
    margin: 24px 0;
    border: none;
}

.divider-decor {
    height: 24px;
    margin: 24px 0;
    text-align: center;
    line-height: 24px;
    color: var(--accent);
    font-family: var(--font-display);
    letter-spacing: 0.5em;
    position: relative;
}

.divider-decor::before,
.divider-decor::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 32px);
    height: 1px;
    background: var(--hairline-strong);
}

.divider-decor::before { left: 0; }
.divider-decor::after { right: 0; }

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 960px) {
    .sidebar {
        width: 200px;
    }
    .main-content {
        margin-left: 200px;
        padding: 24px;
        max-width: calc(100vw - 200px);
    }
    .welcome-section {
        padding: 24px;
    }
    .welcome-section::after {
        display: none;
    }
}

@media (max-width: 640px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 3px solid var(--accent);
    }
    .sidebar-footer {
        position: relative;
    }
    .main-content {
        margin-left: 0;
        max-width: 100%;
        padding: 20px;
    }
    .login-box {
        width: 100%;
        padding: 40px 24px;
        margin: 16px;
    }
}
