/* ================ VARIABLES ================ */
:root {
  --primary-color: #0A2540;     /* Deep Blue */
  --accent-color: #00F5D4;      /* Electric Teal/Cyan */
  --light-bg: #f9fbfd;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --border-radius: 12px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* ================ RESET & TYPOGRAPHY ================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ================ HEADER ================ */
.header {
  background-color: var(--text-light);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-menu a {
  font-weight: 500;
}

.cta-btn {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* ================ BUTTONS ================ */
.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  margin-bottom: 15px;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.btn-secondary:hover {
  background-color: rgba(0, 245, 212, 0.1);
}

.full-width {
  width: 100%;
}

/* ================ FORMS ================ */
.form-card {
  max-width: 450px;
  margin: 3rem auto;
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.2);
}

.error {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
}

.forgot-link {
  display: block;
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--accent-color);
}

.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

/* ================ HERO ================ */
.hero {
  background: linear-gradient(135deg, var(--primary-color), #1a3a5f);
  color: var(--text-light);
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ================ FEATURES ================ */
.features {
  padding: 4rem 0;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

/* ================ SPEED DEMO ================ */
.speed-demo {
  padding: 4rem 0;
  text-align: center;
}

.stat-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.stat {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  display: block;
}

/* ================ DASHBOARD ================ */
.dashboard {
  display: flex;
  min-height: calc(100vh - 120px);
}

.sidebar {
  width: 250px;
  background: white;
  padding: 2rem 1rem;
  box-shadow: var(--box-shadow);
}

.device-list {
  list-style: none;
}

.device-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.main-content {
  flex: 1;
  padding: 2rem;
}

.upload-area {
  text-align: center;
  margin-bottom: 2rem;
}

.transfer-history {
  list-style: none;
}

.transfer-history li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

/* ================ SETTINGS ================ */
.settings-page {
  display: flex;
}

.settings-sidebar {
  width: 200px;
  background: white;
  padding: 2rem 1rem;
  box-shadow: var(--box-shadow);
}

.settings-sidebar a {
  display: block;
  padding: 0.75rem 0;
  color: var(--text-dark);
}

.settings-sidebar a.active,
.settings-sidebar a:hover {
  color: var(--accent-color);
  font-weight: 600;
}

.settings-content {
  flex: 1;
  padding: 2rem;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

/* ================ FOOTER ================ */
.footer {
  background: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  padding: 100px 0 90px;
  margin-top: 0rem;
}
/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 70px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--soft-purple);
}

.footer-section p {
    margin-bottom: 20px;
    color: #cbd5e1;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--soft-purple);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--soft-purple);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #2d3748;
    color: var(--text-light);
}

/* ================ USER MENU (DASHBOARD/SETTINGS) ================ */
.user-menu {
  position: relative;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  width: 160px;
  display: none;
  flex-direction: column;
}

.user-menu:hover .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  padding: 0.75rem 1rem;
  color: var(--text-dark) !important;
}

/* ================ RESPONSIVE ================ */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .dashboard,
  .settings-page {
    flex-direction: column;
  }

  .sidebar,
  .settings-sidebar {
    width: 100%;
  }

  .stat-container {
    flex-direction: column;
    gap: 2rem;
  }
}

/* ================ SETTINGS ENHANCEMENTS ================ */
.section-desc {
  color: #666;
  margin-bottom: 1.5rem;
}

.help-text {
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.25rem;
}

.form-select,
.radio-group,
.toggle-group {
  margin-top: 0.5rem;
}

.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  background: white;
  font-family: inherit;
}

.radio-group label {
  display: block;
  margin: 0.5rem 0;
  cursor: pointer;
}

/* Custom Toggle Switch */
.toggle-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0.75rem 0;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  background: #ccc;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle:before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: var(--transition);
}

#enable2fa:checked + .toggle,
#notifComplete:checked + .toggle,
#notifError:checked + .toggle {
  background: var(--accent-color);
}

#enable2fa:checked + .toggle:before,
#notifComplete:checked + .toggle:before,
#notifError:checked + .toggle:before {
  transform: translateX(24px);
}

.toggle-label {
  font-weight: 500;
}

.security-actions {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.btn-danger {
  background-color: #e74c3c;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn-danger:hover {
  background-color: #c0392b;
}
.standalone-settings {
  padding: 2rem 0;
}
.standalone-settings .container {
  max-width: 700px;
}

/* ================ LEGAL PAGES (PRIVACY & TERMS) ================ */
.legal-page {
  padding: 4rem 0;
  line-height: 1.7;
}

.legal-page h1 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 2.25rem;
}

.legal-page h2 {
  margin: 2rem 0 1rem;
  color: var(--primary-color);
  font-size: 1.375rem;
}

.legal-page p,
.legal-page li {
  margin-bottom: 1.25rem;
  color: #333;
}

.legal-page ul,
.legal-page ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.legal-page em {
  color: #666;
}

/* ================ CONTACT PAGE ================ */
.contact-page {
  padding: 4rem 0;
}

.contact-container {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.contact-info h2,
.contact-form h2 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 1.75rem;
}

.contact-details p {
  display: flex;
  gap: 0.75rem;
  margin: 0.75rem 0;
  align-items: flex-start;
}

.contact-details a {
  color: var(--accent-color);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Contact Form */
#contactForm .form-group {
  margin-bottom: 1.25rem;
}

#contactForm input,
#contactForm select,
#contactForm textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
}

#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.2);
}

#contactForm textarea {
  resize: vertical;
  min-height: 120px;
}

/* ================ RESPONSIVE ADJUSTMENTS FOR LEGAL & CONTACT ================ */
@media (max-width: 768px) {
  .legal-page h1 {
    font-size: 1.875rem;
  }

  .legal-page h2 {
    font-size: 1.25rem;
  }

  .contact-container {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-info,
  .contact-form {
    width: 100%;
  }
}