@tailwind base;
@tailwind components;
@tailwind utilities;



@layer components {

  /* button, .btn, [type="submit"] {
        @apply text-xs font-semibold px-8 py-2 transition-transform focus:ring-2 text-center cursor-pointer inline-flex rounded uppercase text-white hover:text-white items-center justify-center;
    } button:hover, .btn:hover, [type="submit"]:hover {
        transform: translateY(-4px);
    } */
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }

  a {
    @apply font-semibold;
    color: var(--color-navy);
    cursor: pointer;
    transition: color 0.3s;
  }

  a:hover {
      color: var(--color-dark-orange);
  }


}


/* Fix dark background on all devices */
.dark\:bg-gray-800, .dark\:bg-gray-900 {
  background-color: white !important;
}

.dark\:border-gray-700 {
  border-color: #e5e7eb !important;
}

.dark\:text-gray-400 {
  color: #4b5563 !important;
}

.dark\:hover\:bg-gray-600:hover {
  background-color: #f3f4f6 !important;
}

.dark\:bg-gray-700 {
  background-color: #f9fafb !important;
}

.dark\:text-white, .dark\:placeholder-gray-400 {
  color: #4b5563 !important;
}

.dark\:focus\:ring-blue-500:focus, .dark\:focus\:border-blue-500:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5) !important;
}

/* Mobile-specific enhancements */
@media (max-width: 768px) {
  /* Add padding to account for fixed mobile nav */
  body {
    padding-top: 70px; /* Adjust this value based on your nav height */
  }
  
  /* Ensure container starts below the nav */
  .container.mx-auto {
    margin-top: 1rem;
  }
  
  /* Improve grid layout on small screens */
  .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Make buttons more tappable on mobile */
  .btn, 
  .px-4.py-2.font-medium.tracking-wide.text-white.capitalize.transition-colors.duration-200.transform.bg-blue-600.rounded-md {
    padding: 0.75rem 1rem;
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  
  /* Improve spacing for report items */
  .report-item > div {
    margin-bottom: 1.5rem;
  }
  
  /* Fix for mobile nav z-index conflicts */
  .sticky.top-0 {
    z-index: 10;
  }
  
  /* Table scrolling fixes */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  th, td {
    min-width: 120px;
  }
  
  th:first-child, td:first-child {
    position: sticky;
    left: 0;
    background-color: white;
    z-index: 1;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  }
  
  th:first-child {
    background-color: #f9fafb;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
