/* SimpleAdmin Pro - Glassmorphism & Modern UI */

:root {
  --primary-color: #4DABFF;
  --primary-gradient: linear-gradient(135deg, #4DABFF 0%, #2196F3 100%);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  --backdrop-blur: blur(12px);
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition-speed: 0.3s;
}

/* 全局字体优化 */
body {
  font-family: var(--font-family-base) !important;
  -webkit-font-smoothing: antialiased;
}

/* 顶部导航毛玻璃 */
.typecho-head-nav {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 999;
}

/* 侧边栏优化 */
#typecho-nav-list {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0 16px 16px 0;
  margin-top: 10px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
}

#typecho-nav-list ul li a {
  border-radius: 8px;
  margin: 5px 10px;
  transition: all var(--transition-speed);
}

#typecho-nav-list ul li.active a,
#typecho-nav-list ul li a:hover {
  background: var(--primary-gradient) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

/* 卡片/容器玻璃化 */
.typecho-page-main,
.typecho-page-title {
  animation: fadeIn 0.5s ease-out;
}

.typecho-list-operate,
.typecho-table-wrap {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  border-radius: 12px;
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 20px;
  margin-bottom: 20px;
}

/* 按钮美化 */
.btn.primary {
  background: var(--primary-gradient) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.15s ease;
  border-radius: 6px;
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* 输入框美化 */
input[type="text"],
input[type="password"],
textarea,
select {
  border: 1px solid #e0e6ed !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.9);
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(77, 171, 255, 0.2) !important;
}

/* 表格优化 */
.typecho-list-table {
  border: none;
}

.typecho-list-table thead th {
  background: transparent;
  border-bottom: 2px solid #eee;
  font-weight: 600;
  color: #666;
}

.typecho-list-table tbody tr {
  transition: background-color 0.2s;
}

.typecho-list-table tbody tr:hover {
  background-color: rgba(77, 171, 255, 0.05);
}

.typecho-list-table td {
  border-bottom: 1px solid #f0f0f0;
}

/* 统计卡片额外优化 (如果没在 stats.php 内联样式中覆盖) */
.stats-card {
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7)) !important;
  backdrop-filter: blur(20px);
}

/* 动效 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}