/* JLG Complaints Handling - Brand Theme */
/* Primary: Clarity Teal #00ACA3, Elegant Black #000000, Purity White #FFFFFF */
/* Secondary: Light Clarity Teal #7FDCD9, Mid Clarity Teal #0F7875, Dark Clarity Teal #07514D */
/* Accent: Trusted Blue #006BA9, Mint Green #9AE8AA, Sunny Yellow #FAEA87, Light Coral #EF767A */

/* Font Family - Montserrat with Verdana fallback */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

body {
  font-family: 'Montserrat', 'Verdana', sans-serif !important;
}

/* Primary Button Style - Clarity Teal */
.btn-primary, button[type="submit"], .bg-blue-600 {
  background-color: #00ACA3 !important;
  border-color: #00ACA3 !important;
}

.btn-primary:hover, button[type="submit"]:hover, .bg-blue-600:hover, .hover\:bg-blue-700:hover {
  background-color: #07514D !important;
  border-color: #07514D !important;
}

/* Focus states - Clarity Teal */
input:focus, select:focus, textarea:focus {
  border-color: #00ACA3 !important;
  outline: 2px solid #7FDCD9 !important;
  outline-offset: -2px;
}

/* Text color overrides */
.text-blue-600 {
  color: #00ACA3 !important;
}

.text-blue-700, .text-blue-800 {
  color: #07514D !important;
}

/* Background color overrides */
.bg-blue-100 {
  background-color: #7FDCD9 !important;
}

.bg-blue-50 {
  background-color: #E6F7F6 !important;
}

/* Border color overrides */
.border-blue-200, .border-blue-300 {
  border-color: #00ACA3 !important;
}

/* Gradient backgrounds */
.bg-gradient-to-br.from-blue-500.to-purple-600 {
  background: linear-gradient(135deg, #00ACA3 0%, #07514D 100%) !important;
}

/* Status badges with JLG colors */
.bg-red-100 {
  background-color: #FEE2E2 !important;
}

.bg-yellow-100 {
  background-color: #FAEA87 !important;
  color: #000000 !important;
}

.bg-green-100 {
  background-color: #9AE8AA !important;
}

.bg-purple-100 {
  background-color: #7FDCD9 !important;
}

/* Links */
a {
  color: #00ACA3 !important;
}

a:hover {
  color: #07514D !important;
}

/* Tab navigation */
.border-b-2.border-blue-500 {
  border-color: #00ACA3 !important;
}

.text-blue-500 {
  color: #00ACA3 !important;
}

/* Icons with teal color */
.text-blue-600 i, .text-blue-500 i {
  color: #00ACA3;
}

/* JLG Logo container */
.jlg-logo {
  height: 50px;
  margin-bottom: 1rem;
}

/* Tagline style */
.jlg-tagline {
  color: #07514D;
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

/* Header branding */
.app-header {
  background: linear-gradient(90deg, #00ACA3 0%, #07514D 100%);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-header .logo {
  height: 40px;
}

/* Card hover effects */
.card:hover {
  box-shadow: 0 10px 25px rgba(0, 172, 163, 0.15);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Button shadows */
button {
  box-shadow: 0 4px 6px rgba(0, 172, 163, 0.2);
}

button:hover {
  box-shadow: 0 6px 12px rgba(7, 81, 77, 0.3);
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #00ACA3;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #07514D;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile-first base styles */
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }
  
  .jlg-logo {
    height: 35px;
  }
  
  .app-header {
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .app-header .logo {
    height: 30px;
  }
  
  h1 {
    font-size: 1.25rem !important;
  }
  
  h2 {
    font-size: 1.125rem !important;
  }
  
  .text-3xl {
    font-size: 1.5rem !important;
  }
  
  .text-2xl {
    font-size: 1.25rem !important;
  }
  
  .text-xl {
    font-size: 1.125rem !important;
  }
  
  /* Make cards stack on mobile */
  .grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Adjust padding on mobile */
  .p-8 {
    padding: 1rem !important;
  }
  
  .p-6 {
    padding: 0.75rem !important;
  }
  
  /* Make tables responsive */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.875rem;
  }
}

/* Tablet styles */
@media (min-width: 641px) and (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .jlg-logo {
    height: 40px;
  }
}

/* Desktop styles */
@media (min-width: 1025px) {
  .jlg-logo {
    height: 50px;
  }
}

/* ===== BACKEND DASHBOARD STYLING ===== */

/* Status cards with JLG colors */
.status-card-received {
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%) !important;
  border-left: 4px solid #DC2626 !important;
}

.status-card-acknowledged {
  background: linear-gradient(135deg, #FAEA87 0%, #FDE68A 100%) !important;
  border-left: 4px solid #D97706 !important;
}

.status-card-in-process {
  background: linear-gradient(135deg, #7FDCD9 0%, #A5F3FC 100%) !important;
  border-left: 4px solid #00ACA3 !important;
}

.status-card-done {
  background: linear-gradient(135deg, #9AE8AA 0%, #BBF7D0 100%) !important;
  border-left: 4px solid #16A34A !important;
}

.status-card-signed-off {
  background: linear-gradient(135deg, #DDD6FE 0%, #E9D5FF 100%) !important;
  border-left: 4px solid #9333EA !important;
}

/* Dashboard header with JLG branding */
.dashboard-header {
  background: linear-gradient(90deg, #00ACA3 0%, #0F7875 50%, #07514D 100%) !important;
  color: white !important;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 172, 163, 0.25);
}

.dashboard-header h1,
.dashboard-header p,
.dashboard-header button {
  color: white !important;
}

/* Tab navigation with JLG colors */
.tab-button {
  padding: 0.75rem 1.5rem;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.tab-button:hover {
  background-color: rgba(0, 172, 163, 0.1) !important;
}

.tab-button.active {
  border-bottom-color: #00ACA3 !important;
  color: #00ACA3 !important;
  font-weight: 600;
}

/* Complaint list table */
.complaint-row {
  transition: all 0.2s ease;
}

.complaint-row:hover {
  background-color: rgba(127, 220, 217, 0.1) !important;
  transform: translateX(4px);
}

/* Action buttons */
.action-button {
  background-color: #00ACA3 !important;
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.action-button:hover {
  background-color: #07514D !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 172, 163, 0.3);
}

/* Charts and analytics */
.analytics-card {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-top: 4px solid #00ACA3;
}

/* Form inputs consistent styling */
select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea {
  border: 2px solid #E5E7EB;
  border-radius: 0.375rem;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus {
  border-color: #00ACA3 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 172, 163, 0.1);
}

/* Status badges */
.status-badge {
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
}

/* Loading spinner with JLG colors */
.spinner {
  border: 3px solid rgba(0, 172, 163, 0.2);
  border-top-color: #00ACA3;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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