:root {
  --bg-body: #FFFDF5;
  --bg-card: #FFFFFF;
  --bg-nav: rgba(255, 255, 255, 0.92);
  --bg-footer: #FFFFFF;
  --bg-footer-top: #FFFDF5;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #94a3b8;
  --text-footer: #4a4a4a;
  --border-color: #f0e8d8;
  --accent: #FFD700;
  --accent-hover: #e6c200;
  --accent-light: rgba(255, 215, 0, 0.15);
  --accent-glow: rgba(255, 215, 0, 0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font: 'Inter', 'Segoe UI', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --header-height: 70px;
}

[data-theme="dark"] {
  --bg-body: #0f0f0f;
  --bg-card: #1a1a1a;
  --bg-nav: rgba(15, 15, 15, 0.95);
  --bg-footer: #0a0a0a;
  --bg-footer-top: #1a1a1a;
  --text-primary: #f0f0f0;
  --text-secondary: #b0b0b0;
  --text-muted: #6b7280;
  --text-footer: #a0a0a0;
  --border-color: #2a2a2a;
  --accent: #FFD700;
  --accent-hover: #ffe44d;
  --accent-light: rgba(255, 215, 0, 0.12);
  --accent-glow: rgba(255, 215, 0, 0.15);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.6);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font);
  transition: background-color 0.3s ease, color 0.3s ease;
  background-image: radial-gradient(at 0% 0%, rgba(252, 237, 159, 0.15) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(255, 215, 0, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
}

[data-theme="dark"] body {
  background-image: radial-gradient(at 0% 0%, rgba(255, 215, 0, 0.05) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(255, 255, 255, 0.02) 0px, transparent 50%);
}

a { color: var(--text-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: #1a1a1a; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, #1a1a1a, var(--accent)); border-radius: 5px; border: 2px solid var(--bg-body); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4, h5, h6 { color: var(--text-primary); font-weight: 700; line-height: 1.3; }

p { color: var(--text-secondary); line-height: 1.7; }

.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; position: relative; display: inline-block; }
.section-title::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 60px; height: 4px; background: var(--accent); border-radius: 2px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; border: none; cursor: pointer; transition: var(--transition); text-decoration: none; }
.btn-yellow { background: var(--accent); color: #1a1a1a; }
.btn-yellow:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 15px var(--accent-glow); color: #000; }
.btn-black { background: #1a1a1a; color: #fff; }
.btn-black:hover { background: #000; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); color: var(--accent); }
.btn-outline { background: transparent; color: var(--text-primary); border: 2px solid var(--border-color); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: 6px 16px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ===== CARDS ===== */
.card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; transition: var(--transition); box-shadow: var(--shadow-sm); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ===== BADGES ===== */
.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.badge-yellow { background: var(--accent); color: #1a1a1a; }
.badge-black { background: #1a1a1a; color: #fff; }
.badge-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); }

/* ===== MODULE COMING SOON ===== */
.module-placeholder { text-align: center; padding: 80px 20px; }
.module-placeholder .icon { font-size: 4rem; color: var(--accent); margin-bottom: 20px; display: block; }
.module-placeholder h2 { font-size: 2rem; margin-bottom: 10px; }
.module-placeholder p { color: var(--text-muted); max-width: 500px; margin: 0 auto 30px; font-size: 1.1rem; }
.module-placeholder .features { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.module-placeholder .feature-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 20px; flex: 1; min-width: 150px; max-width: 200px; }
.module-placeholder .feature-item i { font-size: 2rem; color: var(--accent); margin-bottom: 10px; display: block; }
.module-placeholder .feature-item span { font-weight: 600; font-size: 14px; }

/* ===== PAGE HEADER ===== */
.page-header { padding: 40px 0 20px; }
.page-header h1 { font-size: 2.2rem; font-weight: 800; margin: 0 0 8px; }
.page-header p { color: var(--text-muted); margin: 0; font-size: 1.05rem; }
.page-header .breadcrumb { display: flex; gap: 8px; font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.page-header .breadcrumb a { color: var(--accent); }
.page-header .breadcrumb a:hover { text-decoration: underline; }

/* ===== ALERTS ===== */
.alert { border-radius: var(--radius-sm); padding: 14px 18px; font-weight: 500; margin-bottom: 20px; border-left: 4px solid transparent; }
.alert-success { background: #D1FAE5; color: #065F46; border-left-color: #059669; }
.alert-danger { background: #FEE2E2; color: #991B1B; border-left-color: #DC2626; }
.alert-warning { background: #FEF3C7; color: #92400E; border-left-color: #D97706; }
.alert-info { background: #DBEAFE; color: #1E40AF; border-left-color: #0284C7; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; color: var(--text-primary); margin-bottom: 6px; }
.form-control { width: 100%; padding: 10px 14px; border: 2px solid var(--border-color); border-radius: var(--radius-sm); font-size: 14px; background: var(--bg-card); color: var(--text-primary); transition: var(--transition); }
.form-control:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-glow); }
select.form-control { appearance: auto; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ===== GRID SYSTEM ===== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ===== DARK MODE TOGGLE ===== */
.theme-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; background: transparent; border: none; color: var(--text-primary); font-size: 1.2rem; transition: var(--transition); }
.theme-toggle:hover { background: var(--accent-light); color: var(--accent); transform: rotate(15deg); }

/* ===== HEADINGS WITH YELLOW ACCENT ===== */
.yellow-underline { position: relative; display: inline-block; }
.yellow-underline::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 6px; background: var(--accent); opacity: 0.4; border-radius: 0; z-index: -1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) { .section-title { font-size: 1.5rem; } .page-header h1 { font-size: 1.6rem; } }

/* ===== SCROLL TO TOP ===== */
#scrollToTop { position: fixed; bottom: 30px; left: 30px; z-index: 9999; width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #FF6B6B); color: #fff; display: none; align-items: center; justify-content: center; cursor: pointer; border: none; box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4); transition: var(--transition); font-size: 1.2rem; }
#scrollToTop.show { display: flex; }
#scrollToTop:hover { transform: translateY(-4px) scale(1.1); box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4); }
