/* Custom CSS for Car Maintenance Tracker */

:root {
    --primary-color: #0ea5e9;
    --secondary-color: #e0f2fe;
    --accent-color: #0284c7;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
  }
  
  /* General styles */
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
  }
  
  /* Custom scrollbar for a more modern look */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
  }
  
  /* Button hover effect */
  button {
    transition: all 0.2s ease-in-out;
  }
  
  /* Card hover effect */
  .dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }
  
  /* Form input focus styles */
  input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
    outline: none;
  }
  
  /* Animate modal entrance */
  .modal-enter {
    animation: fadeSlideDown 0.3s ease-out forwards;
  }
  
  @keyframes fadeSlideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Responsive table */
  @media (max-width: 640px) {
    .responsive-table {
      display: block;
      width: 100%;
      overflow-x: auto;
    }
  }
  
  /* File input custom styling */
  .file-input-label {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid var(--gray-200);
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .file-input-label:hover {
    background-color: var(--gray-100);
  }
  
  .custom-file-input {
    opacity: 0;
    position: absolute;
    z-index: -1;
  }
  
  /* Maintenance type badges */
  .badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
  }
  
  /* Additional animations */
  .pulse {
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4);
    }
    70% {
      box-shadow: 0 0 0 10px rgba(14, 165, 233, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
    }
  }
  
  /* Empty state styling */
  .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
  }
  
  .empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--gray-200);
  }
  
  /* Tooltip styles */
  .tooltip {
    position: relative;
    display: inline-block;
  }
  
  .tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: var(--text-dark);
    color: var(--white);
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
  }

  body > div.min-h-screen > main > div.bg-white.rounded-lg.shadow-md.overflow-hidden > div.py-4.border-b.border-gray-200.flex.flex-col.sm\:flex-row.gap-4.items-center.justify-between{
    padding: 5px 10px 5px 10px;
  }