/* ═══════════════════════════════════════════════════════════
   SOLUTION PHONE — FUTUR THEME v3.0
   Animations + Glassmorphism + Micro-interactions ONLY
   Base dark colors are in style.css
   ═══════════════════════════════════════════════════════════ */

/* ── KEYFRAMES ── */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(18px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 5px rgba(255,59,48,0.2); }
  50% { box-shadow: 0 0 20px rgba(255,59,48,0.5), 0 0 40px rgba(255,59,48,0.15); }
}
@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes countUp {
  from { opacity:0; transform:scale(0.5); }
  to { opacity:1; transform:scale(1); }
}

/* ── GLASSMORPHISM on sidebar ── */
.sidebar {
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
}
.logo-t {
  text-shadow: 0 0 20px rgba(255,59,48,0.4);
}

/* ── NAV ITEMS — slide effect ── */
.nav-item {
  transition: all 0.3s cubic-bezier(0.25,0.8,0.25,1);
  position: relative;
  overflow: hidden;
}
.nav-item::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,59,48,0.06), transparent);
  transition: left 0.5s;
}
.nav-item:hover::before { left: 100%; }
.nav-item:hover { transform: translateX(3px); }
.nav-item.active {
  box-shadow: 0 0 20px rgba(255,59,48,0.1), inset 0 0 1px rgba(255,59,48,0.3);
}

/* ── CARDS — glassmorphism + animation ── */
.card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.35s cubic-bezier(0.25,0.8,0.25,1);
  animation: fadeInUp 0.5s ease-out both;
  border-radius: 20px;
}
.card:hover {
  border-color: rgba(255,59,48,0.15);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px rgba(255,59,48,0.06);
  transform: translateY(-2px);
}

/* ── DASH/KPI CARDS — hover effects ── */
.dash-card {
  transition: all 0.3s ease;
  border-radius: 18px;
}
.dash-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35), 0 0 15px rgba(255,59,48,0.08);
}
.sp-kpi {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.sp-kpi:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255,59,48,0.2);
}
.sp-kpi__value { animation: countUp 0.6s ease-out both; }
.sp-kpi__value--amber { text-shadow: 0 0 15px rgba(255,149,0,0.3); }
.sp-kpi__value--blue { text-shadow: 0 0 15px rgba(96,165,250,0.3); }
.sp-kpi__value--green { text-shadow: 0 0 15px rgba(52,211,153,0.3); }
.sp-kpi__value--red { text-shadow: 0 0 15px rgba(255,59,48,0.3); }

/* ── BUTTONS — micro-interactions ── */
.btn {
  transition: all 0.25s cubic-bezier(0.25,0.8,0.25,1);
  position: relative;
  overflow: hidden;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.btn:active {
  transform: translateY(0) scale(0.97);
}
.btn-primary {
  background: linear-gradient(135deg, #ff3b30, #c0392b);
  box-shadow: 0 4px 15px rgba(255,59,48,0.35);
}
.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(255,59,48,0.5);
  background: linear-gradient(135deg, #ff4f44, #d94035);
}
/* Glow border on primary hover */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff3b30, #ff6b63, #ff3b30);
  background-size: 200% 200%;
  animation: gradient-move 3s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover::before { opacity: 0.5; }

/* ── INPUTS — focus glow ── */
input:focus, select:focus, textarea:focus {
  border-color: rgba(255,59,48,0.5);
  box-shadow: 0 0 0 3px rgba(255,59,48,0.1), 0 0 15px rgba(255,59,48,0.08);
  outline: none;
}

/* ── TABLE ROW HOVER ── */
table tr { transition: background 0.2s ease; }

/* ── CMD ROW CARDS — stagger animation ── */
.cmd-row-card {
  animation: fadeInUp 0.4s ease-out both;
  transition: all 0.3s cubic-bezier(0.25,0.8,0.25,1);
}
.cmd-row-card:hover {
  transform: translateX(4px);
  border-color: rgba(255,59,48,0.15);
}
.cmd-row-card:nth-child(1) { animation-delay: 0s; }
.cmd-row-card:nth-child(2) { animation-delay: 0.05s; }
.cmd-row-card:nth-child(3) { animation-delay: 0.1s; }
.cmd-row-card:nth-child(4) { animation-delay: 0.15s; }
.cmd-row-card:nth-child(5) { animation-delay: 0.2s; }

/* ── BADGES — subtle glow ── */
.badge-green { box-shadow: 0 0 8px rgba(52,211,153,0.15); }
.badge-red { box-shadow: 0 0 8px rgba(255,59,48,0.15); animation: pulse-glow 2.5s ease-in-out infinite; }

/* ── MOBILE NAV — glassmorphism ── */
#mobile-nav {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.mob-nav-btn.active {
  text-shadow: 0 0 10px rgba(255,59,48,0.4);
}

/* ── LOGIN — glassmorphism ── */
.login-box {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── MODAL — glassmorphism ── */
.modal {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,59,48,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,59,48,0.5); }

/* ── SELECTION ── */
::selection { background: rgba(255,59,48,0.3); color: #fff; }

/* ── FOCUS GLOW ── */
*:focus-visible {
  outline: 2px solid rgba(255,59,48,0.5);
  outline-offset: 2px;
}

/* ── PAGE TITLE — subtle glow ── */
.page-title {
  text-shadow: 0 0 30px rgba(255,59,48,0.12);
}

/* ── SMOOTH SCROLLING ── */
.main, .page { scroll-behavior: smooth; }
