/*
Theme Name: EchXanh FSRS Theme
Theme URI: https://zh.taiwandiary.vn
Author: EchXanh
Author URI: https://zh.taiwandiary.vn
Description: Premium dark-mode glassmorphic theme custom tailored for EchXanh Chinese FSRS 4.5 Flashcards & EX Worksheet Generator Plugin.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: dark-mode, full-width, flexbox, one-column, custom-colors, custom-menu, education
Text Domain: echxanh-theme
*/

:root {
  --bg-primary: #090d16;
  --bg-sidebar: #0f172a;
  --bg-card: #1e293b;
  --border-color: rgba(255, 255, 255, 0.08);
  --accent-primary: #38bdf8;
  --accent-gradient: linear-gradient(135deg, #0284c7, #38bdf8);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-hanzi: "Noto Serif TC", "KaiTi", "BiauKai", "DFKai-SB", "Microsoft JhengHei", serif;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--bg-primary) !important;
  color: var(--text-main) !important;
  font-family: var(--font-family);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Remove WP default margin-top if admin bar is present */
body.admin-bar {
  margin-top: 0 !important;
}

#wpadminbar {
  opacity: 0.85;
}

/* Theme Layout Wrapper */
.echxanh-theme-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

/* Optional Top Header Bar */
.echxanh-header {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
}

.echxanh-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.echxanh-logo-icon {
  font-size: 24px;
}

.echxanh-header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-left: 20px;
  transition: color 0.2s;
}

.echxanh-header-nav a:hover {
  color: var(--accent-primary);
}

/* Main App Container - Full-width Seamless Integration */
.echxanh-main-container {
  flex: 1;
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Force App Layout to occupy clean full screen height inside Theme */
.echxanh-main-container .app-layout {
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  min-height: 100vh !important;
}
