/* ===== File Browser 界面美化 · 靛蓝清爽主题 ===== */

:root {
  --blue: #4f46e5;            /* 主强调色:靛蓝 */
  --primaryColor: #4f46e5;
}

/* 全局字体更柔和 */
body, input, button {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif !important;
}

/* 顶栏:柔和阴影、去生硬边 */
header,
#search,
nav {
  box-shadow: 0 1px 6px rgba(20, 26, 40, 0.06) !important;
}

/* 主强调色应用到关键元素 */
.button--flat.button--blue,
.button.button--blue,
a, .link,
.active,
#nav .active {
  color: #4f46e5 !important;
}

.button--flat.button--blue {
  background: transparent !important;
}

/* 主要操作按钮:圆角 + 靛蓝 */
.action,
.button,
.button--flat {
  border-radius: 10px !important;
  transition: background .15s ease, transform .1s ease !important;
}
.button:active { transform: scale(.97) !important; }

/* 列表项 / 卡片:圆角 + hover 高亮 */
#listing.mosaic .item,
#listing .item {
  border-radius: 12px !important;
}
#listing .item:hover {
  background: rgba(79, 70, 229, 0.06) !important;
}

/* 选中态用靛蓝 */
#listing .item[aria-selected="true"] {
  background: rgba(79, 70, 229, 0.14) !important;
}

/* 输入框:圆角、聚焦靛蓝描边 */
input,
.input,
#search input {
  border-radius: 10px !important;
}
input:focus {
  outline: 2px solid rgba(79, 70, 229, 0.4) !important;
  outline-offset: 1px;
}

/* ===== 登录页美化 ===== */
.login,
body.login {
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(79,70,229,.18), transparent 60%),
    radial-gradient(1000px 500px at 100% 110%, rgba(37,99,235,.16), transparent 60%),
    #f4f5fb !important;
}

.login main,
.login form,
.card {
  border-radius: 18px !important;
  box-shadow: 0 16px 48px rgba(30, 30, 70, 0.16) !important;
  border: 1px solid rgba(79,70,229,.08) !important;
}

.login .button,
.login button[type="submit"] {
  border-radius: 12px !important;
  background: linear-gradient(135deg, #4f46e5, #3b5bdb) !important;
  color: #fff !important;
  font-weight: 600 !important;
}

/* 滚动条更精致(Webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: rgba(79,70,229,.3);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(79,70,229,.5); }

/* 进度条 / 加载条用靛蓝 */
#progress { background: #4f46e5 !important; }
