/**
 * BookFlow - CSS Moderno e Responsivo
 * Versione: 2.0.0
 * Design system unificato con supporto dark mode
 */

/* ===== VARIABILI CSS ===== */
:root {
  /* Colori primari */
  --bookflow-primary: #0073aa;
  --bookflow-primary-hover: #005177;
  --bookflow-primary-light: #e3f2fd;
  --bookflow-secondary: #667eea;
  --bookflow-secondary-hover: #5a67d8;
  
  /* Colori di stato */
  --bookflow-success: #10b981;
  --bookflow-success-light: #d1fae5;
  --bookflow-error: #ef4444;
  --bookflow-error-light: #fef2f2;
  --bookflow-warning: #f59e0b;
  --bookflow-warning-light: #fef3c7;
  --bookflow-info: #3b82f6;
  --bookflow-info-light: #dbeafe;
  
  /* Colori neutri */
  --bookflow-white: #ffffff;
  --bookflow-gray-50: #f9fafb;
  --bookflow-gray-100: #f3f4f6;
  --bookflow-gray-200: #e5e7eb;
  --bookflow-gray-300: #d1d5db;
  --bookflow-gray-400: #9ca3af;
  --bookflow-gray-500: #6b7280;
  --bookflow-gray-600: #4b5563;
  --bookflow-gray-700: #374151;
  --bookflow-gray-800: #1f2937;
  --bookflow-gray-900: #111827;
  
  /* Typography */
  --bookflow-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --bookflow-font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  
  /* Spacing */
  --bookflow-space-1: 0.25rem; /* 4px */
  --bookflow-space-2: 0.5rem;  /* 8px */
  --bookflow-space-3: 0.75rem; /* 12px */
  --bookflow-space-4: 1rem;    /* 16px */
  --bookflow-space-5: 1.25rem; /* 20px */
  --bookflow-space-6: 1.5rem;  /* 24px */
  --bookflow-space-8: 2rem;    /* 32px */
  --bookflow-space-10: 2.5rem; /* 40px */
  --bookflow-space-12: 3rem;   /* 48px */
  --bookflow-space-16: 4rem;   /* 64px */
  
  /* Border radius */
  --bookflow-radius-sm: 0.25rem;
  --bookflow-radius: 0.375rem;
  --bookflow-radius-md: 0.5rem;
  --bookflow-radius-lg: 0.75rem;
  --bookflow-radius-xl: 1rem;
  --bookflow-radius-full: 9999px;
  
  /* Shadows */
  --bookflow-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --bookflow-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --bookflow-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --bookflow-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --bookflow-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --bookflow-transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --bookflow-transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-index scale */
  --bookflow-z-dropdown: 1000;
  --bookflow-z-modal: 1050;
  --bookflow-z-popover: 1060;
  --bookflow-z-tooltip: 1070;
  --bookflow-z-notification: 1080;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --bookflow-white: #1f2937;
    --bookflow-gray-50: #374151;
    --bookflow-gray-100: #4b5563;
    --bookflow-gray-200: #6b7280;
    --bookflow-gray-800: #f3f4f6;
    --bookflow-gray-900: #ffffff;
  }
}

/* ===== BASE STYLES ===== */

/* Reset per componenti BookFlow */
.bookflow-calendar-wrapper *,
.bookflow-form *,
.bookflow-dashboard * {
  box-sizing: border-box;
}

/* Screen reader only */
.bookflow-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ===== FORM PRINCIPALE ===== */

.bookflow-calendar-wrapper,
.bookflow-form {
  max-width: 600px;
  margin: var(--bookflow-space-8) auto;
  padding: var(--bookflow-space-8);
  background: var(--bookflow-white);
  border: 1px solid var(--bookflow-gray-200);
  border-radius: var(--bookflow-radius-xl);
  font-family: var(--bookflow-font-family);
  box-shadow: var(--bookflow-shadow-lg);
  transition: var(--bookflow-transition);
  position: relative;
}

.bookflow-calendar-wrapper:hover,
.bookflow-form:hover {
  box-shadow: var(--bookflow-shadow-xl);
  transform: translateY(-2px);
}

.bookflow-calendar-wrapper h3,
.bookflow-form h3 {
  margin: 0 0 var(--bookflow-space-6) 0;
  text-align: center;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--bookflow-gray-900);
  line-height: 1.2;
}

/* ===== FORM GROUPS ===== */

.bookflow-form-group {
  margin-bottom: var(--bookflow-space-6);
}

.bookflow-form-group label {
  display: block;
  margin-bottom: var(--bookflow-space-2);
  font-weight: 600;
  color: var(--bookflow-gray-700);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bookflow-form-group.required label::after {
  content: ' *';
  color: var(--bookflow-error);
  font-weight: bold;
}

/* ===== INPUT STYLES ===== */

.bookflow-form-group input,
.bookflow-form-group select,
.bookflow-form-group textarea,
.bookflow-calendar-wrapper input,
.bookflow-calendar-wrapper select,
.bookflow-calendar-wrapper textarea {
  width: 100%;
  padding: var(--bookflow-space-4);
  border: 2px solid var(--bookflow-gray-200);
  border-radius: var(--bookflow-radius-md);
  font-size: 1rem;
  line-height: 1.5;
  background-color: var(--bookflow-gray-50);
  color: var(--bookflow-gray-900);
  transition: var(--bookflow-transition);
  font-family: inherit;
}

.bookflow-form-group input:focus,
.bookflow-form-group select:focus,
.bookflow-form-group textarea:focus,
.bookflow-calendar-wrapper input:focus,
.bookflow-calendar-wrapper select:focus,
.bookflow-calendar-wrapper textarea:focus {
  outline: none;
  border-color: var(--bookflow-primary);
  background-color: var(--bookflow-white);
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
  transform: translateY(-1px);
}

.bookflow-form-group input:hover,
.bookflow-form-group select:hover,
.bookflow-form-group textarea:hover,
.bookflow-calendar-wrapper input:hover,
.bookflow-calendar-wrapper select:hover,
.bookflow-calendar-wrapper textarea:hover {
  border-color: var(--bookflow-gray-300);
  background-color: var(--bookflow-white);
}

/* Placeholder styles */
.bookflow-form-group input::placeholder,
.bookflow-form-group textarea::placeholder,
.bookflow-calendar-wrapper input::placeholder,
.bookflow-calendar-wrapper textarea::placeholder {
  color: var(--bookflow-gray-400);
  opacity: 1;
}

/* Select styles */
.bookflow-form-group select,
.bookflow-calendar-wrapper select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right var(--bookflow-space-3) center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: var(--bookflow-space-10);
  cursor: pointer;
}

/* Textarea */
.bookflow-form-group textarea,
.bookflow-calendar-wrapper textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== VALIDATION STYLES ===== */

.bookflow-field-error {
  border-color: var(--bookflow-error) !important;
  background-color: var(--bookflow-error-light) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.bookflow-field-valid {
  border-color: var(--bookflow-success) !important;
  background-color: var(--bookflow-success-light) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.bookflow-field-error-message {
  margin-top: var(--bookflow-space-1);
  color: var(--bookflow-error);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--bookflow-space-1);
}

.bookflow-field-error-message::before {
  content: '⚠️';
  font-size: 1rem;
}

/* ===== BUTTONS ===== */

.bookflow-submit-btn,
.bookflow-calendar-wrapper button,
.bookflow-form button,
.bookflow-quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bookflow-space-2);
  padding: var(--bookflow-space-4) var(--bookflow-space-6);
  border: none;
  border-radius: var(--bookflow-radius-md);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: var(--bookflow-transition);
  position: relative;
  overflow: hidden;
}

/* Primary button */
.bookflow-submit-btn,
.bookflow-calendar-wrapper button[type="submit"],
.bookflow-form button[type="submit"] {
  background: linear-gradient(135deg, var(--bookflow-primary) 0%, var(--bookflow-secondary) 100%);
  color: var(--bookflow-white);
  box-shadow: var(--bookflow-shadow);
}

.bookflow-submit-btn:hover,
.bookflow-calendar-wrapper button[type="submit"]:hover,
.bookflow-form button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--bookflow-primary-hover) 0%, var(--bookflow-secondary-hover) 100%);
  box-shadow: var(--bookflow-shadow-md);
  transform: translateY(-2px);
}

.bookflow-submit-btn:active,
.bookflow-calendar-wrapper button[type="submit"]:active,
.bookflow-form button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: var(--bookflow-shadow-sm);
}

/* Full width buttons */
.bookflow-submit-btn,
.bookflow-calendar-wrapper button {
  width: 100%;
  padding: var(--bookflow-space-5) var(--bookflow-space-6);
  font-size: 1.125rem;
}

/* Ripple effect */
.bookflow-submit-btn::before,
.bookflow-calendar-wrapper button::before,
.bookflow-form button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.bookflow-submit-btn:active::before,
.bookflow-calendar-wrapper button:active::before,
.bookflow-form button:active::before {
  width: 300px;
  height: 300px;
  top: var(--click-y, 50%);
  left: var(--click-x, 50%);
}

/* ===== LOADING STATES ===== */

.bookflow-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.bookflow-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--bookflow-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: bookflow-spin 1s linear infinite;
  z-index: 1;
}

@keyframes bookflow-spin {
  to { 
    transform: rotate(360deg); 
  }
}

/* Loading overlay */
.bookflow-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--bookflow-z-modal);
  backdrop-filter: blur(4px);
}

.bookflow-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--bookflow-space-4);
  padding: var(--bookflow-space-8);
  background: var(--bookflow-white);
  border-radius: var(--bookflow-radius-lg);
  box-shadow: var(--bookflow-shadow-xl);
}

.bookflow-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--bookflow-gray-200);
  border-top-color: var(--bookflow-primary);
  border-radius: 50%;
  animation: bookflow-spin 1s linear infinite;
}

.bookflow-loading-message {
  color: var(--bookflow-gray-700);
  font-weight: 500;
  font-size: 1rem;
}

/* ===== NOTIFICATIONS ===== */

.bookflow-notifications-container {
  position: fixed;
  top: var(--bookflow-space-4);
  right: var(--bookflow-space-4);
  z-index: var(--bookflow-z-notification);
  pointer-events: none;
}

.bookflow-notification {
  display: flex;
  align-items: center;
  gap: var(--bookflow-space-3);
  padding: var(--bookflow-space-4);
  margin-bottom: var(--bookflow-space-2);
  background: var(--bookflow-white);
  border-radius: var(--bookflow-radius-lg);
  box-shadow: var(--bookflow-shadow-lg);
  border-left: 4px solid;
  max-width: 400px;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.bookflow-notification-show {
  transform: translateX(0);
  opacity: 1;
}

.bookflow-notification-hide {
  transform: translateX(100%);
  opacity: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.bookflow-notification-success {
  border-left-color: var(--bookflow-success);
  background: var(--bookflow-success-light);
}

.bookflow-notification-error {
  border-left-color: var(--bookflow-error);
  background: var(--bookflow-error-light);
}

.bookflow-notification-warning {
  border-left-color: var(--bookflow-warning);
  background: var(--bookflow-warning-light);
}

.bookflow-notification-info {
  border-left-color: var(--bookflow-info);
  background: var(--bookflow-info-light);
}

.bookflow-notification-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.bookflow-notification-message {
  flex: 1;
  font-weight: 500;
  color: var(--bookflow-gray-800);
}

.bookflow-notification-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--bookflow-gray-400);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: var(--bookflow-transition);
  flex-shrink: 0;
}

.bookflow-notification-close:hover {
  color: var(--bookflow-gray-600);
  transform: scale(1.1);
}

/* ===== ERROR BANNERS ===== */

.bookflow-error-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--bookflow-space-3);
  padding: var(--bookflow-space-4);
  margin-bottom: var(--bookflow-space-6);
  background: var(--bookflow-error-light);
  border: 1px solid var(--bookflow-error);
  border-radius: var(--bookflow-radius-md);
  color: var(--bookflow-error);
}

.bookflow-error-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.bookflow-error-content strong {
  display: block;
  margin-bottom: var(--bookflow-space-1);
  font-weight: 600;
}

.bookflow-error-content ul {
  margin: 0;
  padding-left: var(--bookflow-space-4);
}

.bookflow-error-content li {
  margin-bottom: var(--bookflow-space-1);
}

/* ===== FREEMIUM ALERT ===== */

.bookflow-freemium-alert {
  margin-bottom: var(--bookflow-space-6);
  padding: var(--bookflow-space-4);
  background: linear-gradient(135deg, var(--bookflow-warning-light) 0%, #fef7ed 100%);
  border: 1px solid var(--bookflow-warning);
  border-radius: var(--bookflow-radius-md);
  color: var(--bookflow-warning);
}

.bookflow-freemium-alert strong {
  font-weight: 600;
}

.bookflow-freemium-alert a {
  color: var(--bookflow-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--bookflow-transition);
}

.bookflow-freemium-alert a:hover {
  text-decoration: underline;
  color: var(--bookflow-primary-hover);
}

/* ===== FLATPICKR INTEGRATION ===== */

.flatpickr-calendar {
  font-family: var(--bookflow-font-family) !important;
  border-radius: var(--bookflow-radius-lg) !important;
  box-shadow: var(--bookflow-shadow-xl) !important;
  border: 1px solid var(--bookflow-gray-200) !important;
}

.flatpickr-day {
  border-radius: var(--bookflow-radius) !important;
  transition: var(--bookflow-transition) !important;
}

.flatpickr-day:hover {
  background: var(--bookflow-primary-light) !important;
  border-color: var(--bookflow-primary) !important;
}

.flatpickr-day.selected {
  background: var(--bookflow-primary) !important;
  border-color: var(--bookflow-primary) !important;
}

.flatpickr-day.selected:hover {
  background: var(--bookflow-primary-hover) !important;
  border-color: var(--bookflow-primary-hover) !important;
}

.flatpickr-months .flatpickr-month {
  color: var(--bookflow-gray-800) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: var(--bookflow-white) !important;
}

/* ===== ADMIN DASHBOARD STYLES ===== */

.bookflow-dashboard {
  font-family: var(--bookflow-font-family);
  color: var(--bookflow-gray-900);
}

.bookflow-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--bookflow-space-6);
  margin: var(--bookflow-space-6) 0;
}

.bookflow-stat-card {
  background: var(--bookflow-white);
  border: 1px solid var(--bookflow-gray-200);
  border-radius: var(--bookflow-radius-lg);
  padding: var(--bookflow-space-6);
  box-shadow: var(--bookflow-shadow);
  transition: var(--bookflow-transition);
}

.bookflow-stat-card:hover {
  box-shadow: var(--bookflow-shadow-md);
  transform: translateY(-2px);
}

.bookflow-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bookflow-primary);
  margin: 0;
  line-height: 1.2;
}

.bookflow-stat-label {
  color: var(--bookflow-gray-500);
  font-size: 0.875rem;
  margin-top: var(--bookflow-space-1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== TABLES ===== */

.bookflow-table,
.bookflow-calendar-table,
.bookflow-clients-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--bookflow-space-6);
  background: var(--bookflow-white);
  border-radius: var(--bookflow-radius-lg);
  overflow: hidden;
  box-shadow: var(--bookflow-shadow);
}

.bookflow-table th,
.bookflow-table td,
.bookflow-calendar-table th,
.bookflow-calendar-table td,
.bookflow-clients-table th,
.bookflow-clients-table td {
  padding: var(--bookflow-space-4);
  text-align: left;
  border-bottom: 1px solid var(--bookflow-gray-200);
}

.bookflow-table th,
.bookflow-calendar-table th,
.bookflow-clients-table th {
  background: var(--bookflow-gray-50);
  font-weight: 600;
  color: var(--bookflow-gray-700);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bookflow-table tr:nth-child(even),
.bookflow-calendar-table tr:nth-child(even),
.bookflow-clients-table tr:nth-child(even) {
  background: var(--bookflow-gray-50);
}

.bookflow-table tr:hover,
.bookflow-calendar-table tr:hover,
.bookflow-clients-table tr:hover {
  background: var(--bookflow-primary-light);
}

/* ===== STATUS BADGES ===== */

.bookflow-status-active,
.bookflow-status-pending,
.bookflow-status-cancelled {
  padding: var(--bookflow-space-1) var(--bookflow-space-2);
  border-radius: var(--bookflow-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bookflow-status-active {
  color: var(--bookflow-success);
  background: var(--bookflow-success-light);
}

.bookflow-status-pending {
  color: var(--bookflow-warning);
  background: var(--bookflow-warning-light);
}

.bookflow-status-cancelled {
  color: var(--bookflow-error);
  background: var(--bookflow-error-light);
}

/* ===== CALENDAR VIEW ===== */

#bookflow-calendar {
  margin-top: var(--bookflow-space-10);
  background: var(--bookflow-white);
  border: 1px solid var(--bookflow-gray-200);
  border-radius: var(--bookflow-radius-lg);
  padding: var(--bookflow-space-4);
  box-shadow: var(--bookflow-shadow);
  overflow: hidden;
}

.fc-theme-standard .fc-scrollgrid {
  border-radius: var(--bookflow-radius);
}

.fc-theme-standard td,
.fc-theme-standard th {
  border-color: var(--bookflow-gray-200);
}

.fc-button-primary {
  background-color: var(--bookflow-primary) !important;
  border-color: var(--bookflow-primary) !important;
}

.fc-button-primary:hover {
  background-color: var(--bookflow-primary-hover) !important;
  border-color: var(--bookflow-primary-hover) !important;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
  .bookflow-calendar-wrapper,
  .bookflow-form {
    margin: var(--bookflow-space-4);
    padding: var(--bookflow-space-6);
  }
  
  .bookflow-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .bookflow-notification {
    max-width: calc(100vw - var(--bookflow-space-8));
    margin-right: var(--bookflow-space-4);
  }
  
  .bookflow-table,
  .bookflow-calendar-table,
  .bookflow-clients-table {
    font-size: 0.875rem;
  }
  
  .bookflow-table th,
  .bookflow-table td,
  .bookflow-calendar-table th,
  .bookflow-calendar-table td,
  .bookflow-clients-table th,
  .bookflow-clients-table td {
    padding: var(--bookflow-space-2);
  }
}

@media (max-width: 480px) {
  .bookflow-calendar-wrapper h3,
  .bookflow-form h3 {
    font-size: 1.5rem;
  }
  
  .bookflow-form-group input,
  .bookflow-form-group select,
  .bookflow-form-group textarea,
  .bookflow-calendar-wrapper input,
  .bookflow-calendar-wrapper select,
  .bookflow-calendar-wrapper textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .bookflow-stat-number {
    font-size: 1.5rem;
  }
}

/* ===== ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bookflow-calendar-wrapper,
  .bookflow-form {
    border: 2px solid;
  }
  
  .bookflow-form-group input,
  .bookflow-form-group select,
  .bookflow-form-group textarea,
  .bookflow-calendar-wrapper input,
  .bookflow-calendar-wrapper select,
  .bookflow-calendar-wrapper textarea {
    border-width: 2px;
  }
}

/* Focus indicators */
.bookflow-form-group input:focus-visible,
.bookflow-form-group select:focus-visible,
.bookflow-form-group textarea:focus-visible,
.bookflow-submit-btn:focus-visible,
.bookflow-calendar-wrapper input:focus-visible,
.bookflow-calendar-wrapper select:focus-visible,
.bookflow-calendar-wrapper textarea:focus-visible,
.bookflow-calendar-wrapper button:focus-visible {
  outline: 2px solid var(--bookflow-primary);
  outline-offset: 2px;
}

/* ===== ANIMATIONS ===== */

@keyframes bookflow-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bookflow-slide-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.bookflow-calendar-wrapper,
.bookflow-form {
  animation: bookflow-fade-in 0.5s ease-out;
}

.bookflow-notification {
  animation: bookflow-slide-up 0.3s ease-out;
}

/* ===== PRINT STYLES ===== */

@media print {
  .bookflow-calendar-wrapper,
  .bookflow-form {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .bookflow-submit-btn,
  .bookflow-calendar-wrapper button,
  .bookflow-form button {
    display: none;
  }
  
  .bookflow-notification,
  .bookflow-loading-overlay,
  .bookflow-freemium-alert {
    display: none !important;
  }
}