/* Responsive styles */

/* Small devices (phones, 640px and down) */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-pattern {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .btn-primary, .btn-secondary {
    margin: 0.25rem;
    font-size: 0.875rem;
  }
}

/* Medium devices (tablets, 768px and down) */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .text-section {
    padding: 2rem 1rem;
  }

  .section-title {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 1024px and down) */
@media (max-width: 1024px) {
  .max-w-7xl {
    max-width: 100%;
  }
}

/* Fix for mobile navigation */
@media (max-width: 768px) {
  .mobile-menu-open {
    display: block !important;
  }

  .mobile-menu-closed {
    display: none !important;
  }
}

/* Ensure dropdown is visible */
.bg-indigo-600 {
  background-color: #4f46e5 !important;
}

.hover\:bg-indigo-500:hover {
  background-color: #6366f1 !important;
}

/* Fix profile dropdown positioning */
.relative.ml-auto {
  position: relative;
  margin-left: auto;
}

/* Ensure forms are responsive */
@media (max-width: 640px) {
  .form-input, .form-select, .form-textarea {
    width: 100%;
  }

  .grid-cols-2, .grid-cols-3 {
    grid-template-columns: 1fr;
  }

  .space-x-4 > * + * {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .flex-col-mobile {
    flex-direction: column;
  }

  .w-full-mobile {
    width: 100%;
  }
}
