@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Supabase-inspired color palette */
  --bg-color: #1A1A1A;
  --card-bg: #1A1A1A;
  --surface-bg: #f8f9fa;
  
  --primary-color: hsl(153, 60%, 53%); /* Supabase brand green */
  --primary-hover: hsl(154, 55%, 45%);
  --primary-light: hsl(153, 60%, 15%);
  
  --text-color: #1a1a1a;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  
  --border-color: #e5e7eb;
  --border-hover: #d1d5db;
  
  --error-color: #ef4444;
  --success-color: hsl(153, 60%, 53%);
  --warning-color: #f59e0b;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  --border-radius: 8px;
  --border-radius-sm: 6px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
}

/* Dark mode variables */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1a1a1a;;
    --card-bg: #1a1a1a;
    --surface-bg: #111111;
    
    --text-color: #fafafa;
    --text-muted: #a1a1aa;
    --text-light: #71717a;
    
    --border-color: #27272a;
    --border-hover: #3f3f46;
  }
}

html {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  font-variation-settings: 'opsz' 32;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
  
}

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

.gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

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

body {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}



.App {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.container > *:not(.nav-bar) {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container > .nav-bar {
  width: 100%;
  margin: 0;
  position: sticky;
  top: 1rem;
  z-index: 50;
}

.App-header {
  padding: 3rem 0 2rem;
  text-align: center;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
}

.header-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  max-width: 600px;
}

.App-header h1 {
  color: var(--text-color);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  font-weight: 400;
  margin: 0;
  margin-bottom: 0.5rem;
}

.subtitle:last-child {
  margin-bottom: 0;
}

.credentials-section,
.upload-section {
  padding: 2rem;
  margin: 1.5rem 0;
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

h2 {
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.input-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.875rem;
}

/* Global input styles that will apply to ALL inputs across the entire application */
input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-family: inherit;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

input:hover:not(:focus) {
  border-color: var(--border-hover);
}

/* Modern dropzone styling */
.dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1.5rem;
  background-color: var(--surface-bg);
}

.dropzone:hover,
.dropzone.active {
  border-color: var(--primary-color);
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

.supported-formats {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 1rem;
}

.file-list {
  margin-bottom: 1.5rem;
}

.file-list h3 {
  margin-bottom: 1rem;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 400;
}

.file-list ul {
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
  background-color: var(--surface-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 0;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.file-list li:last-child {
  border-bottom: none;
}

.file-list li:hover {
  background-color: var(--card-bg);
}

.file-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 0.5rem;
}

.file-size {
  color: var(--text-color);
  opacity: 0.7;
  margin-right: 0.5rem;
}

.remove-btn {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.remove-btn:hover {
  background-color: var(--error-color);
  color: white;
  border-color: var(--error-color);
}

/* Modern upload button */
.upload-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.upload-btn:hover:not(:disabled) {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.upload-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Add a subtle shine effect on hover */
.upload-btn:hover:not(:disabled)::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  animation: btn-shine 1.5s infinite;
}

.upload-btn:before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 0L14.82 9.18L24 12L14.82 14.82L12 24L9.18 14.82L0 12L9.18 9.18z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  align-items: center;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
  margin-right: 5px;
}

.primary-button:hover::before {
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

@keyframes btn-shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.status-message {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  text-align: center;
  animation: fadeIn 0.3s ease;
  font-weight: 500;
}

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

.status-message.success {
  background-color: var(--primary-light);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.status-message.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error-color);
  border: 1px solid var(--error-color);
}

/* Footer styles - single line */
footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
  border-top: 1px solid var(--border-color);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

footer p {
  margin: 0;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  word-break: break-word;
  width: 100%;
}

footer a {
  color: var(--primary-color);
  margin: 0;
  font-family: inherit;
  font-weight: inherit;
  display: inline-block;
  width: auto;
  animation: gradientShift 8s ease infinite;
  text-decoration: none;
  word-wrap: break-word;
  word-break: break-word;
}

footer a:hover {
  text-decoration: underline;
}

/* Add a retro terminal effect */
@keyframes terminal-flicker {
  0% {
    opacity: 0.97;
  }
  5% {
    opacity: 0.9;
  }
  10% {
    opacity: 0.97;
  }
  15% {
    opacity: 0.92;
  }
  20% {
    opacity: 0.97;
  }
  50% {
    opacity: 0.97;
  }
  55% {
    opacity: 0.95;
  }
  60% {
    opacity: 0.97;
  }
  100% {
    opacity: 0.97;
  }
}

.container {
  animation: none;
}

/* Add a subtle scan line effect */
.container::before {
  display: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Modern navigation bar */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  position: sticky;
  top: 1rem;
  z-index: 1000;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

/* Navigation layout */
.nav-left {
  display: flex;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.home-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.home-link:hover {
  opacity: 0.8;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 400;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-color);
  margin-left: 0.75rem;
  margin-right: 1.5rem;
}

.wifi-icon-container {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible; /* Important: Allow glow to extend beyond container */
  margin: 0 8px;
}

.gradient-wifi-icon {
  position: relative;
  z-index: 2;
  filter: none; /* Remove filter from the SVG itself */
  transition: all 0.3s ease;
}

.wifi-icon-fa {
  font-size: 1.5rem;
}



.nav-button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  position: relative;
}

.nav-button:hover {
  color: var(--text-color);
  background-color: var(--surface-bg);
}

.nav-button.active {
  color: var(--primary-color);
  background-color: var(--primary-light);
}


/* Page Content Styles */
.page-content {
  padding: 2rem 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto 0;
}

.page-content h2 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.page-content h3 {
  color: var(--primary-color);
  margin: 1.5rem 0 0.5rem;
}

.page-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.page-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

/* Tools List */
.tools-list {
  list-style: none;
  margin-left: 0;
  margin-top: 2rem;
}

.tools-list li {
  background-color: var(--bg-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tools-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.tools-list a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.tools-list a:hover {
  text-decoration: underline;
}

.coming-soon {
  color: var(--secondary-color) !important;
  cursor: not-allowed;
}

/* Contact Page - Supabase-inspired Design */
.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.contact-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-light);
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 10px;
  color: var(--primary-color);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.contact-card:hover .contact-card-icon {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

.contact-card-content {
  flex: 1;
  min-width: 0;
}

.contact-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.contact-card-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-card-external {
  color: var(--text-muted);
  opacity: 0;
  transition: all 0.2s ease;
}

.contact-card:hover .contact-card-external {
  opacity: 1;
  transform: translateX(2px);
}

.contact-card-value {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  word-break: break-all;
}

.contact-card-description {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.contact-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.contact-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.contact-note svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

.contact-note a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.contact-note a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-title {
    font-size: 2rem;
  }
  
  .contact-subtitle {
    font-size: 1rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .contact-card {
    padding: 1.25rem;
  }
  
  .contact-card-value {
    word-break: break-word;
  }
}

.auth-info {
  margin-bottom: 1rem;
  line-height: 1.4;
  font-size: 0.9rem;
}

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

.auth-info a:hover {
  text-decoration: underline;
}

.accepted-extensions {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.7;
}

.accepted-extensions p {
  margin: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .nav-left {
    padding-left: 0.5rem;
  }
  
  .nav-right {
    padding-right: 0.5rem;
    gap: 1rem;
  }
  
  .nav-button {
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
  }
}

@media (max-width: 600px) {
  .nav-bar {
    flex-direction: column;
    padding: 0.5rem 0;
    top: 1rem;
  }
  
  .nav-left, .nav-right {
    width: 100%;
    justify-content: center;
    margin: 0.25rem 0;
    padding: 0;
  }
  
  .nav-right {
    gap: 1rem;
  }
  
  .site-title {
    font-size: 1rem;
    font-weight: 400;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }
}

/* Progress Bar Styles */
.progress-container {
  width: 100%;
  background-color: var(--bg-color);
  border-radius: var(--border-radius-sm);
  margin: 1rem 0;
  height: 12px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background-color: #3ECF8E;
  border-radius: var(--border-radius-sm);
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  animation: progress-shine 1.5s linear infinite;
}

@keyframes progress-shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.upload-progress-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1.25rem;
  background-color: var(--surface-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.upload-progress-info h3 {
  margin-bottom: 1rem;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 400;
}

.upload-progress-info p {
  margin: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.upload-progress-details {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* Update the upload icon to green with more subtle glow */
.upload-icon {
  font-size: 1.5rem;
  margin: 3rem;
  color: var(--primary-color);
  margin-bottom: 3rem;
  opacity: 0.9;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.2));
}

.dropzone:hover .upload-icon,
.dropzone.active .upload-icon {
  opacity: 1;
  transform: translateY(-5px);
  filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.3));
}

/* Update the upload path SVG fill */
.upload-path {
  fill: var(--primary-color) !important; /* Force override any other styles */
  stroke: var(--primary-color) !important; /* Ensure stroke is also green */
  filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.3));
  transition: all 0.3s ease;
}

.dropzone:hover .upload-path,
.dropzone.active .upload-path {
  filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.4));
}

/* Override any other colors that might be applied */
.upload-icon svg,
.upload-icon svg path,
.upload-icon svg rect,
.upload-icon svg circle {
  fill: var(--primary-color) !important;
  stroke: var(--primary-color) !important;
}

@keyframes wifi-pulse {
  0% {
    opacity: 0.7;
    filter: drop-shadow(0 0 5px var(--primary-color));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 15px var(--primary-color)) 
           drop-shadow(0 0 5px var(--primary-color));
  }
  100% {
    opacity: 0.7;
    filter: drop-shadow(0 0 5px var(--primary-color));
  }
}

/* Modern toggle switch for Remember Me */
.remember-me {
  display: flex;
  align-items: center;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.remember-me input[type="checkbox"] {
  /* Hide the default checkbox */
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Custom toggle switch container */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin-right: 0.75rem;
  cursor: pointer;
}

/* The toggle track */
.toggle-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  border-radius: 12px;
  transition: all 0.2s ease;
}

/* The toggle knob */
.toggle-track:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: var(--surface-bg);
  border-radius: 50%;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Checked state */
input:checked + .toggle-switch .toggle-track {
  background-color: var(--primary-color);
}

input:checked + .toggle-switch .toggle-track:before {
  transform: translateX(20px);
}


.remember-me label {
  cursor: pointer;
  margin-right: 0.5rem;
}

.info-tooltip {
  position: relative;
  cursor: help;
  margin-left: 0.5rem;
}

.info-tooltip .tooltip-text {
  visibility: hidden;
  width: 250px;
  background-color: var(--card-bg);
  color: var(--text-color);
  text-align: center;
  border-radius: var(--border-radius-sm);
  padding: 0.5rem;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.info-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Tool download button styling to match site theme */
.tool-download {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background-color: var(--primary-color);
  color: var(--bg-color);
  border: none;
  border-radius: var(--border-radius-sm);
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.tool-download:hover {
  background-color: var(--primary-color);
  filter: brightness(1.2) drop-shadow(0 0 8px var(--primary-color));
  transform: translateY(-2px);
  cursor: pointer;
}

/* Add shine effect on hover */
.tool-download:hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  animation: btn-shine 1.5s infinite;
}

/* Debug information styling */
.debug-info {
  margin-top: 1rem;
  font-size: 0.8rem;
}

.debug-info details {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  border-radius: var(--border-radius-sm);
}

.debug-info summary {
  cursor: pointer;
  font-weight: bold;
  color: var(--primary-color);
}

.debug-info pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius-sm);
  max-height: 200px;
  overflow-y: auto;
}

/* If you have a specific content container class, update that as well */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Mobile adjustments for footer */
@media (max-width: 768px) {
  footer {
    padding: 0.75rem 0.5rem;
    font-size: 0.7rem;
  }
  
  footer p {
    line-height: 1.3;
  }
  
  /* Ensure container doesn't overflow */
  .container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  
  /* Ensure App doesn't overflow */
  .App {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  footer {
    padding: 0.5rem;
    font-size: 0.65rem;
  }
}

/* Add space between navbar and content */
.page-content {
  padding: 2rem 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto 0;
}

/* Add space to specific sections that might appear directly below navbar */
.credentials-section,
.upload-section,
.route-controls {
  margin-top: 2rem;
}

/* Add space to h2 elements that might be the first element after navbar */
h2:first-of-type {
  margin-top: 1.5rem;
}

/* For the home page content */
.header-text {
  margin-top: 2rem;
}

/* For the tools page */
.tools-list {
  margin-top: 2rem;
}

/* For the route planner page */
.route-planner > h2:first-child {
  margin-top: 2rem;
}

/* For any content that might be directly below the navbar */
.container > *:not(.nav-bar):first-of-type {
  margin-top: 2rem;
}


.home-link:hover .gradient-wifi-icon {
  transform: scale(1.1);
}


/* Only add this new CSS for the upload icon SVG */


/* Pulsing WiFi icon with glow only */
.wifi-icon-pulse {
  animation: glow-pulse 2s infinite;
  color: var(--primary-color);
  font-size: 1.5rem;
}

@keyframes glow-pulse {
  0% {
    filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.4));
  }
  
  50% {
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
  }
  
  100% {
    filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.4));
  }
}

