/* Custom styles for MARTENS Technical Training & Service */

:root {
  --primary: #004F82;
  --primary-foreground: #ffffff;
  --text-dark: #0a0a0a;
  --text-light: #6b7280;
  --border-light: #e5e7eb;
  --bg-light: #f9fafb;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
}

/* Global font size adjustments */
body {
  font-size: 16px;
  line-height: 1.6;
}

p, li, span {
  font-size: 1.0625rem; /* 17px - slightly larger text */
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

/* Hero background overlay */
.hero-bg {
  background-image: linear-gradient(rgba(0, 79, 130, 0.8), rgba(0, 79, 130, 0.8));
  background-size: cover;
  background-position: center;
}

/* Admin sidebar gradient */
.admin-sidebar {
  background: linear-gradient(135deg, var(--primary), rgba(0, 79, 130, 0.9));
}

/* Signature canvas styling */
.signature-canvas {
  border: 2px dashed var(--border-light);
  border-radius: 0.5rem;
  background: white;
  cursor: crosshair;
  touch-action: none;
}

.signature-canvas:hover {
  border-color: var(--primary);
}

/* Form validation styles */
.form-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-success {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Mobile menu animation */
.mobile-menu-enter {
  opacity: 0;
  transform: translateY(-10px);
}

.mobile-menu-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Card hover effects */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Modal backdrop */
.modal-backdrop {
  backdrop-filter: blur(4px);
  background-color: rgba(0, 0, 0, 0.5);
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-only {
    display: block !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary: #003366;
    --text-dark: #000000;
    --border-light: #333333;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
.focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: var(--bg-light);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 79, 130, 0.8);
}
