/* Responsive styles for Sannid web app */

/* Base styles */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Flutter app container */
#flutter_app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Responsive footer */
#footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  text-align: center;
  font-size: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

#footer a {
  color: #3498db;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

#footer a:hover {
  color: #2980b9;
  text-decoration: underline;
}

#footer span {
  color: #7f8c8d;
  margin-left: 20px;
}

/* Desktop styles (1024px and above) */
@media (min-width: 1024px) {
  body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  
  #footer {
    padding: 20px 40px;
    font-size: 16px;
  }
  
  #footer a {
    margin: 0 25px;
  }
  
  /* Add some padding to account for footer */
  #flutter_app {
    padding-bottom: 80px;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
}

/* Large desktop styles (1400px and above) */
@media (min-width: 1400px) {
  #flutter_app {
    max-width: 1400px;
  }
}

/* Tablet styles (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  #footer {
    padding: 18px 30px;
    font-size: 15px;
  }
  
  #footer a {
    margin: 0 20px;
  }
  
  #flutter_app {
    padding-bottom: 70px;
  }
}

/* Mobile styles (below 768px) */
@media (max-width: 767px) {
  #footer {
    padding: 12px 15px;
    font-size: 13px;
  }
  
  #footer a {
    margin: 0 10px;
    display: inline-block;
    margin-bottom: 5px;
  }
  
  #footer span {
    display: block;
    margin-top: 5px;
    margin-left: 0;
  }
  
  #flutter_app {
    padding-bottom: 100px;
  }
}

/* Loading animation */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Hide scrollbar but keep scrolling functionality */
::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

/* For Firefox */
html {
  scrollbar-width: none;
}

/* For IE and Edge */
body {
  -ms-overflow-style: none;
}

/* Focus styles for accessibility */
a:focus, button:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  #footer {
    background: rgba(0, 0, 0, 0.9);
    color: white;
  }
  
  #footer a {
    color: #4fc3f7;
  }
  
  #footer span {
    color: #b0b0b0;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
} 