/* ------------------------- */
/* Google Fonts Import       */
/* ------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Roboto+Mono:wght@300;400;500&display=swap');

/* ------------------------- */
/* Loading Animation         */
/* ------------------------- */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1f6ba5, #0f1a26);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

body.dark-mode .loading-overlay,
body.dark-mode-initial .loading-overlay {
  background: linear-gradient(135deg, #144a72, #050a0f);
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  color: white;
  font-family: 'Inter', sans-serif;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loading-logo {
  width: 100px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.loading-text {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 500;
}

.loading-subtext {
  font-size: 14px;
  opacity: 0.8;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ------------------------- */
/* Interactive Elements      */
/* ------------------------- */

/* Hover Effects & Animations */
.interactive-card {
  background: linear-gradient(to right, #eaf2fb, #f5f6fa);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

body.dark-mode .interactive-card {
  background: linear-gradient(to right, #1a2533, #0a0f17);
}

.interactive-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s;
}

.interactive-card:hover::before {
  left: 100%;
}

.interactive-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Scroll-triggered Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.scroll-animate.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Interactive FAQ */
.faq-item {
  background: linear-gradient(to right, #eaf2fb, #f5f6fa);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-family: 'Inter', sans-serif;
}

body.dark-mode .faq-item {
  background: linear-gradient(to right, #1a2533, #0a0f17);
}

.faq-item:hover {
  border-color: #1f6ba5;
  transform: translateX(5px);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: background-color 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.faq-question:hover {
  background-color: rgba(31, 107, 165, 0.1);
}

body.dark-mode .faq-question:hover {
  background-color: rgba(31, 107, 165, 0.2);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease-out;
  font-family: 'Inter', sans-serif;
}

.faq-answer.open {
  padding: 0 20px 20px 20px;
  max-height: 500px;
}

.faq-toggle {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.faq-toggle.open {
  transform: rotate(45deg);
}

/* Software Preview */
.software-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
}

.software-preview:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.preview-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.software-preview:hover .preview-image {
  transform: scale(1.1);
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(31, 107, 165, 0.8));
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.software-preview:hover .preview-overlay {
  opacity: 1;
}

.preview-text {
  color: white;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

/* Feature Demonstration */
.feature-demo {
  background: linear-gradient(135deg, #1f6ba5, #0f1a26);
  padding: 40px;
  border-radius: 20px;
  color: white;
  text-align: center;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

body.dark-mode .feature-demo {
  background: linear-gradient(135deg, #144a72, #050a0f);
}

.demo-steps {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 30px;
  position: relative;
}

.demo-step {
  text-align: center;
  flex: 1;
  position: relative;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.demo-step.active {
  opacity: 1;
  transform: scale(1.1);
}

.step-number {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-weight: bold;
  font-size: 20px;
  transition: all 0.3s ease;
  font-family: 'Orbitron', monospace;
}

.demo-step.active .step-number {
  background: rgba(255,255,255,0.3);
  transform: scale(1.2);
}

.step-connector {
  position: absolute;
  top: 25px;
  height: 2px;
  background: rgba(255,255,255,0.3);
  z-index: 1;
}

.demo-controls {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.demo-button {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-family: 'Inter', sans-serif;
}

.demo-button:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

/* Animated Stats */
.animated-stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin: 40px 0;
}

.stat-item {
  opacity: 0;
  transform: translateY(30px);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #1f6ba5;
  margin-bottom: 10px;
  font-family: 'Orbitron', monospace;
}

body.dark-mode .stat-number {
  color: #3a8dcc;
}

.stat-label {
  font-size: 1.1rem;
  color: #666;
  font-family: 'Inter', sans-serif;
}

body.dark-mode .stat-label {
  color: #ccc;
}

/* ------------------------- */
/* Download Page Specific    */
/* ------------------------- */

/* Version Info */
.version-info {
  background: linear-gradient(135deg, #1f6ba5, #0f1a26);
  color: white;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 25px;
  font-family: 'Inter', sans-serif;
}

body.dark-mode .version-info {
  background: linear-gradient(135deg, #144a72, #050a0f);
}

.version-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  font-family: 'Orbitron', monospace;
  font-size: 0.9em;
}

.status-badge {
  display: inline-block;
  background: #4CAF50;
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.9em;
  font-family: 'Inter', sans-serif;
}

/* Download Card */
.download-card {
  position: relative;
  overflow: hidden;
}

.download-header {
  margin-bottom: 20px;
}

.download-icon {
  font-size: 1.2em;
  margin-right: 8px;
}

.download-meta {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(0,0,0,0.1);
  font-family: 'Inter', sans-serif;
}

body.dark-mode .download-meta {
  border-top-color: rgba(255,255,255,0.1);
}

.download-count {
  font-weight: 600;
  color: #1f6ba5;
  margin-bottom: 8px;
}

body.dark-mode .download-count {
  color: #3a8dcc;
}

.security-note {
  font-size: 0.9em;
  color: #4CAF50;
}

/* Progress Bar */
.download-progress {
  margin: 20px 0;
  transition: all 0.3s ease;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

body.dark-mode .progress-bar {
  background: rgba(255,255,255,0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #45a049);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

.progress-text {
  font-size: 0.9em;
  color: #666;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

body.dark-mode .progress-text {
  color: #ccc;
}

/* Requirements Grid */
.requirements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .requirements-grid {
    grid-template-columns: 1fr;
  }
}

/* Version Grid */
.version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.version-card {
  text-align: center;
  padding: 20px;
  font-family: 'Inter', sans-serif;
}

.version-card h4 {
  margin: 0 0 10px 0;
  color: #1f6ba5;
  font-family: 'Orbitron', monospace;
}

body.dark-mode .version-card h4 {
  color: #3a8dcc;
}

.version-card p {
  margin: 0 0 10px 0;
  font-size: 0.9em;
}

.version-card small {
  color: #666;
  display: block;
  margin-bottom: 15px;
  font-family: 'Roboto Mono', monospace;
}

body.dark-mode .version-card small {
  color: #999;
}

.download-alt {
  background: rgba(31, 107, 165, 0.1);
  border: 1px solid #1f6ba5;
  color: #1f6ba5;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9em;
  font-family: 'Inter', sans-serif;
}

body.dark-mode .download-alt {
  background: rgba(58, 141, 204, 0.1);
  border-color: #3a8dcc;
  color: #3a8dcc;
}

.download-alt:hover {
  background: #1f6ba5;
  color: white;
  transform: translateY(-2px);
}

body.dark-mode .download-alt:hover {
  background: #3a8dcc;
}

/* Changelog */
.changelog-section {
  margin: 30px 0;
}

.changelog-list {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  font-family: 'Inter', sans-serif;
}

.changelog-list li {
  padding: 5px 0;
  padding-left: 25px;
  position: relative;
}

.changelog-list li::before {
  content: "•";
  position: absolute;
  left: 10px;
  color: #4CAF50;
  font-weight: bold;
}

.view-full-changelog {
  background: none;
  border: 1px solid #1f6ba5;
  color: #1f6ba5;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9em;
  font-family: 'Inter', sans-serif;
}

body.dark-mode .view-full-changelog {
  border-color: #3a8dcc;
  color: #3a8dcc;
}

.view-full-changelog:hover {
  background: #1f6ba5;
  color: white;
}

body.dark-mode .view-full-changelog:hover {
  background: #3a8dcc;
  color: white;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  font-family: 'Inter', sans-serif;
}

body.dark-mode .modal-content {
  background: #1a2533;
  color: #e0e0e0;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.dark-mode .modal-header {
  border-bottom-color: rgba(255,255,255,0.1);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
  font-family: 'Inter', sans-serif;
}

body.dark-mode .modal-close {
  color: #ccc;
}

.modal-close:hover {
  color: #333;
}

body.dark-mode .modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 20px;
}

.changelog-version {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

body.dark-mode .changelog-version {
  border-bottom-color: rgba(255,255,255,0.1);
}

.changelog-version:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.changelog-version h4 {
  margin: 0 0 10px 0;
  color: #1f6ba5;
  font-family: 'Orbitron', monospace;
}

body.dark-mode .changelog-version h4 {
  color: #3a8dcc;
}

.changelog-version ul {
  margin: 0;
  padding-left: 20px;
}

.changelog-version li {
  margin-bottom: 5px;
  line-height: 1.4;
}

/* ------------------------- */
/* Top Thread / Header       */
/* ------------------------- */
.top-thread {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #1f6ba5, #0f1a26);
  padding: 8px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  z-index: 2000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  height: 40px;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body.dark-mode .top-thread,
body.dark-mode-initial .top-thread {
  background: linear-gradient(90deg, #144a72, #050a0f);
}

.thread-button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 20px;
  padding: 6px 15px;
  color: white;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(10px);
  font-family: 'Inter', sans-serif;
}

.thread-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.thread-button i {
  font-size: 16px;
}

/* ------------------------- */
/* Allmän styling            */
/* ------------------------- */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  display: flex;
  min-height: 100vh;
  background-color: #f5f6fa;
  color: #0f1a26;
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-top: 40px;
  line-height: 1.6;
}

/* Mörkt läge - lägg till i toppen för att förhindra flash */
body.dark-mode {
  background-color: #0a0f17;
  color: #e0e0e0;
}

/* ------------------------- */
/* Sidomeny                  */
/* ------------------------- */
.sidebar {
  width: 230px;
  background-color: #0f1a26;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  position: fixed;
  top: 40px;
  left: 0;
  height: calc(100vh - 40px);
  overflow-y: auto;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}

body.dark-mode .sidebar {
  background-color: #050a0f;
}

.sidebar .logo {
  width: 130px;
  margin-bottom: 15px;
}

.sidebar h2 {
  margin: 0 0 20px;
  font-size: 24px;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #fff, #3a8dcc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar nav {
  width: 100%;
}

.sidebar nav a {
  color: white;
  text-decoration: none;
  padding: 10px;
  margin: 5px 0;
  display: block;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.sidebar nav a:hover {
  background-color: #1f6ba5;
  transform: scale(1.05);
}

.sidebar nav a.active {
  background-color: #1f6ba5;
  font-weight: 600;
}

/* FIX: Sidebar länkar ska alltid vara vita i mörkt läge */
body.dark-mode .sidebar nav a {
  color: white !important;
}

body.dark-mode .sidebar nav a:hover {
  color: white !important;
}

body.dark-mode .sidebar nav a.active {
  color: white !important;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 28px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 15px;
  font-family: 'Inter', sans-serif;
}

/* ------------------------- */
/* Mörkt läge knapp - flytta till top-thread */
/* ------------------------- */
.theme-toggle {
  background: rgba(255, 255, 255, 0.2) !important;
  border: none;
  border-radius: 20px;
  padding: 6px 15px;
  color: white;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(10px);
  font-family: 'Inter', sans-serif;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px);
}

/* ------------------------- */
/* Innehåll                  */
/* ------------------------- */
.content {
  flex: 1;
  padding: 40px;
  margin-left: 270px;
  width: calc(100% - 270px);
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 0;
}

body.dark-mode .content {
  background-color: #0a0f17;
  color: #e0e0e0;
}

.content h1 {
  margin-top: 0;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 2.8rem;
  letter-spacing: -0.5px;
}

.content h2 {
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.content h3 {
  font-family: 'Orbitron', monospace;
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.content h4 {
  font-family: 'Orbitron', monospace;
  font-weight: 500;
  font-size: 1.2rem;
}

/* ------------------------- */
/* Hero-sektion              */
/* ------------------------- */
.hero {
  background: linear-gradient(135deg, #1f6ba5, #0f1a26);
  color: white;
  padding: 60px 40px;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
  transition: background 0.3s ease;
  margin-top: 0;
}

body.dark-mode .hero {
  background: linear-gradient(135deg, #144a72, #050a0f);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero-knapp */
.download-button.hero-button {
  background: linear-gradient(90deg, #1f6ba5, #3a8dcc);
  color: white;
  padding: 15px 30px;
  font-size: 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.download-button.hero-button:hover {
  background: linear-gradient(90deg, #144a72, #1f6ba5);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

/* ------------------------- */
/* Funktioner / Features     */
/* ------------------------- */
.features {
  background: linear-gradient(to right, #eaf2fb, #f5f6fa);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode .features {
  background: linear-gradient(to right, #1a2533, #0a0f17);
  color: #e0e0e0;
}

.features h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-family: 'Orbitron', monospace;
  font-weight: 600;
}

.features ul {
  list-style: none;
  padding-left: 0;
}

.features li {
  margin-bottom: 12px;
  font-size: 1.1rem;
  position: relative;
  padding-left: 30px;
  font-family: 'Inter', sans-serif;
}

.features li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #1f6ba5;
  font-weight: bold;
}

body.dark-mode .features li::before {
  color: #3a8dcc;
}

/* ------------------------- */
/* Nedladdningsknapp          */
/* ------------------------- */
.download-button {
  display: inline-block;
  padding: 15px 25px;
  font-size: 18px;
  color: white;
  background-color: #1f6ba5;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.download-button:hover {
  background-color: #144a72;
  transform: translateY(-2px);
}

/* ------------------------- */
/* Länkar i mörkt läge       */
/* ------------------------- */
body.dark-mode a {
  color: #3a8dcc;
}

body.dark-mode a:hover {
  color: #5ca6e0;
}

/* Undantag för download-knappar - ska alltid vara vita */
body.dark-mode .download-button {
  color: white !important;
}

body.dark-mode .download-button:hover {
  color: white !important;
}

body.dark-mode .download-button.hero-button {
  color: white !important;
}

body.dark-mode .download-button.hero-button:hover {
  color: white !important;
}

/* ------------------------- */
/* Kod-element               */
/* ------------------------- */
code {
  font-family: 'Roboto Mono', monospace;
  background: rgba(0,0,0,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

body.dark-mode code {
  background: rgba(255,255,255,0.1);
}

/* ------------------------- */
/* Animationer               */
/* ------------------------- */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------- */
/* Inline script styling för omedelbar applicering */
/* ------------------------- */
body.dark-mode-initial {
  background-color: #0a0f17;
  color: #e0e0e0;
  font-family: 'Inter', sans-serif;
}

body.dark-mode-initial .sidebar {
  background-color: #050a0f;
}

body.dark-mode-initial .content {
  background-color: #0a0f17;
  color: #e0e0e0;
}

body.dark-mode-initial .hero {
  background: linear-gradient(135deg, #144a72, #050a0f);
}

body.dark-mode-initial .features {
  background: linear-gradient(to right, #1a2533, #0a0f17);
}

body.dark-mode-initial .features li::before {
  color: #3a8dcc;
}

body.dark-mode-initial a {
  color: #3a8dcc;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* ------------------------- */
/* Responsivt: hamburgermeny  */
/* ------------------------- */
@media (max-width: 768px) {
  body {
    flex-direction: column;
    padding-top: 35px;
  }

  .top-thread {
    padding: 8px 15px;
    gap: 10px;
    height: 35px;
  }
  
  .thread-button {
    padding: 5px 12px;
    font-size: 12px;
  }
  
  .thread-button i {
    font-size: 14px;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    height: auto;
    position: relative;
    overflow-y: visible;
    top: 0;
    height: auto;
  }

  .sidebar nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #0f1a26;
    position: absolute;
    top: 60px; 
    left: 0;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
  }

  body.dark-mode .sidebar nav,
  body.dark-mode-initial .sidebar nav {
    background-color: #050a0f;
  }

  .sidebar nav.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .sidebar h2 {
    margin: 0;
    font-size: 20px;
  }

  .sidebar .logo {
    width: 60px;
  }

  .content {
    margin-left: 0;
    width: 100%;
    padding: 20px;
  }

  .hero {
    padding: 40px 20px;
    font-size: 90%;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .content h1 {
    font-size: 2.2rem;
  }

  .content h2 {
    font-size: 1.8rem;
  }

  /* Interactive elements responsive */
  .demo-steps {
    flex-direction: column;
    gap: 20px;
  }

  .step-connector {
    display: none;
  }

  .animated-stats {
    flex-direction: column;
    gap: 30px;
  }

  /* Download page responsive */
  .version-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    margin: 10px;
    max-height: 90vh;
  }
  
  .modal-header h3 {
    font-size: 1.2em;
  }

  /* Loading animation responsiv */
  .loading-spinner {
    width: 50px;
    height: 50px;
  }

  .loading-logo {
    width: 80px;
  }

  .loading-text {
    font-size: 16px;
  }

  .loading-subtext {
    font-size: 12px;
  }

  /* Dölj text på knappar på mycket små skärmar */
  @media (max-width: 480px) {
    .thread-button span {
      display: none;
    }
    
    .thread-button {
      padding: 8px;
      border-radius: 50%;
      width: 35px;
      height: 35px;
      justify-content: center;
    }

    .loading-spinner {
      width: 40px;
      height: 40px;
    }

    .loading-logo {
      width: 60px;
    }

    .loading-text {
      font-size: 14px;
    }

    .loading-subtext {
      font-size: 11px;
    }

    .demo-controls {
      flex-direction: column;
      align-items: center;
    }

    .requirements-grid {
      grid-template-columns: 1fr;
    }
  }
}