/* assets/css/custom.css */
/* Custom styles for Lovereel CRM */

/* Brand Colors */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --success-color: #059669;
  --warning-color: #d97706;
  --danger-color: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

/* Base styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Custom focus styles */
.focus-ring:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Enhanced form styles */
.form-input {
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Status badges */
.status-lead {
  background-color: #fef3c7;
  color: #92400e;
}

.status-inquiry {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-proposal {
  background-color: #e0e7ff;
  color: #3730a3;
}

.status-booked {
  background-color: #d1fae5;
  color: #065f46;
}

.status-completed {
  background-color: #f3e8ff;
  color: #581c87;
}

.status-cancelled {
  background-color: #fecaca;
  color: #991b1b;
}

/* Dashboard cards */
.dashboard-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.15s ease-in-out;
}

.dashboard-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dashboard-stat {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}

.dashboard-stat-success {
  background: linear-gradient(135deg, var(--success-color) 0%, #047857 100%);
}

.dashboard-stat-warning {
  background: linear-gradient(135deg, var(--warning-color) 0%, #b45309 100%);
}

.dashboard-stat-danger {
  background: linear-gradient(135deg, var(--danger-color) 0%, #b91c1c 100%);
}

/* Quick actions */
.quick-action {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  transition: all 0.15s ease-in-out;
}

.quick-action:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

/* Table enhancements */
.table-row {
  transition: background-color 0.15s ease-in-out;
}

.table-row:hover {
  background-color: var(--gray-50);
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--gray-300);
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive navigation */
@media (max-width: 768px) {
  .nav-mobile {
    display: block;
  }
  
  .nav-desktop {
    display: none;
  }
}

@media (min-width: 769px) {
  .nav-mobile {
    display: none;
  }
  
  .nav-desktop {
    display: flex;
  }
}

/* Form validation */
.field-error {
  border-color: var(--danger-color) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.field-success {
  border-color: var(--success-color) !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1) !important;
}

/* Utility classes */
.text-shadow {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
  backdrop-filter: blur(8px);
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-break {
    page-break-before: always;
  }
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .dashboard-card {
    border: 2px solid var(--gray-800);
  }
  
  .status-lead,
  .status-inquiry,
  .status-proposal,
  .status-booked,
  .status-completed,
  .status-cancelled {
    border: 1px solid currentColor;
  }
}