/* ===== CUSTOM STYLES — Separate from Tailwind processing ===== */
/* This file is imported directly and NOT processed by @tailwindcss/vite */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap");

/* ===== BASE STYLES — LIGHT MODE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f4ff 25%, #f8fbff 50%, #eef6fd 75%, #e4f0fb 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: #1e293b;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  min-height: 100vh;
  position: relative;
}

/* ===== ANIMATED GRADIENT BLOBS ===== */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}

.blob-1 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 168, 232, 0.35) 0%, rgba(0, 102, 179, 0.15) 40%, transparent 70%);
  top: -20%;
  left: -15%;
  animation: blobFloat1 20s ease-in-out infinite;
}

.blob-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 51, 102, 0.22) 0%, rgba(0, 128, 204, 0.10) 40%, transparent 70%);
  top: 35%;
  right: -20%;
  animation: blobFloat2 25s ease-in-out infinite;
}

.blob-3 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(0, 168, 232, 0.28) 0%, rgba(51, 187, 238, 0.12) 40%, transparent 70%);
  bottom: -25%;
  left: 20%;
  animation: blobFloat3 22s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(80px, 60px) scale(1.1); }
  50% { transform: translate(40px, 120px) scale(0.95); }
  75% { transform: translate(-30px, 80px) scale(1.05); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-60px, -40px) scale(1.08); }
  50% { transform: translate(-100px, 30px) scale(0.92); }
  75% { transform: translate(-40px, -80px) scale(1.03); }
}

@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -50px) scale(1.12); }
  50% { transform: translate(-30px, -80px) scale(0.9); }
  75% { transform: translate(70px, -20px) scale(1.06); }
}

/* ===== GLASS PANELS & CARDS ===== */
.glass-panel {
  background: rgba(255, 255, 255, 0.55) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.8) !important;
  backdrop-filter: blur(24px) saturate(1.8) !important;
  border: 1px solid rgba(0, 168, 232, 0.18) !important;
  border-radius: 1.25rem;
  box-shadow:
    0 8px 32px rgba(0, 51, 102, 0.10),
    0 2px 8px rgba(0, 168, 232, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.glass-card {
  background: rgba(255, 255, 255, 0.50) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.6) !important;
  backdrop-filter: blur(20px) saturate(1.6) !important;
  border: 1px solid rgba(0, 168, 232, 0.15) !important;
  border-radius: 1.25rem;
  box-shadow:
    0 4px 24px rgba(0, 51, 102, 0.08),
    0 1px 4px rgba(0, 168, 232, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.65) !important;
  border-color: rgba(0, 168, 232, 0.28) !important;
  box-shadow:
    0 8px 40px rgba(0, 51, 102, 0.12),
    0 2px 8px rgba(0, 168, 232, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.glass-card-elevated {
  background: rgba(255, 255, 255, 0.60) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.8) !important;
  backdrop-filter: blur(28px) saturate(1.8) !important;
  border: 1px solid rgba(0, 168, 232, 0.20) !important;
  border-radius: 1.5rem;
  box-shadow:
    0 12px 48px rgba(0, 51, 102, 0.12),
    0 4px 16px rgba(0, 168, 232, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.glass-card-flat {
  background: rgba(255, 255, 255, 0.35) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.3) !important;
  backdrop-filter: blur(12px) saturate(1.3) !important;
  border: 1px solid rgba(0, 168, 232, 0.12) !important;
  border-radius: 1rem;
  box-shadow:
    0 2px 12px rgba(0, 51, 102, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ===== GLASS BUTTONS ===== */
.glass-button {
  background: linear-gradient(135deg, #00a8e8 0%, #0066b3 50%, #003366 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.875rem;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.glass-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 50%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
}

.glass-button:hover {
  box-shadow:
    0 0 30px rgba(0, 168, 232, 0.45),
    0 8px 25px rgba(0, 51, 102, 0.15);
  transform: translateY(-2px);
}

.glass-button:hover::before {
  opacity: 1;
}

.glass-button:active {
  transform: translateY(0) scale(0.98);
}

/* ===== GLASS INPUTS ===== */
.glass-input {
  background: rgba(255, 255, 255, 0.65) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
  border: 1.5px solid rgba(0, 168, 232, 0.18) !important;
  border-radius: 0.875rem;
  color: #1e293b;
  padding: 0.8rem 1rem;
  width: 100%;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 0.9375rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.04);
}

.glass-input::placeholder {
  color: #94a3b8;
}

.glass-input:focus {
  border-color: #00a8e8 !important;
  background: rgba(255, 255, 255, 0.85) !important;
  box-shadow:
    0 0 0 4px rgba(0, 168, 232, 0.12),
    0 0 20px rgba(0, 168, 232, 0.08),
    0 4px 12px rgba(0, 51, 102, 0.06);
}

.glass-input:hover:not(:focus) {
  border-color: rgba(0, 168, 232, 0.35) !important;
  background: rgba(255, 255, 255, 0.75) !important;
}

.glass-input.error {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0, 51, 102, 0.03); border-radius: 3px; }
::-webkit-scrollbar-thumb { background: rgba(0, 168, 232, 0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 168, 232, 0.45); }
* { scrollbar-width: thin; scrollbar-color: rgba(0, 168, 232, 0.25) transparent; }

/* ===== STAR RATING ===== */
.star-rating { display: inline-flex; gap: 0.25rem; }
.star-rating .star { cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); color: rgba(0, 51, 102, 0.15); }
.star-rating .star:hover { transform: scale(1.2); }
.star-rating .star.active { color: #F59E0B; filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.4)); }
.star-rating .star.hover-preview { color: #FBBF24; transform: scale(1.1); }

/* ===== TRANSITIONS ===== */
a, button, input, select, textarea {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 168, 232, 0.3); }
  50% { box-shadow: 0 0 25px rgba(0, 168, 232, 0.5), 0 0 50px rgba(0, 168, 232, 0.2); }
}
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.animate-fade-in { animation: fadeIn 0.5s ease-out forwards; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-slide-in-left { animation: slideInLeft 0.4s ease-out forwards; }
.animate-slide-in-right { animation: slideInRight 0.4s ease-out forwards; }
.animate-scale-in { animation: scaleIn 0.3s ease-out forwards; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(0, 51, 102, 0.30);
}

/* ===== GLASS TABLE ===== */
.glass-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.glass-table thead th {
  background: rgba(0, 168, 232, 0.08);
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #334155;
  border-bottom: 2px solid rgba(0, 168, 232, 0.18);
}
.glass-table thead th:first-child { border-radius: 0.75rem 0 0 0; }
.glass-table thead th:last-child { border-radius: 0 0.75rem 0 0; }
.glass-table tbody tr { transition: background 0.2s; }
.glass-table tbody tr:hover { background: rgba(0, 168, 232, 0.06); }
.glass-table tbody td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(0, 51, 102, 0.06);
  font-size: 0.875rem;
  color: #334155;
}

/* ===== FILE UPLOAD DROP ZONE ===== */
.drop-zone {
  border: 2px dashed rgba(0, 168, 232, 0.30);
  border-radius: 1rem;
  transition: all 0.3s;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.40);
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: #00a8e8;
  background: rgba(0, 168, 232, 0.06);
  box-shadow: 0 0 20px rgba(0, 168, 232, 0.10);
}
.drop-zone.drag-over { transform: scale(1.01); }

/* ===== STAGGER CHILDREN ===== */
.stagger-children > * { opacity: 0; animation: fadeInUp 0.4s ease-out forwards; }
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }

/* ===== LIQUID LINE ===== */
.liquid-line {
  height: 4px;
  background: linear-gradient(90deg, transparent, #00a8e8, #003366, #00a8e8, transparent);
  border-radius: 2px;
  opacity: 0.6;
}
