/* 
========================================================================
   Flowhub Digital Knowledge Base Stylesheet (style.css)
   Design-Sprache: Lexend Font, Cyan- und Violett-Akzente, Glassmorphism
========================================================================
*/

/* --- Theme Variablen --- */
:root {
  /* Branding Colors */
  --primary-cyan: #1bdddd;
  --primary-purple: #9d00ff;
  --primary-blue: #5c6fee;
  
  --accent-gradient: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 100%);
  --accent-gradient-hover: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-cyan) 100%);
  --text-gradient: linear-gradient(135deg, var(--primary-cyan) 30%, var(--primary-purple) 100%);

  /* Light Theme Colors (Default) */
  --bg-color: #f6f8fa;
  --card-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.8);
  --border-color: #e2e8f0;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --hero-title-color: #ffffff;
  --hero-sub-color: #cbd5e1;
  --sidebar-hover-bg: #f1f5f9;
  
  /* Status Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --success-bg: rgba(16, 185, 129, 0.08);
  --warning-bg: rgba(245, 158, 11, 0.08);
  --danger-bg: rgba(239, 68, 68, 0.08);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 10px 30px -10px rgba(27, 221, 221, 0.25);
  --shadow-glow-purple: 0 10px 30px -10px rgba(157, 0, 255, 0.25);
  
  /* Radii & Transitions */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Dark Theme Overrides --- */
body.dark-theme {
  --primary-purple: #b336ff;
  --bg-color: #0b0f19;
  --card-bg: #121826;
  --header-bg: rgba(18, 24, 38, 0.8);
  --border-color: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --sidebar-hover-bg: #1e293b;

  --success-bg: rgba(16, 185, 129, 0.15);
  --warning-bg: rgba(245, 158, 11, 0.15);
  --danger-bg: rgba(239, 68, 68, 0.15);

  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Lexend', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  overflow-x: hidden;
}

/* --- Containers --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Glassmorphism Helpers --- */
.glass-nav {
  background: transparent;
  border-bottom: none;
}

.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
}

body.dark-theme .glass-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.gradient-text {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.text-accent {
  color: var(--primary-cyan);
}

/* --- Header Section --- */
#main-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.logo-link:hover {
  opacity: 0.85;
}

.main-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

/* Header Center Title */
.header-center-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  z-index: 10;
}

.center-title-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.center-title-link:hover {
  transform: scale(1.03);
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.text-purple {
  color: var(--primary-purple);
}

#header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-external {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.nav-external:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
}

/* --- Theme Toggle Button --- */
.theme-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.theme-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  transform: translateY(-2px);
}

.theme-btn .sun-icon {
  display: block;
}
.theme-btn .moon-icon {
  display: none;
}

body.dark-theme .theme-btn .sun-icon {
  display: none;
}
body.dark-theme .theme-btn .moon-icon {
  display: block;
}

@media (max-width: 640px) {
  .header-center-title .logo-text {
    font-size: 17px;
  }
  .nav-external span {
    display: none;
  }
  .nav-external {
    padding: 8px 10px;
  }
  #header-nav {
    gap: 10px;
  }
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 560px;
  padding: 0 0 70px 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  color: #ffffff;
  z-index: 20;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 10s ease;
  z-index: 1;
}

.hero-section:hover .hero-bg {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.8) 100%);
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 24px 0;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--hero-title-color);
  animation: fadeInDown 0.8s var(--transition-bounce) both;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--hero-sub-color);
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s 0.2s var(--transition-bounce) both;
}

.hero-widgets {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  width: 100%;
  animation: fadeInUp 0.8s 0.4s var(--transition-bounce) both;
}

@media (min-width: 768px) {
  .hero-widgets {
    flex-direction: row;
    align-items: stretch;
  }
}

/* --- Search Bar --- */
.search-wrapper {
  position: relative;
  z-index: 30;
  width: 100%;
  max-width: 580px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  padding: 4px 8px 4px 18px;
  transition: var(--transition-smooth);
}

.search-wrapper:focus-within {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 20px 0 rgba(27, 221, 221, 0.35);
  transform: translateY(-2px);
}

.search-icon-inside {
  display: flex;
  align-items: center;
  color: #94a3b8;
  margin-right: 12px;
}

.search-wrapper input {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-family: inherit;
  font-weight: 400;
  width: 100%;
  height: 52px;
  outline: none;
}

.search-wrapper input::placeholder {
  color: #cbd5e1;
  opacity: 0.8;
}

.clear-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #cbd5e1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: var(--transition-smooth);
}

.clear-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* --- Search Dropdown --- */
.search-dropdown-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  max-height: 420px;
  overflow-y: auto;
  border-radius: var(--radius-md);
  z-index: 1000;
  text-align: left;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(27, 221, 221, 0.15);
}

.search-result-item {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: #ffffff;
  text-decoration: none;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.search-result-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.search-result-snippet {
  font-size: 12px;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-no-results {
  padding: 16px;
  text-align: center;
  color: #cbd5e1;
  font-size: 14px;
}

/* --- Server Digit Config Card --- */
.server-config-card {
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 20px;
  text-align: left;
  width: 100%;
  max-width: 280px;
  transition: var(--transition-smooth);
}

.server-config-card:focus-within {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 20px 0 rgba(27, 221, 221, 0.35);
  transform: translateY(-2px);
}

.config-label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-cyan);
  display: inline-block;
  box-shadow: 0 0 8px var(--primary-cyan);
}

.config-input-wrapper {
  display: flex;
  align-items: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .config-input-wrapper {
  background: rgba(15, 23, 42, 0.5);
}

.config-prefix {
  color: #cbd5e1;
  opacity: 0.8;
}

.config-input-wrapper input {
  background: none;
  border: none;
  color: var(--primary-cyan);
  font-size: 16px;
  font-family: inherit;
  font-weight: 700;
  width: 44px;
  text-align: center;
  outline: none;
  padding: 0;
  margin: 0 2px;
}

/* Hide number inputs spinners */
.config-input-wrapper input::-webkit-outer-spin-button,
.config-input-wrapper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.config-input-wrapper input[type=number] {
  -moz-appearance: textfield;
}

.config-suffix {
  color: #cbd5e1;
  opacity: 0.8;
}

.config-hint {
  font-size: 10px;
  color: #cbd5e1;
  opacity: 0.6;
  margin-top: 4px;
}

/* --- Main Layout Section --- */
#main-content {
  flex-grow: 1;
  padding-top: 50px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

.view-section {
  display: block;
}

/* --- Home View Dashboard --- */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 32px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 300;
}

.category-divider-title {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Category Cards --- */
.kb-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.kb-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-cyan);
  box-shadow: var(--shadow-glow);
}

body.dark-theme .kb-card:hover {
  box-shadow: 0 10px 30px -10px rgba(27, 221, 221, 0.15);
}

/* Custom icons coloring */
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.shield-color { background: rgba(16, 185, 129, 0.1); color: var(--color-success); }
.server-color { background: rgba(92, 111, 238, 0.1); color: var(--primary-blue); }
.outlook-color { background: rgba(27, 221, 221, 0.1); color: var(--primary-cyan); }
.iphone-color { background: rgba(157, 0, 255, 0.1); color: var(--primary-purple); }
.mac-color { background: rgba(92, 111, 238, 0.1); color: var(--primary-blue); }
.thunderbird-color { background: rgba(245, 158, 11, 0.1); color: var(--color-warning); }
.android-color { background: rgba(16, 185, 129, 0.1); color: var(--color-success); }
.webmail-color { background: rgba(27, 221, 221, 0.1); color: var(--primary-cyan); }
.danger-color { background: rgba(239, 68, 68, 0.1); color: var(--color-danger); }
.support-color { background: rgba(157, 0, 255, 0.1); color: var(--primary-purple); }

.kb-card:hover .card-icon {
  transform: scale(1.1) rotate(2deg);
}

.kb-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.kb-card:hover h4 {
  color: var(--primary-cyan);
}

.kb-card p {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 300;
  flex-grow: 1;
  margin-bottom: 20px;
}

.card-link-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-smooth);
}

.kb-card:hover .card-link-text {
  gap: 8px;
}

/* --- Article Detail View Layout --- */
.article-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--sidebar-hover-bg);
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
  transform: translateX(-2px);
}

.server-indicator-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-success);
  display: inline-block;
  box-shadow: 0 0 6px var(--color-success);
}

.indicator-dot.blinking {
  animation: indicatorBlink 1.5s infinite ease-in-out;
}

/* Workspace Grid */
.workspace-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
}

@media (min-width: 1024px) {
  .workspace-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Sidebar Nav */
.sidebar-nav-container {
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .sidebar-nav-container {
    width: 280px;
  }
}

.sidebar-sticky {
  position: static;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

@media (min-width: 1024px) {
  .sidebar-sticky {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }
}

.sidebar-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-header h4 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.sidebar-category-group {
  margin-bottom: 20px;
}

.sidebar-category-group:last-child {
  margin-bottom: 0;
}

.sidebar-cat-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  display: block;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-link {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 400;
  transition: var(--transition-smooth);
}

.sidebar-link:hover {
  background-color: var(--sidebar-hover-bg);
  color: var(--primary-cyan);
  transform: translateX(4px);
}

.sidebar-link.active {
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px 0 rgba(27, 221, 221, 0.25);
}

/* Mobile Sidebar Toggle Button */
.mobile-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 20px rgba(157, 0, 255, 0.4);
  cursor: pointer;
  z-index: 90;
  transition: var(--transition-bounce);
}

.mobile-toggle-btn:hover {
  transform: scale(1.1) rotate(90deg);
  background: var(--accent-gradient-hover);
}

@media (min-width: 1024px) {
  .mobile-toggle-btn {
    display: none;
  }
}

/* Main Article Content Card */
.article-content-card {
  flex-grow: 1;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .article-content-card {
    padding: 50px;
  }
}

#article-title-heading {
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  #article-title-heading {
    font-size: 36px;
  }
}

.article-meta-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.category-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--sidebar-hover-bg);
  color: var(--primary-cyan);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.read-time-badge {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-divider {
  border: 0;
  height: 1px;
  background-color: var(--border-color);
  margin-bottom: 30px;
}

/* --- Extracted Article Content Formatting --- */
.article-body-text {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 300;
}

.article-body-text p {
  margin-bottom: 20px;
}

.article-body-text strong {
  font-weight: 600;
}

.article-body-text h3 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  color: var(--text-primary);
}

/* Custom Widgets in Content */
.welcome-banner {
  background: var(--sidebar-hover-bg);
  border-left: 4px solid var(--primary-cyan);
  padding: 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 30px;
}

.welcome-banner h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-primary);
  border-bottom: none;
  margin-top: 0;
  padding-bottom: 0;
}

.welcome-banner p {
  margin-bottom: 0;
  font-size: 15px;
  color: var(--text-secondary);
}

/* Card Highlights (Banners) */
.card-highlight {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  border: 1px solid transparent;
}

.box-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.box-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.box-content ul, .box-content ol {
  margin-left: 20px;
  margin-top: 10px;
}

.box-content li {
  margin-bottom: 8px;
}

.box-content li:last-child {
  margin-bottom: 0;
}

/* Box Color Variants */
.warning-box {
  background-color: var(--warning-bg);
  border-color: rgba(245, 158, 11, 0.2);
}
.warning-box .box-icon {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
}

.info-box {
  background-color: rgba(27, 221, 221, 0.05);
  border-color: rgba(27, 221, 221, 0.2);
}
.info-box .box-icon {
  background-color: rgba(27, 221, 221, 0.15);
  color: var(--primary-cyan);
}

.danger-box {
  background-color: var(--danger-bg);
  border-color: rgba(239, 68, 68, 0.2);
}
.danger-box .box-icon {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
}

.tip-badge {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 16px;
  background-color: var(--card-bg);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
  border: 1px solid var(--border-color);
}

/* Settings Tables */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin: 30px 0;
}

.settings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.settings-table th {
  background-color: var(--sidebar-hover-bg);
  color: var(--text-primary);
  font-weight: 600;
  padding: 16px 20px;
  border-bottom: 2px solid var(--border-color);
}

.settings-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.settings-table tr:last-child td {
  border-bottom: none;
}

.settings-table tr:hover td {
  background-color: rgba(27, 221, 221, 0.03);
}

code {
  font-family: 'Courier New', Courier, monospace;
  background-color: var(--sidebar-hover-bg);
  color: var(--primary-cyan);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
}

kbd {
  font-family: inherit;
  background-color: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
  vertical-align: middle;
}

.template-box {
  background-color: var(--sidebar-hover-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
  transition: var(--transition-smooth);
}

.template-box:hover {
  border-color: rgba(27, 221, 221, 0.3);
}

/* Badge classes */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}
.badge.cyan { background-color: rgba(27, 221, 221, 0.15); color: var(--primary-cyan); }
.badge.purple { background-color: rgba(157, 0, 255, 0.15); color: var(--primary-purple); }
.badge.gray { background-color: var(--sidebar-hover-bg); color: var(--text-secondary); }

/* --- Step List --- */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px 0;
}

.step-card {
  display: flex;
  gap: 20px;
  background-color: var(--sidebar-hover-bg);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.step-card:hover {
  border-color: rgba(27, 221, 221, 0.3);
  transform: translateY(-2px);
  background-color: var(--card-bg);
  box-shadow: var(--shadow-md);
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(27, 221, 221, 0.25);
}

.step-text {
  flex-grow: 1;
}

.step-text p {
  margin-bottom: 0;
  font-size: 15px;
}

.step-text ul {
  margin-top: 10px;
  margin-left: 20px;
}

.step-text li {
  margin-bottom: 6px;
  font-size: 14px;
}

/* --- Webmail CTA --- */
.webmail-cta {
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  padding: 30px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0;
  box-shadow: 0 10px 25px -5px rgba(157, 0, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.webmail-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.cta-content h4 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #ffffff;
}

.cta-content p {
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
}

.webmail-link {
  display: inline-block;
  background-color: #ffffff;
  color: var(--primary-purple);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition-bounce);
}

.webmail-link:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-globe-icon {
  color: rgba(255, 255, 255, 0.25);
  animation: globeRotate 20s linear infinite;
  display: none;
}

@media (min-width: 640px) {
  .cta-globe-icon {
    display: block;
  }
}

/* --- Troubleshooting Grid --- */
.trouble-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 30px 0;
}

@media (min-width: 768px) {
  .trouble-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trouble-card {
  border: 1px solid var(--border-color);
  background-color: var(--sidebar-hover-bg);
  padding: 24px;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.trouble-card:hover {
  border-color: var(--primary-cyan);
  background-color: var(--card-bg);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.trouble-card h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.trouble-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* --- Support Hero Section --- */
.support-hero {
  background: var(--sidebar-hover-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  margin: 30px 0;
}

.support-hero h3 {
  font-size: 22px;
  border-bottom: none;
  margin-top: 0;
  padding-bottom: 0;
  margin-bottom: 12px;
}

.support-hero p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 680px;
  margin: 0 auto 30px auto;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-smooth);
}

.contact-card:hover {
  border-color: var(--primary-cyan);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

body.dark-theme .contact-card:hover {
  box-shadow: 0 10px 30px -10px rgba(27, 221, 221, 0.15);
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(27, 221, 221, 0.08);
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: var(--transition-bounce);
}

.contact-card:hover .contact-icon {
  background: var(--accent-gradient);
  color: #ffffff;
  transform: scale(1.1) rotate(5deg);
}

.contact-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.contact-action {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-cyan);
  transition: var(--transition-smooth);
}

.contact-card:hover .contact-action {
  transform: translateX(4px);
}

.support-footer-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Footer --- */
#app-footer {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px 0;
  margin-top: auto;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 2fr 1fr;
  }
}

.footer-brand {
  max-width: 420px;
}

.footer-logo {
  height: 34px;
  margin-bottom: 20px;
  object-fit: contain;
}

.footer-brand p {
  font-weight: 300;
  line-height: 1.5;
}

.footer-links-group h5 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-group a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links-group a:hover {
  color: var(--primary-cyan);
}

.footer-copyright {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-copyright a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-copyright a:hover {
  color: var(--primary-cyan);
}

/* --- Mobile Sidebar Overlay --- */
@media (max-width: 1023px) {
  .sidebar-nav-container {
    position: fixed;
    top: 0;
    left: -100%;
    width: 290px;
    height: 100vh;
    z-index: 95;
    background-color: var(--card-bg);
    box-shadow: 20px 0 40px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    overflow-y: auto;
  }
  
  .sidebar-nav-container.open {
    left: 0;
  }
  
  .sidebar-sticky {
    border: none;
    border-radius: 0;
    padding: 30px 20px 80px 20px;
    height: 100%;
  }

  .sidebar-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 94;
    display: none;
  }

  .sidebar-nav-backdrop.open {
    display: block;
  }
}

/* --- Keyframe Animations --- */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes globeRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes indicatorBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}
