@import url("https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&display=swap");

:root {
  --primary: #748cce;
  --primary-dark: #586caa;
  --bg-main: #eeeff3;
  --bg-card: #ffffff;
  --sidebar-bg: #23252a;
  --sidebar-hover: #353840;
  --sidebar-active: #e6e9f2;
  --sidebar-active-text: #23252a;
  --sidebar-text: #8b8e98;
  --text-dark: #1f2128;
  --text-muted: #8b8e98;
  --border-color: #e5e7eb;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  --bg-main: #121418;
  --bg-card: #1e2025;
  --sidebar-bg: #1e2025;
  --sidebar-hover: #2a2c33;
  --sidebar-active: #2a2c33;
  --sidebar-active-text: #ffffff;
  --sidebar-text: #8b8e98;
  --text-dark: #ffffff;
  --text-muted: #8b8e98;
  --border-color: #2a2c33;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Jost", sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  transition:
    background-color var(--transition),
    color var(--transition);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--text-dark);
}
p,
span,
div,
a {
  font-weight: 400;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border-top-right-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 16px 32px 16px;
  color: #fff;
  position: sticky;
  top: 0;
  background-color: var(--sidebar-bg);
  z-index: 2;
}

.sidebar-header .logo-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  color: var(--sidebar-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}

.sidebar-header h2 {
  color: #fff;
  font-size: 22px;
  margin: 0;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  padding: 0 16px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  color: var(--sidebar-text);
}

.nav-item:hover {
  background-color: var(--sidebar-hover);
  color: #fff;
}

.nav-item.active {
  background-color: var(--sidebar-active);
  color: var(--sidebar-active-text);
  font-weight: 600;
}
[data-theme="dark"] .nav-item.active {
  background-color: var(--sidebar-active);
  color: #fff;
}

.nav-item i {
  font-size: 20px;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 24px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  bottom: 0;
  background-color: var(--sidebar-bg);
  z-index: 2;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 32px 40px;
  transition: var(--transition);
  min-height: 100vh;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
}

.greeting h1 {
  font-size: 32px;
  margin-bottom: 4px;
}

.greeting h1 span {
  color: var(--primary);
}

.greeting p {
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  padding: 12px 20px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.search-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.search-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: var(--text-dark);
  width: 200px;
}

.search-bar i {
  color: var(--text-muted);
}

.action-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.action-btn:hover {
  transform: translateY(-2px);
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  box-shadow: var(--shadow);
}

/* Cards & Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.col-span-4 {
  grid-column: span 4;
}
.col-span-8 {
  grid-column: span 8;
}
.col-span-6 {
  grid-column: span 6;
}
.col-span-12 {
  grid-column: span 12;
}

/* Utilities */
.btn {
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(116, 140, 206, 0.4);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-dark);
  font-size: 15px;
  transition: var(--transition);
}

.form-control:hover {
  border-color: #d1d5db;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(116, 140, 206, 0.15);
}

/* Specific UI from image */
.balance-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.balance-title {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.balance-amount {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 8px;
}

.balance-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.mini-chart {
  height: 80px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: auto;
}
.mini-bar {
  flex: 1;
  background: var(--primary);
  border-radius: 8px;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: bottom;
}
.mini-bar:hover {
  opacity: 1;
  transform: scaleY(1.1);
}
.mini-bar:last-child {
  background: var(--primary-dark);
  opacity: 1;
}

/* Bank Card Look */
.credit-card {
  background: linear-gradient(135deg, #7ba1e8, #5c7fdb);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.card-chip {
  width: 45px;
  height: 30px;
  background: #f8c253;
  border-radius: 6px;
  margin-bottom: 24px;
}

.card-number {
  font-size: 24px;
  letter-spacing: 2px;
  margin-bottom: 24px;
  font-family: monospace;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Transactions */
.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.card-title-lg {
  font-size: 18px;
  font-weight: 600;
}
.more-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.more-btn:hover {
  color: var(--primary);
  transform: scale(1.15);
}

.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.transaction-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  margin-left: -12px;
  margin-right: -12px;
}
.transaction-item:hover {
  background-color: var(--bg-main);
  transform: translateX(4px);
}
.tx-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.3s ease;
}
.transaction-item:hover .tx-icon {
  transform: scale(1.1) rotate(5deg);
}
.tx-icon img {
  width: 24px;
  height: 24px;
}
.tx-info {
  flex: 1;
}
.tx-name {
  font-weight: 600;
  font-size: 16px;
}
.tx-date {
  font-size: 13px;
  color: var(--text-muted);
}
.tx-amount {
  font-weight: 600;
  font-size: 16px;
}

/* Progress Section */
.progress-item {
  margin-bottom: 24px;
}
.progress-label {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}
.progress-val {
  font-size: 24px;
  font-weight: 700;
}
.progress-text {
  font-size: 13px;
  color: var(--text-muted);
}
.progress-bar-bg {
  height: 12px;
  background: var(--bg-main);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}
.progress-bar-bg:hover .progress-bar-fill {
  filter: brightness(1.15);
}
.bg-blue {
  background: var(--primary);
}
.bg-yellow {
  background: #eab308;
}

.premium-card {
  background: var(--sidebar-bg);
  color: #fff;
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.premium-info h3 {
  color: #fff;
  margin-bottom: 4px;
}
.premium-info p {
  color: var(--text-muted);
  font-size: 13px;
}
.premium-btn {
  background: #fff;
  color: var(--sidebar-bg);
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

/* Settings Theme Toggle */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-switch {
  display: inline-block;
  height: 28px;
  position: relative;
  width: 50px;
}
.theme-switch input {
  display: none;
}
.slider {
  background-color: var(--bg-main);
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.4s;
  border-radius: 34px;
  border: 1px solid var(--border-color);
}
.slider:before {
  background-color: var(--text-dark);
  bottom: 3px;
  content: "";
  height: 20px;
  left: 4px;
  position: absolute;
  transition: 0.4s;
  width: 20px;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--primary);
  border-color: var(--primary);
}
input:checked + .slider:before {
  transform: translateX(20px);
  background-color: #fff;
}

/* Hide auth stuff by default on login page */
body.login-page {
  align-items: center;
  justify-content: center;
  background: var(--bg-main);
}
body.login-page .sidebar,
body.login-page .topbar {
  display: none;
}
body.login-page .main-content {
  margin-left: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.login-card {
  width: 100%;
  max-width: 440px;
  padding: 40px;
  text-align: center;
}

.login-card .logo-icon {
  width: 60px;
  height: 60px;
  background: var(--sidebar-bg);
  color: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 30px;
  margin: 0 auto 24px auto;
}

.login-card h2 {
  margin-bottom: 8px;
}

.login-card p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.form-group.text-left {
  text-align: left;
}

/* Error message */
.error-msg {
  color: #ef4444;
  font-size: 14px;
  margin-top: -10px;
  margin-bottom: 20px;
  display: none;
  text-align: left;
}

/* Calculators Layout */
.calculator-container {
  max-width: 600px;
  margin: 0 auto;
}
.calc-result {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}
.calc-result h3 {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.calc-result .total {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.calc-box {
  background: var(--bg-main);
  padding: 16px;
  border-radius: var(--radius-md);
}
.calc-box label {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}
.calc-box .val {
  font-size: 20px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .col-span-4 {
    grid-column: span 6;
  }
  .col-span-8 {
    grid-column: span 12;
  }
}

@media (max-width: 900px) {
  .premium-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
    padding: 24px 20px;
  }
  .hamburger {
    display: block;
  }
  .topbar-right .search-bar input {
    width: 120px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .col-span-4,
  .col-span-6,
  .col-span-8,
  .col-span-12 {
    grid-column: span 1;
  }
  .greeting h1 {
    font-size: 24px;
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }
}

/* Company Cards */
.company-card-wrapper {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.company-card-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.company-avatar {
  min-width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  text-transform: uppercase;
}
.company-details {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.company-details h4 {
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.company-details p {
  font-size: 13px;
  color: var(--text-muted);
}
.delete-company-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #ef4444;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: none;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.company-card-wrapper:hover .delete-company-btn {
  display: flex;
  background: rgba(239, 68, 68, 0.1);
}

/* =========================================
   Animations & Keyframes
   ========================================= */

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideRightFade {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(116, 140, 206, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(116, 140, 206, 0); }
  100% { box-shadow: 0 0 0 0 rgba(116, 140, 206, 0); }
}

@keyframes bellRing {
  0% { transform: rotate(0); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-10deg); }
  30% { transform: rotate(5deg); }
  40% { transform: rotate(-5deg); }
  50% { transform: rotate(0); }
  100% { transform: rotate(0); }
}

@keyframes floatElement {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Utility Classes */
.animate-slide-up {
  opacity: 0;
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-right {
  opacity: 0;
  animation: slideRightFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Enhanced Hovers */
.nav-item {
  transition: all 0.3s ease;
}
.nav-item:hover {
  transform: translateX(6px);
  background-color: var(--sidebar-hover);
  color: #fff;
}

.action-btn i {
  transition: transform 0.3s ease;
}
.action-btn:hover i {
  animation: bellRing 1s ease infinite;
}

.profile-avatar {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}
.profile-avatar:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.balance-card {
  position: relative;
  overflow: hidden;
}
.balance-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: left 0.7s ease;
  z-index: 1;
  pointer-events: none;
}
[data-theme="dark"] .balance-card::before {
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
}
.balance-card:hover::before {
  left: 200%;
}

.premium-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.premium-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.login-page {
  position: relative;
  overflow: hidden;
}
.login-page::before, .login-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  animation: floatElement 8s ease-in-out infinite;
}
.login-page::before {
  width: 300px; height: 300px;
  background: rgba(116, 140, 206, 0.3);
  top: -100px; left: -100px;
}
.login-page::after {
  width: 400px; height: 400px;
  background: rgba(234, 179, 8, 0.2);
  bottom: -150px; right: -150px;
  animation-delay: -4s;
}

.login-card {
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* -------------------------------------
   ADVANCED ANIMATIONS (NEW)
-------------------------------------- */

/* 1. Ripple Effect for Buttons */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}
.btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}
@keyframes ripple {
  0% { transform: scale(0, 0); opacity: 0.5; }
  20% { transform: scale(30, 30); opacity: 0.3; }
  100% { opacity: 0; transform: scale(50, 50); }
}

/* 2. Shimmer Effect (Loading skeleton style) on text */
.shimmer-text {
  background: linear-gradient(90deg, var(--text-dark) 0%, rgba(116, 140, 206, 0.8) 50%, var(--text-dark) 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}
[data-theme="dark"] .shimmer-text {
  background: linear-gradient(90deg, #fff 0%, var(--primary) 50%, #fff 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}
@keyframes shimmer {
  to { background-position: 200% center; }
}

/* 3. 3D Card Hover Tilt */
.tilt-card {
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
}
.tilt-card:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) scale3d(1.02, 1.02, 1.02);
  box-shadow: 20px 20px 50px rgba(0,0,0,0.1);
  z-index: 10;
}

/* 4. Glowing Border Animation for active inputs or areas */
.glow-border {
  position: relative;
}
.glow-border::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, var(--primary), #ec4899, #8b5cf6, var(--primary));
  z-index: -1;
  border-radius: inherit;
  background-size: 300%;
  animation: rgbGlow 6s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.glow-border:hover::before, .glow-border:focus-within::before {
  opacity: 1;
}
@keyframes rgbGlow {
  0% { background-position: 0 0; }
  50% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* 5. Heartbeat / Pulse for important alerts */
.pulse-icon {
  animation: heartbeat 2s ease-in-out infinite both;
}
@keyframes heartbeat {
  from { transform: scale(1); transform-origin: center center; animation-timing-function: ease-out; }
  10% { transform: scale(0.91); animation-timing-function: ease-in; }
  17% { transform: scale(0.98); animation-timing-function: ease-out; }
  33% { transform: scale(0.87); animation-timing-function: ease-in; }
  45% { transform: scale(1); animation-timing-function: ease-out; }
}

/* 6. Continuous Floating Logo */
.sidebar-header .logo-icon {
  animation: floatSubtle 4s ease-in-out infinite;
}
@keyframes floatSubtle {
  0% { transform: translateY(0); box-shadow: 0 0 0 rgba(255,255,255,0); }
  50% { transform: translateY(-4px); box-shadow: 0 10px 15px rgba(255,255,255,0.1); }
  100% { transform: translateY(0); box-shadow: 0 0 0 rgba(255,255,255,0); }
}

/* 7. Wiggle on Hover */
.wiggle-hover:hover {
  animation: wiggle 0.5s ease;
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
  75% { transform: rotate(-2deg); }
}

/* 8. Fade in down */
.fade-in-down {
  opacity: 0;
  animation: fadeInDown 0.6s ease forwards;
}
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 9. Zoom in fade */
.zoom-in {
  opacity: 0;
  animation: zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes zoomIn {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}
