/* Additional custom styles for EdgeTeam Chipp Hackathon Assistant */

/* Loading spinner animation */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive design - Progressive breakpoints to prevent overlapping */
@media (max-width: 1200px) {
  .subtitle {
    font-size: 0.8rem;
  }
  .header {
    gap: 15px;
  }
}

@media (max-width: 1024px) {
  .subtitle {
    font-size: 0.75rem;
  }
  .header {
    gap: 12px;
    padding: 12px 16px;
  }
  .logo h1 {
    font-size: 1.3rem;
  }
}

@media (max-width: 900px) {
  .header-center {
    display: none;
  }
  .header {
    justify-content: space-between;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 15px;
  }

  .logo {
    justify-content: center;
    flex: none;
  }

  .logo h1 {
    font-size: 1.25rem;
  }

  .header-center {
    display: flex;
    order: 3;
  }

  .subtitle {
    font-size: 0.75rem;
  }

  .email-header {
    flex-direction: column;
    gap: 5px;
  }

  .user-info {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 12px;
  }
  .logo h1 {
    font-size: 1.125rem;
  }
  .logo img {
    height: 32px;
  }
  .btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* Smooth transitions */
* {
  transition: all 0.2s ease-in-out;
}

/* Focus states for accessibility */
.btn:focus {
  outline: 2px solid #4285f4;
  outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}
