:root {
  --body-font: "Segoe UI", sans-serif;
  --theme-header-background-color: #1e1e1e;
  --theme-font-color: #f1f1f1;
  --theme-background-color: #121212;
  --primary-color: #6f8df6;
  --note-background: #2a2a2a;
  --note-border: #6f8df6;
}

body {
  font-family: var(--body-font);
  font-feature-settings: "fina" on, "init" on;
  color: var(--theme-font-color);
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
  background-color: var(--theme-background-color);
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--theme-header-background-color);
  box-shadow: rgba(255, 255, 255, 0.05) 0px 4px 5px 0px,
    rgba(255, 255, 255, 0.03) 0px 1px 10px 0px,
    rgba(255, 255, 255, 0.08) 0px 2px 4px -1px;
  padding-left: 10px;
  border-radius: 0;
}

.navbar-brand {
  margin-left: 0px;
}

.navbar-brand img {
  height: 40px;
  margin-right: 10px;
}

.container {
  margin-top: 80px;
}

/* Card (white in light theme) adapted for dark */
.delete-card {
  margin-top: 60px;
  padding: 20px;
  max-width: 700px;
  margin: 40px auto;
  background-color: #1f1f1f;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.05);
}

.delete-title {
  background-color: transparent;
  border-bottom: none;
  padding-bottom: 0;
}

.header img {
  max-width: 200px;
  height: auto;
  margin-bottom: 10px;
}

h1 {
  color: var(--primary-color);
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 600;
}

p {
  font-size: 16px;
  margin-bottom: 20px;
}

ol {
  margin: 20px 0;
  padding-left: 20px;
  list-style-type: decimal;
}

li {
  margin-bottom: 15px;
  font-size: 16px;
}

/* Note Box */
.note {
  background: var(--note-background);
  border-left: 5px solid var(--note-border);
  padding: 15px;
  margin-top: 30px;
  border-radius: 8px;
  font-size: 14px;
  color: #ccc;
}

.note strong {
  font-weight: 600;
  color: #fff;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
  .header img {
    max-width: 120px;
    margin: 0 auto 20px;
    display: block;
  }
}

.app-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 20px 0;
  flex-wrap: wrap;
}

.app-header-content {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

@media (max-width: 767px) {
  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .app-header-content {
    width: 100%;
    flex-wrap: nowrap;
  }
  .download-btn {
    margin-top: 15px;
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .app-header {
    flex-direction: row;
    align-items: center;
  }
  .download-btn {
    margin-left: auto;
  }
}

.app-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  margin-right: 20px;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

.app-popup {
  display: none;
  position: fixed;
  top: 60px;
  z-index: 999;
  background-color: rgba(30, 30, 30, 0.95);
  box-shadow: rgba(255, 255, 255, 0.1) 0px 4px 5px 0px;
  padding: 15px 20px;
  border-radius: 10px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(-20px);
  color: #f1f1f1;
}

@media (min-width: 992px) {
  .app-popup {
    width: calc(75% - 180px);
    left: calc(12.5% - 75px);
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .app-popup {
    width: calc(100% - 280px);
    left: 140px;
  }
}

@media (max-width: 767px) {
  .app-popup {
    width: calc(100% - 20px);
    left: 10px;
  }
}

.app-popup.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.app-popup .app-icon {
  width: 50px;
  height: 50px;
  margin-left: 10px;
  margin-right: 10px;
}

.app-popup h2 {
  font-size: 1.25rem;
  margin: 0;
  color: #ffffff;
  flex-grow: 1;
}

.btn-download {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-download:hover {
  background-color: #9abfff;
  color: #ffffff;
  text-decoration: none;
}

.section-card {
  background-color: #1f1f1f;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(255, 255, 255, 0.05);
  padding: 20px;
  margin-bottom: 20px;
  color: #f1f1f1;
}

.section-card strong {
  font-weight: bold;
  color: #ffffff;
}

.section-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
  border-bottom: 2px solid #444;
  padding-bottom: 5px;
  font-family: var(--body-font);
  color: var(--primary-color);
}

.section-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #ccc;
}

.section-card i {
  color: var(--primary-color);
  margin-right: 10px;
}

.section-card a {
  text-decoration: none;
  color: var(--primary-color);
}

.section-card a:hover {
  text-decoration: underline;
}

.btn-light {
  background-color: rgba(255, 255, 255, 0.15);
  border: none;
  padding: 5px;
  border-radius: 50%;
  color: #fff;
}

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

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

a:hover {
  color: #9abfff;
}

.content {
  margin-left: 35px !important;
}

.icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
  filter: brightness(0) invert(1); /* makes dark icons white */
}

@media (max-width: 768px) {
  .app-popup {
    left: 0;
    width: calc(100% - 20px);
    border-radius: 10px;
  }
}

footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.8em;
  color: #aaa; /* lighter for dark background */
}

.people-view-card {
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  transition: box-shadow 0.2s ease-in-out;
  cursor: pointer;
  background-color: #1f1f1f;
  box-shadow: 0 1px 3px rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  text-decoration: none;
  color: #f1f1f1;
}

.people-view-card:hover {
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.08);
}

.people-view-card img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  border-radius: 8px;
}

.people-view-details {
  height: 50px;
  margin-left: 12px;
}

.app-category {
  font-size: 0.85rem;
  color: #ccc;
}

.fixed-container {
  position: sticky;
  top: 90px;
  background-color: #2a2a2a;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(255, 255, 255, 0.05),
    0 1px 2px rgba(255, 255, 255, 0.04);
  margin-top: 140px;
  color: #f1f1f1;
}

@media (max-width: 992px) {
  .fixed-container {
    position: static;
    margin-top: 0px;
    margin-bottom: 20px;
    width: 100%;
  }
}

/* Download Modal Styles */
.download-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.download-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.download-modal {
  background: linear-gradient(145deg, #0a0a0a 0%, #1a1a1a 100%);
  border: 1px solid rgba(119, 190, 255, 0.2);
  border-radius: 20px;
  padding: 24px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(119, 190, 255, 0.15);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.download-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: #d4d6d7;
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.download-modal-close:hover {
  background: rgba(119, 190, 255, 0.1);
  color: #77beff;
  transform: rotate(90deg);
}

.download-modal-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(119, 190, 255, 0.15);
}

.download-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(119, 190, 255, 0.2);
}

.download-modal-title {
  font-size: 26px;
  color: #ffffff;
  margin: 0 0 10px;
  background: linear-gradient(60deg, #3663d8 -20%, #77beff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.download-modal-subtitle {
  font-size: 14px;
  color: #d4d6d7;
  margin: 0;
}

.download-modal-content {
  margin-bottom: 25px;
}

.download-platform {
  background: rgba(119, 190, 255, 0.05);
  border: 1px solid rgba(119, 190, 255, 0.15);
  border-radius: 15px;
  padding: 16px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.download-platform:hover {
  background: rgba(119, 190, 255, 0.08);
  border-color: rgba(119, 190, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(119, 190, 255, 0.1);
}

.download-platform-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.download-platform-icon {
  font-size: 26px;
  color: #77beff;
}

.download-platform-name {
  font-size: 18px;
  color: #ffffff;
  margin: 0;
}

.download-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
}

.download-option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: linear-gradient(135deg, #3663d8 0%, #77beff 100%);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.download-option-btn:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(119, 190, 255, 0.4);
  color: #ffffff;
}

.download-option-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.download-option-label {
  font-weight: 600;
  font-size: 16px;
}

.download-option-size {
  font-size: 12px;
  opacity: 0.9;
}

.download-option-icon {
  font-size: 20px;
}

.download-instructions {
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid #77beff;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
}

.download-instructions-title {
  font-weight: 600;
  color: #77beff;
  margin-bottom: 10px;
  font-size: 14px;
}

.download-instructions code {
  display: block;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 15px;
  border-radius: 5px;
  color: #77beff;
  font-family: "Courier New", monospace;
  font-size: 13px;
  margin: 5px 0;
  word-break: break-all;
}

.download-modal-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(119, 190, 255, 0.15);
}

.download-modal-note {
  font-size: 14px;
  color: #d4d6d7;
  margin: 0 0 15px;
}

.download-modal-support {
  font-size: 14px;
  color: #d4d6d7;
}

.download-modal-support a {
  color: #77beff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.download-modal-support a:hover {
  color: #3663d8;
}

/* Responsive Design */
@media (max-width: 767px) {
  .download-modal {
    padding: 30px 20px;
    width: 95%;
  }

  .download-modal-title {
    font-size: 26px;
  }

  .download-modal-icon {
    width: 60px;
    height: 60px;
  }

  .download-platform {
    padding: 20px;
  }

  .download-platform-name {
    font-size: 20px;
  }

  .download-option-btn {
    padding: 12px 15px;
  }

  .download-option-label {
    font-size: 14px;
  }

  .download-instructions code {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* Custom Scrollbar for Modal */
.download-modal::-webkit-scrollbar {
  width: 8px;
}

.download-modal::-webkit-scrollbar-track {
  background: rgba(119, 190, 255, 0.05);
  border-radius: 10px;
}

.download-modal::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3663d8 0%, #77beff 100%);
  border-radius: 10px;
}

.download-modal::-webkit-scrollbar-thumb:hover {
  background: #77beff;
}
