/*
 * AnonPoll - Application Styles
 */

/* Import Tailwind */
@import "tailwindcss";

/* Custom Properties */
:root {
  --color-primary: #1e3a5f;
  --color-primary-hover: #2a4a6f;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
}

/* Base Styles */
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Form input improvements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
textarea,
select {
  font-size: 16px; /* Prevents zoom on iOS */
}

/* Button transitions */
button,
.btn,
a[class*="bg-"] {
  transition: all 0.2s ease;
}

/* Table improvements */
table {
  border-collapse: separate;
  border-spacing: 0;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    background: white;
  }
  
  .bg-white {
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
  }
}

/* Loading animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .card-shadow {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  }
}

/* Smooth page transitions with Turbo */
.turbo-progress-bar {
  height: 3px;
  background-color: var(--color-primary);
}
