/* 
 * SoFlo Home Craft & Management - Stylesheet
 * Luxury South Florida Coastal Architecture Design System
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --primary-navy: #0B192C;
  --navy-dark: #07101C;
  --navy-light: #1E3E62;
  --florida-teal: #008DDA;
  --florida-cyan: #41C9E2;
  --florida-gold: #FFB200;
  --gold-dark: #D98800;
  --accent-coral: #FF5A5F;
  --emerald-accent: #10B981;
  --bg-slate: #F8FAFC;
  --border-slate: #E2E8F0;
  --text-main: #1E293B;
  --text-muted: #64748B;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-slate);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Luxury Coastal Gradient & Backgrounds */
.bg-navy-gradient {
  background: linear-gradient(135deg, #07101C 0%, #0B192C 50%, #152d4a 100%);
}

.bg-teal-gradient {
  background: linear-gradient(135deg, #005C7A 0%, #008DDA 100%);
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #FFB200 0%, #D98800 100%);
}

.hero-gradient-overlay {
  background: linear-gradient(180deg, rgba(7, 16, 28, 0.85) 0%, rgba(11, 25, 44, 0.94) 100%);
}

.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.glass-card-dark {
  background: rgba(11, 25, 44, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Hover Lift Cards */
.card-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(11, 25, 44, 0.08), 0 8px 10px -6px rgba(11, 25, 44, 0.04);
  border-color: #CBD5E1;
}

/* Regional & Feature Badge */
.badge-pill, .badge-county {
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  color: white;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Pulsing Emergency Indicator */
.pulse-emergency {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #EF4444;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Before / After Split Slider */
.ba-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  user-select: none;
  touch-action: none;
}

.ba-container img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid white;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: white;
  color: var(--primary-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  cursor: ew-resize;
  z-index: 10;
}

.ba-tag {
  position: absolute;
  padding: 4px 10px;
  background: rgba(7, 16, 28, 0.75);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 5;
}
.ba-tag-before { top: 12px; left: 12px; }
.ba-tag-after { top: 12px; right: 12px; }

/* Custom Form Styles */
.custom-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  color: #1E293B;
  transition: all 0.2s ease;
}
.custom-input:focus {
  outline: none;
  border-color: #008DDA;
  box-shadow: 0 0 0 3px rgba(0, 141, 218, 0.15);
}

.custom-select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  border: 1.5px solid #E2E8F0;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  color: #1E293B;
  appearance: none;
  transition: all 0.2s ease;
}
.custom-select:focus {
  outline: none;
  border-color: #008DDA;
  box-shadow: 0 0 0 3px rgba(0, 141, 218, 0.15);
}

/* Kanban Board Columns */
.kanban-col {
  background-color: #F1F5F9;
  border-radius: 0.75rem;
  min-height: 550px;
  display: flex;
  flex-direction: column;
}

.kanban-card {
  background: white;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  cursor: grab;
  transition: all 0.2s ease;
}
.kanban-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  border-color: #CBD5E1;
}

/* Progress Step Tracker */
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}
.step-dot-active {
  background-color: #008DDA;
  color: white;
  box-shadow: 0 0 0 4px rgba(0, 141, 218, 0.2);
}
.step-dot-completed {
  background-color: #10B981;
  color: white;
}
.step-dot-pending {
  background-color: #E2E8F0;
  color: #64748B;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  min-width: 300px;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-success { background-color: #065F46; color: white; border-left: 4px solid #34D399; }
.toast-error { background-color: #991B1B; color: white; border-left: 4px solid #F87171; }
.toast-info { background-color: #1E40AF; color: white; border-left: 4px solid #60A5FA; }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Print Styles for Invoices and Quotes */
@media print {
  body { background: white; color: black; }
  header, footer, .no-print, #admin-sidebar, nav { display: none !important; }
  .print-only { display: block !important; }
  .glass-card, .kanban-card { box-shadow: none !important; border: 1px solid #ddd !important; }
  .print-page { margin: 0; padding: 20px; }
}
