/**
 * 🌸 财务主题二开 - UIUX 萌神 V7.5 Layout
 * 🚀 核心理念：不破坏框架，只增强视觉
 * 🎀 设计师：萌神 (Kawaii Architect)
 */

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

:root {
    --v6-accent: #6366f1;
    --v6-accent-light: #eef2ff;
    --v6-accent-glow: rgba(99, 102, 241, 0.15);
    --v6-text: #0f172a;
    --v6-text-muted: #64748b;
}

body {
    font-family: 'Inter', 'PingFang SC', system-ui, -apple-system, sans-serif;
}

/* ═══════════════════════════════════════
   顶部栏优化 (已迁移到 header.tpl Tailwind)
   ═══════════════════════════════════════ */
/* 🌸 萌神注释：#page-topbar 布局样式已迁移到 Tailwind */

/* 顶部搜索框 */
.app-search-v6 {
    position: relative;
    margin-left: 16px;
    width: 280px;
}

.app-search-v6 .position-relative {
    position: relative;
}

.app-search-v6 input {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 10px 16px 10px 42px;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
}

.app-search-v6 input:focus {
    background: #fff;
    box-shadow: 0 0 0 3px var(--v6-accent-glow);
    border-color: var(--v6-accent);
    outline: none;
}

.app-search-v6 i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #94a3b8;
}

/* 顶栏功能图标 */
.header-item-v6 {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    color: #475569;
    text-decoration: none;
}

.header-item-v6:hover {
    background: #fff;
    color: var(--v6-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header-item-v6 i {
    font-size: 20px;
}

.badge-v6 {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}

/* 用户中心下拉 */
.user-center-v6 {
    background: #fff;
    border-radius: 12px;
    padding: 6px 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.user-center-v6:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

/* ═══════════════════════════════════════
   侧边栏优化 (shadcn/ui 官方配色方案)
   参考: https://ui.shadcn.com/docs/components/sidebar
   ═══════════════════════════════════════ */

/* shadcn 官方侧边栏 CSS 变量 */
:root {
    --sidebar-bg: #fafafa;           /* 0 0% 98% - 近白色背景 */
    --sidebar-fg: #3f3f46;           /* 深灰文字 */
    --sidebar-accent: #f4f4f5;       /* 悬浮背景 */
    --sidebar-accent-fg: #18181b;    /* 悬浮文字 */
    --sidebar-border: #e4e4e7;       /* 边框色 */
    --sidebar-primary: #6366f1;      /* 主题紫色 */
    --sidebar-muted: #71717a;        /* 次要文字 */
}

/* 浅色侧边栏 - 使用 body 选择器提高优先级 */
body[data-topbar="light"] .vertical-menu {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
}

/* 侧边栏背景光球装饰 */
.sidebar-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.s-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    pointer-events: none;
}

.blob-1 {
    width: 200px;
    height: 200px;
    background: #818cf8;
    top: -60px;
    left: -60px;
}

.blob-2 {
    width: 150px;
    height: 150px;
    background: #c084fc;
    bottom: 150px;
    right: -50px;
}

/* 菜单项样式优化 (shadcn 配色) */
#sidebar-menu ul li a {
    color: var(--sidebar-fg);
    padding: 12px 16px;
    border-radius: 8px;
    margin: 0 8px 4px 8px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
}

/* 萌神已移除：图标颜色统一由 sidebar-v2.css 管理 */

/* 萌神已移除：激活态样式统一由 sidebar-v2.css 管理 */

/* 萌神已移除：图标颜色统一由 sidebar-v2.css 管理 */

/* 萌神已移除：子菜单样式统一由 sidebar-v2.css 管理 */

/* 侧边栏底部装饰卡片 */
.sidebar-promo-v6 {
    margin: 20px 12px;
    padding: 20px 16px;
    background: var(--v6-accent-light);
    border-radius: 16px;
    border: 1px dashed rgba(99, 102, 241, 0.3);
    text-align: center;
}

.promo-icon-v6 {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: var(--v6-accent);
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.promo-title-v6 {
    font-size: 13px;
    font-weight: 700;
    color: var(--v6-accent);
    margin-bottom: 4px;
}

.promo-desc-v6 {
    font-size: 12px;
    color: var(--v6-text-muted);
}

/* ═══════════════════════════════════════
   响应式适配
   ═══════════════════════════════════════ */
@media (max-width: 992px) {
    .app-search-v6 {
        display: none;
    }
}
