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

:root {
  /* Brand Colors */
  --primary: #0052FF;
  --primary-light: #4D87FF;
  --primary-dark: #003ECC;
  
  /* Neutral Colors */
  --bg-body: #F8FAFC;
  --bg-surface: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  
  /* Sidebar Colors */
  --sidebar-bg: #FFFFFF;
  --sidebar-hover: #F1F5F9;
  
  /* Typography */
  --font-family: 'Inter', sans-serif;
  
  /* Layout */
  --sidebar-width: 280px;
  --header-height: 70px;
  
  /* Shadows & Glass */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.2);
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Layout container */
.app-container {
  display: flex;
  height: 100vh;
  width: 100%;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
  z-index: 100;
}

.sidebar-header {
  height: var(--header-height);
  min-height: 70px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  /* background-color: var(--primary-light); */
  border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-nav {
  padding: 24px 16px;
  overflow-y: auto;
  flex-grow: 1;
}

.nav-section {
  margin-bottom: 24px;
}

.nav-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 12px;
  padding-left: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  margin-bottom: 4px;
  cursor: pointer;
}

.nav-item i {
  margin-right: 12px;
  color: var(--text-muted);
  font-size: 1rem;
  transition: color var(--transition-fast);
}

.nav-item:hover {
  background-color: var(--sidebar-hover);
  color: var(--primary);
}

.nav-item:hover i {
  color: var(--primary);
}

.nav-item.active {
  background-color: var(--primary);
  color: #fff;
}

.nav-item.active i {
  color: #fff;
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition-normal);
}

/* Header */
.top-header {
  /* height: var(--header-height); */
  min-height: 70px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-search {
  display: flex;
  align-items: center;
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 8px 16px;
  width: 300px;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.header-search:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.2);
  border-color: var(--primary);
}

.header-search i {
  color: var(--text-muted);
  margin-right: 10px;
}

.header-search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.icon-btn:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
}

/* Content Area */
.content-wrapper {
  padding: 40px;
  flex-grow: 1;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, #00d2ff 100%);
  border-radius: 24px;
  padding: 60px 40px;
  color: #ffffff;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

/* Abstract shapes for hero background */
.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.hero-section::before {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
}

.hero-section::after {
  width: 150px;
  height: 150px;
  bottom: -50px;
  left: 20%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin-bottom: 30px;
}

/* Cards Section */
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-main);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.glass-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: #EBF4FF;
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: transform var(--transition-fast);
}

.glass-card:hover .card-icon {
  transform: scale(1.1);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-main);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-grow: 1;
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.app-footer a {
  color: var(--primary);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-width: 260px;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-menu-btn {
    display: block;
    flex-shrink: 0;
  }

  .top-header {
    padding: 8px 16px;
    gap: 10px;
    flex-wrap: wrap;
    min-height: var(--header-height);
    height: auto;
    align-items: center;
  }

  .header-search {
    width: auto !important;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    order: 1;
  }

  .mobile-menu-btn {
    order: 0;
  }

  .header-actions {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 6px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
  }

  .content-wrapper {
    padding: 20px;
  }

  .hero-section {
    padding: 40px 20px;
  }
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* -------------------------------------
 *  Main Content Area Typography
 * ------------------------------------- */

.main-content-area h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-content-area h1 i {
  color: var(--primary);
  font-size: 1.75rem;
}

.main-content-area h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 40px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-content-area h2 i {
  color: var(--primary-light);
  font-size: 1.25rem;
}

.main-content-area p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151; /* slightly softer text for reading */
  margin-bottom: 20px;
}

.main-content-area strong.highlight-text {
  font-size: 1.2rem;
  color: var(--primary-dark);
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 5px;
}

.main-content-area ul, .main-content-area ol {
  margin-left: 24px;
  margin-bottom: 20px;
}

.main-content-area li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 8px;
}

.main-content-area a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast), text-decoration var(--transition-fast);
}

.main-content-area a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.main-content-area img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin: 16px 0;
}

.main-content-area ol.ordered-list {
  padding-left: 1.5rem;
  margin-bottom: 24px;
}

.main-content-area ol.ordered-list li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 12px;
}

.main-content-area ol.ordered-list li::marker {
  color: var(--primary);
  font-weight: 600;
}

.main-content-area h2 img.de_ctrlbullet {
  vertical-align: middle;
  margin-right: 8px;
  margin-top: -4px;
  border: none !important;
  width: 28px;
  height: 28px;
}

/* -------------------------------------
 *  Accordion Typography & Styling
 * ------------------------------------- */

details.faq-accordion {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

details.faq-accordion summary {
  padding: 16px 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  list-style: none; /* Hide default arrow in some browsers */
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-surface);
  transition: background-color var(--transition-fast);
}

details.faq-accordion summary::-webkit-details-marker {
  display: none; /* Hide default arrow in WebKit */
}

details.faq-accordion summary::after {
  content: '\f0d7'; /* FontAwesome angle-down */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

details.faq-accordion[open] summary {
  border-bottom: 1px solid var(--border-color);
  background-color: var(--sidebar-hover);
}

details.faq-accordion[open] summary::after {
  transform: rotate(180deg);
}

details.faq-accordion .details-body {
  padding: 20px;
  background-color: #FAFAFA;
}

details.faq-accordion .details-body h2 {
  font-size: 1.25rem;
  margin-top: 10px;
  margin-bottom: 10px;
  color: var(--primary);
}

details.faq-accordion .details-body p.faq-question {
  margin-bottom: 4px;
  margin-top: 24px;
  color: var(--primary-dark);
  display: flex;
  align-items: flex-start;
}

details.faq-accordion .details-body p.faq-question::before {
  content: '\f059'; /* fa-question-circle */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 8px;
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 2px;
}

details.faq-accordion .details-body p.faq-question:first-child {
  margin-top: 0;
}

details.faq-accordion .details-body p:not(.faq-question) {
  margin-bottom: 8px;
  padding-left: 26px;
}
