/* Home Dashboard Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary-color: #1f3b73;
  --primary-hover: #1b2f5b;
  --secondary-color: #0ea5e9;
  --accent: #0ea5e9;
  --bg-color: #0f172a;
  --bg-color-2: #1f2937;
  --card-bg: #111827;
  --text-primary: #f9fafb;
  --text-secondary: #e5e7eb;
  --border-color: rgba(255, 255, 255, 0.15);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-color-2) 100%);
  min-height: 100vh;
  padding: 24px;
  color: var(--text-primary);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 60%),
    url('icons/LuminoTec%20Logo.png') center/ min(80vw, 800px) no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1000px;
  margin: 20px auto;
  position: relative;
  z-index: 1;
}

/* Circular icon buttons in top right */
.icon-buttons {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  z-index: 10;
}

/* Circular icon buttons in top left */
.icon-buttons-left {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 12px;
  z-index: 10;
}

.icon-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.icon-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.icon-btn:active {
  transform: translateY(0) scale(0.98);
}

.icon-btn.help {
  font-weight: bold;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.icon-btn.video {
  font-size: 20px;
}

.icon-btn.settings,
.icon-btn.activate,
.icon-btn.feedback {
  padding: 0;
}

.icon-btn img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

header {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}

header h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  font-family: "Segoe UI", "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  margin: 0;
}

/* Brand block */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.logo {
  max-height: 140px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
  display: block;
  margin: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Navigation buttons */
.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 28px 0;
}

.nav a {
  text-decoration: none;
}

.btn {
  padding: 11px 24px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 260px;
  height: 260px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(31, 59, 115, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 59, 115, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(75, 85, 99, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(75, 85, 99, 0.4);
}

/* Main dashboard card */
.card {
  background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #374151 100%);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  max-width: 960px;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

/* Feature links */
.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.link {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.link:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.link h3 {
  margin: 0 0 8px 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}

.link p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.6;
}

.footer {
  text-align: center;
  color: #e5e7eb;
  margin-top: 28px;
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
}

/* First-run modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.first-run-content {
  width: min(92vw, 820px);
  max-width: 820px;
  height: auto;
  max-height: 90vh;
  padding: 0;
  background: #0b1220;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

#first-run-modal {
  background: rgba(0, 0, 0, 0.72);
}

#first-run-iframe {
  display: block;
  width: 100%;
  height: 80vh;
  max-height: 80vh;
  border: 0;
  background: #0f172a;
}

@media (max-width: 768px) {
  body {
    padding: 16px;
  }
  .card {
    padding: 24px;
  }
  .nav {
    margin: 20px 0;
  }
  .icon-buttons {
    top: 20px;
    right: 12px;
    gap: 8px;
  }
  .icon-buttons-left {
    top: 20px;
    left: 12px;
    gap: 8px;
  }
  .icon-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  .icon-btn.video,
  .icon-btn.settings,
  .icon-btn.feedback {
    font-size: 18px;
  }
}

/* ─── Settings Modal ─────────────────────────────────── */
.settings-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.settings-overlay.show {
  display: flex;
}

.settings-panel {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 28px;
  width: min(90vw, 420px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.settings-header h2 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.settings-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.settings-close-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.settings-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.settings-option:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateX(4px);
}

.settings-option-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-option-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.settings-option-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.settings-option-text strong {
  font-size: 1rem;
  font-weight: 700;
}

.settings-option-text span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.settings-option-arrow {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}
