/* SmartHR Admin Dashboard - Pure CSS3 */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Vela Design Tokens */
  --acc: #7c5cff;
  --acc-2: #9d86ff;
  --acc-soft: rgba(124, 92, 255, 0.15);
  --bg-0: #090a0f;
  --bg-1: #0c0e15;
  --bg-2: #12141d;
  --bg-3: #1a1d28;
  --bg-inset: #0c0e15;
  --t0: #f3f4f9;
  --t1: #9aa1b2;
  --t2: #5f6678;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --ok: #33d493;
  --bad: #f76d7d;
  --warn: #f7b84e;
  --info: #56a8ff;

  /* Mapped legacy tokens */
  --primary-orange: #7c5cff;
  --primary-orange-dark: #6b4de6;
  --sidebar-width: 260px;
  --header-height: 64px;
  --bg-light: #090a0f;
  --bg-white: #12141d;
  --sidebar-dark: #0c0e15;
  --sidebar-dark-hover: #1a1d28;
  --header-dark: #0c0e15;
  --text-primary: #f3f4f9;
  --text-secondary: #9aa1b2;
  --text-muted: #5f6678;
  --text-light: #ffffff;
  --border-color: rgba(255, 255, 255, 0.07);
  --border-dark: rgba(255, 255, 255, 0.13);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.75);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --gold-primary: #7c5cff;
  --gold-light: #9d86ff;
  --gold-dark: #6b4de6;
  --gold-accent: #9d86ff;
  --gold-gradient: linear-gradient(135deg, #7c5cff 0%, #9d86ff 100%);
  --gold-shadow: rgba(124, 92, 255, 0.25);
  --color-primary: #7c5cff;
  --color-primary-light: #9d86ff;
  --color-primary-dark: #6b4de6;
  --color-secondary: #9d86ff;
  --color-success: #33d493;
  --color-warning: #f7b84e;
  --color-danger: #f76d7d;
  --color-info: #56a8ff;
  --color-purple: #7c5cff;
  --color-pink: #f76d7d;
  --color-blue: #56a8ff;
  --color-cyan: #56a8ff;
  --color-teal: #33d493;
  --color-orange: #f7b84e;
  --color-indigo: #7c5cff;
  --color-violet: #9d86ff;
  --gradient-primary: linear-gradient(135deg, #7c5cff 0%, #9d86ff 100%);
  --gradient-secondary: linear-gradient(135deg, #9d86ff 0%, #7c5cff 100%);
  --bg-black: #090a0f;
  --bg-dark-grey: #12141d;
  --gradient-warm: linear-gradient(135deg, #f7b84e 0%, #f76d7d 100%);
  --gradient-cool: linear-gradient(135deg, #56a8ff 0%, #7c5cff 100%);
  --gradient-rainbow: linear-gradient(
    135deg,
    #7c5cff 0%,
    #9d86ff 25%,
    #56a8ff 50%,
    #33d493 75%,
    #f7b84e 100%
  );
}

body {
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-0);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  pointer-events: none;
  z-index: 0;
  animation: none;
  opacity: 0;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   DASHBOARD WRAPPER
   ============================================ */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  width: 100%;
  overflow-x: hidden;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  display: none;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(124, 92, 255, 0.15);
  background: #141414;
  position: relative;
}

.sidebar-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(124, 92, 255, 0.2) 50%,
    transparent 100%
  );
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: auto;
  max-height: none;
  width: auto;
  max-width: none;
  display: block;
  flex-shrink: 0;
}

/* Sidebar Navigation */
.sidebar-nav {
  padding: 20px 0;
}

.nav-section {
  margin-bottom: 30px;
}

.nav-section-title {
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  position: relative;
}

.nav-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(124, 92, 255, 0.15) 50%,
    transparent 100%
  );
}

.nav-menu {
  list-style: none;
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--text-primary);
  transition: all 0.2s;
  position: relative;
  font-size: 14px;
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
  touch-action: manipulation;
}

.nav-link:hover {
  background: linear-gradient(
    90deg,
    rgba(124, 92, 255, 0.08) 0%,
    rgba(107, 77, 230, 0.06) 50%,
    rgba(124, 92, 255, 0.04) 100%
  );
  color: var(--primary-orange);
  transform: translateX(4px);
  box-shadow: inset 4px 0 12px rgba(124, 92, 255, 0.1);
}

.nav-item.active > .nav-link {
  background: linear-gradient(
    90deg,
    rgba(124, 92, 255, 0.12) 0%,
    rgba(107, 77, 230, 0.1) 50%,
    rgba(124, 92, 255, 0.08) 100%
  );
  color: var(--primary-orange);
  font-weight: 600;
  box-shadow:
    inset 4px 0 16px rgba(124, 92, 255, 0.15),
    0 2px 8px rgba(124, 92, 255, 0.08);
}

.nav-item.active > .nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #7c5cff 0%, #6b4de6 50%, #7c5cff 100%);
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.4);
  border-radius: 0 4px 4px 0;
}

.nav-icon {
  width: 20px;
  margin-right: 12px;
  text-align: center;
  font-size: 16px;
}

.nav-text {
  flex: 1;
}

.nav-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.nav-badge.hot {
  background-color: #dc3545;
  color: white;
}

.nav-arrow {
  margin-left: 8px;
  font-size: 10px;
  transition: transform 0.3s;
}

.nav-item.active .nav-arrow {
  transform: rotate(180deg);
}

/* Submenu */
.nav-submenu {
  list-style: none;
  background-color: #1a1a1a;
  display: none;
  padding: 5px 0;
}

.nav-item.active .nav-submenu {
  display: block;
}

.submenu-item {
  margin: 0;
}

.submenu-item a {
  display: block;
  padding: 10px 20px 10px 52px;
  color: var(--text-secondary);
  font-size: 13px;
  transition: all 0.2s;
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
  touch-action: manipulation;
}

.submenu-item a:hover {
  background: linear-gradient(
    90deg,
    rgba(124, 92, 255, 0.08) 0%,
    rgba(107, 77, 230, 0.06) 100%
  );
  color: var(--color-primary);
  transform: translateX(4px);
}

.submenu-item.active a {
  color: var(--color-primary);
  background: linear-gradient(
    90deg,
    rgba(124, 92, 255, 0.12) 0%,
    rgba(107, 77, 230, 0.1) 100%
  );
  position: relative;
  font-weight: 600;
}

.submenu-item.active a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
  box-shadow: 0 0 8px rgba(124, 92, 255, 0.4);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  flex: 1;
  margin-left: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Page transition properties */
  position: relative;
  z-index: 1;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 0;
  padding-bottom: 80px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  /* Simple dark background - Pure Black */
  background-color: #000000;
  background: #000000;
}

/* ============================================
   PAGE TRANSITIONS
   Fade + Y-axis movement (Framer Motion AnimatePresence style)
   Subtle and professional for dashboard UI
   ============================================ */

/* Initial state - page entering */
.main-content.page-enter {
  opacity: 0;
  transform: translateY(20px);
}

/* Active state - page entered */
.main-content.page-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Exit state - page leaving */
.main-content.page-exit-active {
  opacity: 0;
  transform: translateY(-20px);
  transition:
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .main-content.page-enter,
  .main-content.page-enter-active,
  .main-content.page-exit-active {
    transition:
      opacity 0.1s ease,
      transform 0.1s ease;
  }

  .main-content.page-enter {
    transform: translateY(0);
  }

  .main-content.page-exit-active {
    transform: translateY(0);
  }
}

/* ============================================
   TOP HEADER / NAVBAR
   ============================================ */
.top-header {
  height: var(--header-height);
  background: var(--bg-1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: none;
  position: relative;
}

.top-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.header-back-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  margin-right: 10px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.header-back-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.1) 0%,
    rgba(107, 77, 230, 0.08) 100%
  );
  color: var(--primary-orange);
  transform: translateX(-2px);
  box-shadow: 0 2px 8px rgba(124, 92, 255, 0.15);
}

.header-back-btn svg {
  width: 18px;
  height: 18px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.menu-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  flex-shrink: 0;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.menu-toggle:hover {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(139, 92, 246, 0.1) 100%
  );
  color: var(--color-primary);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 500px;
  min-width: 200px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  z-index: 1;
}

.search-icon svg {
  width: 18px;
  height: 18px;
}

.search-input {
  width: 100%;
  padding: 11px 110px 11px 45px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background-color: #1a1a1a;
  transition: all 0.2s ease;
}

.search-input::placeholder {
  color: var(--text-secondary);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--bg-white);
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.1),
    0 4px 12px rgba(99, 102, 241, 0.15);
}

.search-shortcut {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: var(--bg-white);
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", monospace;
  letter-spacing: 0.5px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-icons-group {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 12px;
  border-right: 1px solid var(--border-color);
  margin-right: 12px;
}

.header-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  position: relative;
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.header-icon-btn svg {
  width: 18px;
  height: 18px;
  transition: color 0.2s ease;
}

.header-icon-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.1) 0%,
    rgba(107, 77, 230, 0.08) 100%
  );
  color: var(--primary-orange);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(124, 92, 255, 0.15);
}

.header-icon-btn:active {
  transform: scale(0.95);
}

.header-icon-with-badge {
  position: relative;
}

.header-icon-with-badge .badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  padding: 0 5px;
  border: 2px solid var(--bg-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.badge-blue {
  background-color: #0d6efd;
}

.badge-red {
  background-color: #dc3545;
}

.user-profile {
  display: flex;
  align-items: center;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: 50px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-profile-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.08) 0%,
    rgba(107, 77, 230, 0.06) 100%
  );
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

.user-dropdown-icon {
  width: 12px;
  height: 12px;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.user-profile-btn:hover .user-dropdown-icon {
  color: var(--primary-orange);
}

.user-profile-btn:active .user-dropdown-icon {
  transform: rotate(180deg);
}

.user-profile {
  position: relative;
}

.user-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background:
    radial-gradient(
      circle at top right,
      rgba(124, 92, 255, 0.05) 0%,
      transparent 50%
    ),
    #333333;
  border-radius: var(--radius-md);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  padding: 8px 0;
  display: none;
  z-index: 9999;
  border: 1px solid rgba(124, 92, 255, 0.12);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  visibility: hidden;
}

.user-profile-dropdown.show {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
  visibility: visible !important;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: linear-gradient(
    90deg,
    rgba(124, 92, 255, 0.08) 0%,
    rgba(107, 77, 230, 0.06) 50%,
    rgba(124, 92, 255, 0.04) 100%
  );
  color: var(--primary-orange);
}

.dropdown-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.dropdown-item:hover svg {
  color: var(--primary-orange);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 8px 0;
}

.header-buttons-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 15px;
  padding-right: 15px;
  border-right: 1px solid var(--border-color);
}

.header-buttons-group .btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  white-space: nowrap;
}

/* ============================================
   PAGE CONTAINER
   ============================================ */
.page-container {
  flex: 1;
  padding: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  min-width: 0;
}

/* Override Bootstrap container-fluid to work within our layout */
.main-content .container-fluid {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.page-title-section h1 {
  /* Styles are now in .page-title class */
  margin-bottom: 8px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--primary-orange);
}

.breadcrumb span {
  color: var(--text-secondary);
}

.page-actions {
  display: flex;
  gap: 10px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
}

.btn-primary {
  background: #7c5cff;
  color: #000;
  border: 1px solid #7c5cff;
  box-shadow: 0 2px 4px rgba(124, 92, 255, 0.2);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #6b4de6;
  border-color: #6b4de6;
  box-shadow: 0 4px 8px rgba(124, 92, 255, 0.3);
}

.btn-warning {
  background: #7c5cff;
  color: white;
  border: 1px solid #7c5cff;
  box-shadow: 0 2px 4px rgba(124, 92, 255, 0.2);
  transition: all 0.2s ease;
}

.btn-warning:hover {
  background: #6b4de6;
  border-color: #6b4de6;
  box-shadow: 0 4px 8px rgba(124, 92, 255, 0.3);
}

.btn-outline {
  background: #333333;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: #444444;
  border-color: #7c5cff;
  color: #7c5cff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.btn-outline-primary {
  background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
  border: 1px solid var(--primary-orange);
  color: var(--primary-orange);
  box-shadow:
    0 2px 6px rgba(124, 92, 255, 0.2),
    0 1px 3px rgba(124, 92, 255, 0.1),
    inset 0 1px 1px rgba(124, 92, 255, 0.1);
}

.btn-outline-primary:hover {
  background: linear-gradient(
    135deg,
    var(--primary-orange) 0%,
    var(--primary-orange-dark) 100%
  );
  color: white;
  box-shadow:
    0 4px 12px rgba(124, 92, 255, 0.25),
    0 2px 6px rgba(124, 92, 255, 0.15),
    inset 0 1px 2px rgba(124, 92, 255, 0.15),
    inset 0 -1px 2px rgba(107, 77, 230, 0.2);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary-orange);
  padding: 0;
  font-weight: 600;
  text-decoration: none;
}

.btn-link:hover {
  text-decoration: underline;
}

/* ============================================
   WELCOME CARD
   ============================================ */
.welcome-card {
  background: var(--bg-2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: none;
  animation: none;
  position: relative;
  overflow: hidden;
}

.welcome-card::before {
  display: none;
}

.welcome-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  animation: none;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.2);
  border: 2px solid var(--line-2);
}

.welcome-avatar::before {
  display: none;
}

.welcome-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: bounceInCurve 1s ease-out;
}

.welcome-content {
  flex: 1;
}

.welcome-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.welcome-content p {
  color: var(--text-secondary);
  font-size: 14px;
}

.highlight {
  color: var(--primary-orange);
  font-weight: 600;
}

.welcome-actions {
  display: flex;
  gap: 10px;
}

/* ============================================
   KPI CARDS
   ============================================ */
/* Grid layout removed - now using Bootstrap grid system */

.kpi-card {
  background: var(--bg-2);
  background-color: var(--bg-2);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: none;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
  transform-origin: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: none;
}

.kpi-card::before {
  display: none;
}

.kpi-card::after {
  display: none;
}

.kpi-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

@keyframes gradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes cardGlowRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes cardShimmer {
  0% {
    transform: translateX(-100%) translateY(-100%);
  }
  100% {
    transform: translateX(100%) translateY(100%);
  }
}

.kpi-card:nth-child(1),
.kpi-card:nth-child(2),
.kpi-card:nth-child(3),
.kpi-card:nth-child(4) {
  animation: none;
}

/* .kpi-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.1) 0%, transparent 70%);
    animation: rotate3D 20s linear infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
} */

.kpi-card:hover::after {
  opacity: 1;
}

.kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  animation: none;
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  box-shadow: none;
  border: none;
  transition: transform 0.2s ease;
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(2deg);
  }
}

.kpi-card:hover .kpi-icon {
  transform: scale(1.1) rotate(5deg) !important;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.2),
    0 6px 16px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(124, 92, 255, 0.2) !important;
}

@keyframes zoom-in-zoom-out {
  0% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1.5, 1.5);
  }
  100% {
    transform: scale(1, 1);
  }
}
.kpi-icon.orange {
  background: linear-gradient(135deg, #f76701 0%, #f76701 50%, #f76701 100%);
  color: white;
  /* box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4), 0 2px 8px rgba(249, 115, 22, 0.3); */
}

.kpi-icon.teal {
  background: linear-gradient(135deg, #017a6c 0%, #017a6c 50%, #017a6c 100%);
  color: white;
}

.kpi-icon.blue {
  background: linear-gradient(135deg, #0062ff 0%, #0062ff 50%, #0062ff 100%);
  color: white;
}

.kpi-icon.pink {
  background: linear-gradient(135deg, #ff0080 0%, #ff0080 50%, #ff0080 100%);
  color: white;
}

.kpi-icon.purple {
  background: linear-gradient(135deg, #4e02ff 0%, #4e02ff 50%, #4e02ff 100%);
  color: white;
}

.kpi-icon.red {
  background: linear-gradient(135deg, #ff0080 0%, #ff0080 50%, #ff0080 100%);
  color: white;
}

.kpi-icon.green {
  background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
  color: white;
}

.kpi-icon.dark {
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 50%, #a5b4fc 100%);
  color: white;
}

.kpi-content {
  flex: 1;
}

.kpi-content h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #c0eb00 0%, #c0eb00 50%, #c0eb00 100%);
  /* -webkit-background-clip: text; */
  /* -webkit-text-fill-color: transparent; */
  background-clip: text;
  background-size: 200% 200%;
  /* animation: kpiNumberGradi                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ent 3s ease infinite; */
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@keyframes kpiNumberGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.kpi-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.kpi-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.kpi-change {
  font-weight: 600;
}

.kpi-change.positive {
  color: #198754;
}

.kpi-change.negative {
  color: #dc3545;
}

.kpi-footer a {
  color: var(--text-secondary);
  font-size: 12px;
}

.kpi-footer a:hover {
  color: var(--primary-orange);
}

/* ============================================
   CONTENT GRID
   ============================================ */
/* Grid layout removed - now using Bootstrap grid system */

.content-card {
  background: var(--bg-2);
  background-color: var(--bg-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: none;
  position: relative;
  overflow: hidden;
  animation: none;
}

.content-card::before {
  display: none;
}

.content-card::after {
  display: none;
}

.content-card:hover::after {
  opacity: 1;
}

@keyframes contentGradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes contentCardRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Grid column spans removed - now using Bootstrap column classes */

.card-header {
  padding: 24px 24px 20px 24px;
  border-bottom: 2px solid;
  border-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(124, 92, 255, 0.15) 20%,
      rgba(124, 92, 255, 0.2) 50%,
      rgba(124, 92, 255, 0.15) 80%,
      transparent 100%
    )
    1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #000;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.card-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 92, 255, 0.08),
    transparent
  );
  transition: left 0.5s ease;
}

.card-header:hover::before {
  left: 100%;
}

.card-header h3 {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    #7c5cff 50%,
    var(--text-primary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: headerGradientShift 4s ease infinite;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

@keyframes headerGradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.card-body {
  padding: 20px;
}

/* ============================================
   DATA TABLE
   ============================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  background-color: #000000;
  padding: 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-color);
}

.data-table tbody td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-primary);
}

.data-table tbody tr:hover {
  background-color: #333333;
}

.team-avatars {
  display: flex;
  align-items: center;
  gap: -8px;
}

.team-avatars img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #333333;
  margin-left: -8px;
  object-fit: cover;
}

.team-avatars img:first-child {
  margin-left: 0;
}

.avatar-more {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #1a1a1a;
  border: 2px solid #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: -8px;
}

.progress-cell {
  min-width: 120px;
}

.progress-cell span {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.progress-bar {
  height: 6px;
  background-color: #1a1a1a;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #ffc107;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  animation: shimmerMove 2s ease-in-out infinite;
}

.progress-fill::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 92, 255, 0.2),
    transparent
  );
  animation: shimmerMove 1.5s ease-in-out infinite;
}

.badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
}

.badge-high {
  background-color: #fee;
  color: #dc3545;
}

.badge-medium {
  background-color: #3a3a2a;
  color: #856404;
}

.badge-low {
  background-color: #d1e7dd;
  color: #198754;
}

.badge-success {
  background-color: var(--success-bg);
  color: var(--success);
}

.badge-completed {
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.badge-paused {
  background-color: var(--warning-bg);
  color: var(--warning);
}

.badge-error {
  background-color: rgba(107, 77, 230, 0.15);
  color: #6b4de6;
  border: 1px solid rgba(107, 77, 230, 0.3);
  font-weight: 600;
}

.badge-warning {
  background-color: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-weight: 600;
}

.badge-danger {
  background-color: rgba(107, 77, 230, 0.15);
  color: #6b4de6;
  border: 1px solid rgba(107, 77, 230, 0.3);
  font-weight: 600;
}

/* ============================================
   TASKS CHART
   ============================================ */
.tasks-chart-container {
  text-align: center;
}

.circular-chart {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
}

.chart-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.chart-bg {
  fill: none;
  stroke: #e9ecef;
  stroke-width: 12;
}

.chart-segment {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
}

.chart-segment.yellow {
  stroke: #ffc107;
}

.chart-segment.blue {
  stroke: #0d6efd;
}

.chart-segment.green {
  stroke: #198754;
}

.chart-segment.red {
  stroke: #dc3545;
}

.chart-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.chart-center h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.chart-center p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 5px 0 0 0;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: zoomInOutSubtle 3.5s ease-in-out infinite;
  transform-origin: center;
  display: inline-block;
}

.legend-dot.yellow {
  background-color: #ffc107;
}

.legend-dot.blue {
  background-color: #0d6efd;
}

.legend-dot.green {
  background-color: #198754;
}

.legend-dot.red {
  background-color: #dc3545;
}

.tasks-summary {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #1a1a1a;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-primary);
}

/* ============================================
   SCHEDULE ITEMS
   ============================================ */
.schedule-item {
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  background-color: var(--bg-white);
}

.schedule-item:last-child {
  margin-bottom: 0;
}

.schedule-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
  color: white;
}

.schedule-tag.blue {
  background-color: #0d6efd;
}

.schedule-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--text-primary);
}

.schedule-time {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0 0 15px 0;
}

.schedule-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================
   ACTIVITY LIST
   ============================================ */
.activity-list {
  padding: 0;
}

.activity-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-content h4 {
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 5px 0;
  color: var(--text-primary);
  line-height: 1.4;
}

.activity-content p {
  font-size: 11px;
  margin: 0;
}

/* ============================================
   BIRTHDAY SECTION
   ============================================ */
.birthday-section {
  margin-bottom: 20px;
}

.birthday-section:last-child {
  margin-bottom: 0;
}

.birthday-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.birthday-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  transition: background-color 0.2s;
}

.birthday-item:hover {
  background-color: #1a1a1a;
}

.birthday-item:last-child {
  margin-bottom: 0;
}

.birthday-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.birthday-info {
  flex: 1;
}

.birthday-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 2px 0;
  color: var(--text-primary);
}

.birthday-info p {
  font-size: 12px;
  margin: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-muted {
  color: var(--text-muted) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1400px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-card {
    grid-column: span 2;
  }

  .tasks-card {
    grid-column: span 2;
  }
}

@media (max-width: 992px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .projects-card,
  .tasks-card {
    grid-column: span 1;
  }

  .welcome-card {
    flex-direction: column;
    text-align: center;
  }

  .welcome-actions {
    width: 100%;
    flex-direction: column;
  }
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.3s ease;
  will-change: opacity;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  touch-action: none; /* Prevent scrolling when overlay is active */
  pointer-events: none;
}

.sidebar-overlay.active {
  pointer-events: auto;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .sidebar {
    transition:
      transform 0.1s ease,
      opacity 0.1s ease,
      visibility 0.1s ease;
  }

  .sidebar-overlay {
    transition:
      opacity 0.1s ease,
      visibility 0.1s ease;
  }
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    padding: 0;
    padding-bottom: 80px;
    width: 100%;
    max-width: 100%;
  }

  /* Header Mobile - Single Line Layout */
  .top-header {
    padding: 10px 12px;
    height: var(--header-height);
    min-height: var(--header-height);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
  }

  .header-back-btn,
  .menu-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hide search box on mobile */
  .search-box {
    display: none;
  }

  .header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 0 auto;
    margin-top: 0;
  }

  .header-icons-group {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-right: 8px;
    margin-right: 8px;
    border-right: 1px solid var(--border-color);
    flex: 0 0 auto;
  }

  .header-icon-btn {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .header-icon-btn svg {
    width: 18px;
    height: 18px;
  }

  /* Show only important icons on mobile - notifications and chat */
  .header-icon-btn:not(.header-icon-with-badge) {
    display: none;
  }

  /* Show notifications and chat only */
  .header-icon-btn.header-icon-with-badge {
    display: flex;
  }

  .header-buttons-group {
    /* display: none;*/
  }
  .user-profile {
    flex-shrink: 0;
    margin-left: auto;
  }

  .user-profile-btn {
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .user-avatar {
    width: 36px;
    height: 36px;
  }

  .user-dropdown-icon {
    display: none;
  }

  /* User dropdown positioning on mobile */
  .user-profile-dropdown {
    right: 0;
    left: auto;
    min-width: 200px;
    margin-top: 8px;
    z-index: 9999 !important;
  }

  /* Ensure user-profile container doesn't clip dropdown */
  .user-profile {
    position: relative;
    overflow: visible;
  }

  /* Ensure header doesn't clip dropdown */
  .top-header {
    overflow: visible !important;
    z-index: 100;
  }

  .header-right {
    overflow: visible !important;
    position: relative;
    z-index: 100;
  }

  /* Prevent header overflow */
  .top-header * {
    box-sizing: border-box;
  }

  /* Ensure header buttons are touch-friendly */
  .header-back-btn,
  .menu-toggle,
  .header-icon-btn,
  .user-profile-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Badge positioning on mobile */
  .header-icon-with-badge .badge {
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    font-size: 9px;
  }

  /* Page Header Mobile */
  .page-container {
    padding: 15px;
  }

  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .page-title {
    font-size: 20px;
  }

  .page-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .page-actions .btn {
    flex: 1;
    min-width: 100px;
    font-size: 13px;
    padding: 8px 12px;
  }

  /* Welcome Card Mobile */
  .welcome-card {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
    gap: 15px;
  }

  .welcome-avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto;
  }

  .welcome-content {
    width: 100%;
  }

  .welcome-content h2 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .welcome-content p {
    font-size: 13px;
  }

  .welcome-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .welcome-actions .btn {
    width: 100%;
  }

  /* KPI Cards Mobile */
  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
  }

  .kpi-card {
    padding: 15px;
  }

  .kpi-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .kpi-content h3 {
    font-size: 24px;
  }

  .kpi-content p {
    font-size: 13px;
  }

  /* Content Grid Mobile */
  .content-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .projects-card,
  .tasks-card {
    grid-column: span 1;
  }

  .content-card {
    margin-bottom: 15px;
  }

  .card-header {
    padding: 15px;
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  .card-header h3 {
    font-size: 16px;
    width: 100%;
  }

  .card-header-left,
  .card-header-right {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .card-header-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-header-right {
    flex-direction: row;
    justify-content: flex-end;
  }

  .card-body {
    padding: 15px;
  }

  /* Table Mobile */
  .data-table {
    font-size: 13px;
    width: 100%;
  }

  .data-table thead th {
    padding: 10px 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  .data-table tbody td {
    padding: 12px 8px;
  }

  /* Allow text wrapping in table cells on mobile for better readability */
  .data-table tbody td > div {
    word-break: break-word;
    white-space: normal;
  }

  /* Keep image cells with nowrap */
  .data-table tbody td:has(img) {
    white-space: nowrap;
  }

  /* Table Responsive Wrapper */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    margin: 0 -15px;
    padding: 0 15px;
  }

  .table-responsive table {
    min-width: 600px;
  }

  /* Add scroll indicator for tables */
  .table-responsive::-webkit-scrollbar {
    height: 6px;
  }

  .table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
  }

  .table-responsive::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
  }

  .table-responsive::-webkit-scrollbar-thumb:hover {
    background: #999;
  }

  /* Progress Bars Mobile */
  .progress-cell {
    font-size: 11px;
  }

  .progress-bar {
    height: 6px;
  }

  /* Team Avatars Mobile */
  .team-avatars {
    gap: -6px;
  }

  .team-avatars img {
    width: 28px;
    height: 28px;
    border-width: 2px;
  }

  /* Charts Mobile */
  .tasks-chart-container,
  .attendance-chart-container {
    flex-direction: column;
    gap: 20px;
  }

  .circular-chart,
  .attendance-donut {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .chart-center h3 {
    font-size: 24px;
  }

  .chart-legend,
  .attendance-legend {
    width: 100%;
  }

  .legend-item {
    font-size: 12px;
  }

  /* Chart Bars Mobile */
  .chart-bar-item {
    margin-bottom: 12px;
  }

  .chart-label {
    font-size: 12px;
  }

  .chart-bar-wrapper {
    height: 32px;
  }

  .chart-value {
    font-size: 12px;
    right: 8px;
  }

  /* Activities Mobile */
  .activity-item {
    padding: 12px 0;
  }

  .activity-avatar {
    width: 36px;
    height: 36px;
  }

  .activity-content h4 {
    font-size: 13px;
  }

  .activity-content p {
    font-size: 11px;
  }

  /* Birthdays Mobile */
  .birthday-item {
    flex-wrap: wrap;
    gap: 10px;
  }

  .birthday-avatar {
    width: 36px;
    height: 36px;
  }

  .birthday-info h4 {
    font-size: 13px;
  }

  .birthday-info p {
    font-size: 11px;
  }

  /* Buttons Mobile */
  .btn {
    padding: 10px 16px;
    font-size: 13px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px; /* iOS touch target minimum */
  }

  .btn-sm {
    padding: 8px 14px;
    font-size: 13px;
    min-height: 40px; /* Touch-friendly on mobile */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Badges Mobile */
  .badge {
    font-size: 10px;
    padding: 4px 8px;
  }

  /* Schedules Mobile */
  .schedule-item {
    padding: 15px;
  }

  .schedule-item h4 {
    font-size: 14px;
  }

  .schedule-time {
    font-size: 12px;
  }

  .schedule-footer {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Department Chart Mobile */
  .chart-card {
    margin-bottom: 20px;
  }

  .chart-footer {
    font-size: 12px;
    padding-top: 15px;
  }

  /* Typography Mobile */
  h1,
  .h1 {
    font-size: 24px;
  }

  h2,
  .h2 {
    font-size: 20px;
  }

  h3,
  .h3 {
    font-size: 18px;
  }

  /* Spacing Mobile */
  .page-container {
    padding: 15px;
  }

  /* Disable continuous animations on mobile for performance */
  /* .kpi-icon {
        animation: zoomInOutSubtle 4s ease-in-out infinite;
    } */

  .user-avatar {
    animation: zoomInOutSubtle 5s ease-in-out infinite;
  }

  .kpi-card,
  .progress-fill,
  .donut-segment,
  .chart-segment {
    animation-duration: 8s !important;
  }

  /* Touch-friendly interactions */
  .btn,
  .header-icon-btn,
  .nav-link {
    min-height: 44px;
    min-width: 44px;
  }

  /* Improve scrolling on mobile */
  .main-content {
    -webkit-overflow-scrolling: touch;
  }

  /* Optimize images on mobile */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Better spacing for mobile */
  .page-container > * {
    margin-bottom: 15px;
  }

  /* Stack elements vertically where needed */
  .welcome-content {
    text-align: center;
  }

  /* Chart responsive adjustments */
  .department-chart {
    padding: 10px 0;
  }

  /* Footer text mobile */
  .chart-footer {
    font-size: 11px;
    padding-top: 12px;
  }

  /* Profile dropdown mobile */
  .profile-dropdown {
    right: 10px;
    min-width: 160px;
  }

  /* Ensure no horizontal scroll */
  body {
    overflow-x: hidden;
  }

  .dashboard-wrapper {
    overflow-x: hidden;
  }

  /* Better spacing for mobile cards */
  .content-card + .content-card {
    margin-top: 0;
  }

  /* Mobile-friendly avatars */
  .absentee-avatars {
    flex-wrap: wrap;
  }

  /* Mobile chart adjustments */
  .chart-bar-item {
    padding: 10px;
  }

  /* Mobile schedule adjustments */
  .schedule-item {
    margin-bottom: 15px;
  }

  /* Mobile activity list */
  .activity-list {
    gap: 12px;
  }

  /* Mobile birthday sections */
  .birthday-section {
    margin-bottom: 15px;
  }

  .birthday-date {
    font-size: 12px;
    margin-bottom: 10px;
  }

  /* Card header mobile fixes */
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-header-left,
  .card-header-right {
    width: 100%;
    justify-content: space-between;
  }

  /* Status stats mobile */
  .status-stats {
    grid-template-columns: 1fr;
  }

  /* Sales chart mobile */
  .sales-chart-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .chart-bars {
    gap: 4px;
  }

  .chart-labels {
    font-size: 10px;
  }

  /* Invoice items mobile */
  .invoice-item {
    flex-wrap: wrap;
  }

  .invoice-amount {
    width: 100%;
    margin-top: 8px;
    text-align: right;
  }

  /* Clock items mobile */
  .clock-item {
    flex-wrap: wrap;
  }

  .clock-info {
    flex: 1 1 100%;
  }

  /* Top performer mobile */
  .top-performer {
    flex-wrap: wrap;
  }

  .performer-badge {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }

  /* Employee status progress bar mobile */
  .status-progress-bar {
    height: 20px;
  }

  /* Applicants list mobile */
  .applicant-item {
    flex-wrap: wrap;
  }

  .role-badge {
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }

  /* Employees table mobile */
  .employee-cell {
    flex-wrap: wrap;
  }

  /* Todo items mobile */
  .todo-item {
    padding: 8px;
  }

  /* Tabs mobile */
  .tabs {
    flex-wrap: wrap;
  }

  .tab-btn {
    flex: 1;
    min-width: 100px;
  }

  /* Card header mobile - ensure proper stacking */
  .card-header-left h3 {
    width: 100%;
  }

  /* Invoice items mobile - stack properly */
  .invoice-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .invoice-amount {
    width: 100%;
    margin-top: 8px;
    text-align: left;
  }

  .invoice-status {
    align-self: flex-end;
    margin-top: -30px;
  }

  /* Status stats mobile - single column */
  .status-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Top performer mobile - stack elements */
  .top-performer {
    flex-direction: column;
    text-align: center;
  }

  .performer-info {
    width: 100%;
  }

  .performer-badge {
    width: 100%;
    margin-top: 10px;
  }

  /* Clock items mobile - better spacing */
  .clock-item {
    padding: 12px;
  }

  .clock-info {
    width: 100%;
  }

  /* Sales chart mobile - smaller bars */
  .chart-bars {
    height: 120px;
    gap: 3px;
  }

  .chart-labels {
    font-size: 9px;
  }

  /* Department chart mobile */
  .chart-bar-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .chart-label {
    width: 100%;
    text-align: left;
    padding-right: 0;
  }

  .chart-bar-wrapper {
    width: 100%;
  }

  /* Attendance chart mobile */
  .attendance-donut {
    width: 200px;
    height: 120px;
  }

  .attendance-legend {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  /* Tasks chart mobile */
  .circular-chart {
    width: 180px;
    height: 180px;
  }

  /* Employee status progress bar mobile */
  .status-progress-bar {
    height: 18px;
  }

  /* Ensure no overflow on mobile */
  .content-card,
  .chart-card {
    overflow: hidden;
  }

  /* Better spacing for mobile cards */
  .card-body {
    padding: 15px;
  }

  .card-header {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  /* Extra Small Mobile */
  .header-icons-group {
    display: none;
  }

  .search-box {
    min-width: 0;
    flex: 1 1 100%;
    order: 3;
    margin-top: 8px;
  }

  .header-left {
    flex-wrap: wrap;
  }

  .top-header {
    padding: 10px 12px;
  }

  .page-container {
    padding: 12px;
  }

  .welcome-card {
    padding: 15px 12px;
  }

  .kpi-card {
    padding: 12px;
  }

  .kpi-content h3 {
    font-size: 20px;
  }

  .card-header,
  .card-body {
    padding: 12px;
  }

  .data-table {
    font-size: 12px;
  }

  .data-table thead th,
  .data-table tbody td {
    padding: 8px 6px;
  }

  .circular-chart,
  .attendance-donut {
    width: 180px;
    height: 180px;
  }

  .chart-center h3 {
    font-size: 20px;
  }

  .btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .page-title {
    font-size: 18px;
  }

  /* Hide less important elements */
  .kpi-footer a {
    font-size: 11px;
  }

  .breadcrumb {
    font-size: 11px;
  }
}

/* ============================================
   EMPLOYEES BY DEPARTMENT CHART (ENHANCED)
   ============================================ */
.chart-card {
  background: var(--bg-2);
  background-color: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: none;
  overflow: hidden;
  margin-bottom: 24px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
  transform-origin: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: none;
}

.chart-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: none;
}

/* Mobile optimizations - disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
  .kpi-card:hover,
  .content-card:hover,
  .chart-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  /* will-change managed dynamically via JavaScript for .kpi-card, .content-card, .chart-card */
}

/* Performance optimization: will-change is set on hover via JavaScript for better performance */

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .kpi-card,
  .content-card,
  .chart-card {
    transition: none;
  }

  .kpi-card:hover,
  .content-card:hover,
  .chart-card:hover {
    transform: none;
  }
}

.department-chart {
  margin-bottom: 20px;
  padding: 15px 0;
  position: relative;
}

/* Subtle grid lines for better visual reference */
.department-chart::before {
  content: "";
  position: absolute;
  left: 135px;
  right: 0;
  top: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 52px,
    rgba(233, 236, 239, 0.25) 52px,
    rgba(233, 236, 239, 0.25) 53px
  );
  pointer-events: none;
  z-index: 0;
}

.chart-bar-item {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  padding: 4px 0;
  transition: transform 0.2s ease;
}

.chart-bar-item:hover {
  transform: translateX(2px);
}

.chart-bar-item:last-child {
  margin-bottom: 0;
}

.chart-label {
  width: 120px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
  text-align: right;
  padding-right: 18px;
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.chart-bar-wrapper {
  flex: 1;
  height: 40px;
  background-color: #f0f2f5;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(233, 236, 239, 0.5);
}

.chart-bar {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-orange),
    var(--primary-orange-dark)
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 16px;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 6px rgba(124, 92, 255, 0.25);
  min-width: 50px;
}

.chart-bar:hover {
  box-shadow: 0 3px 8px rgba(124, 92, 255, 0.35);
}

.chart-value {
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.4px;
}

.chart-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  margin-top: 10px;
}

.chart-footer p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   JOBS APPLICANTS CARD
   ============================================ */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
}

.tab-btn {
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  color: var(--primary-orange);
  border-bottom-color: var(--primary-orange);
}

.tab-btn:hover {
  color: var(--primary-orange);
}

.applicants-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.applicant-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: background-color 0.2s;
}

.applicant-item:hover {
  background-color: #1a1a1a;
}

.applicant-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.applicant-info {
  flex: 1;
}

.applicant-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.applicant-info p {
  font-size: 12px;
  margin: 0;
}

.role-badge {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.role-badge.blue {
  background-color: #e7f1ff;
  color: #0d6efd;
}

.role-badge.dark-green {
  background-color: #d1e7dd;
  color: #0f5132;
}

.role-badge.pink {
  background-color: #fce7f3;
  color: #d63384;
}

.role-badge.purple {
  background-color: #e7dfff;
  color: #6f42c1;
}

/* ============================================
   EMPLOYEES TABLE
   ============================================ */
.employees-table {
  width: 100%;
  border-collapse: collapse;
}

.employees-table thead th {
  background-color: #1a1a1a;
  padding: 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-color);
}

.employees-table tbody td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--border-color);
}

.employees-table tbody tr:hover {
  background-color: #1a1a1a;
}

.employee-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.employee-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.employee-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.employee-role {
  font-size: 12px;
  color: var(--text-secondary);
}

.dept-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.dept-badge.red {
  background-color: #fee;
  color: #dc3545;
}

.dept-badge.light-blue {
  background-color: #cfe2ff;
  color: #084298;
}

.dept-badge.blue {
  background-color: #e7f1ff;
  color: #0d6efd;
}

.dept-badge.purple {
  background-color: #e7dfff;
  color: #6f42c1;
}

.dept-badge.light-pink {
  background-color: #fce7f3;
  color: #a21caf;
}

.dept-badge.pink {
  background-color: #fce7f3;
  color: #d63384;
}

/* ============================================
   TODO CARD
   ============================================ */
.card-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.todo-add-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-orange);
  color: white;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.todo-add-btn:hover {
  background-color: var(--primary-orange-dark);
  transform: scale(1.1);
}

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}

.todo-item:hover {
  background-color: #1a1a1a;
}

.todo-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-orange);
}

.todo-item label {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
}

.todo-item input[type="checkbox"]:checked + label {
  text-decoration: line-through;
  color: var(--text-secondary);
}

/* ============================================
   SALES OVERVIEW
   ============================================ */
.sales-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sales-legend {
  display: flex;
  gap: 20px;
}

.legend-square {
  width: 12px;
  height: 12px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 2px;
}

.legend-square.orange {
  background-color: var(--primary-orange);
}

.legend-square.gray {
  background-color: #adb5bd;
}

.sales-update {
  font-size: 12px;
  color: var(--text-secondary);
}

.sales-chart {
  position: relative;
  height: 200px;
  margin-bottom: 10px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 160px;
  gap: 8px;
  padding-bottom: 30px;
}

.chart-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  height: 100%;
}

.chart-bar-income {
  background-color: var(--primary-orange);
  border-radius: 4px 4px 0 0;
  min-height: 10px;
  transition: height 0.3s;
}

.chart-bar-expense {
  background-color: #adb5bd;
  border-radius: 4px 4px 0 0;
  min-height: 10px;
  transition: height 0.3s;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  padding-top: 5px;
}

.chart-labels span {
  flex: 1;
  text-align: center;
}

/* ============================================
   INVOICES CARD
   ============================================ */
.invoices-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.invoice-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: background-color 0.2s;
}

.invoice-item:hover {
  background-color: #1a1a1a;
}

.invoice-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.invoice-info {
  flex: 1;
}

.invoice-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.invoice-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.invoice-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.invoice-status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.invoice-status.unpaid {
  background-color: #fee;
  color: #dc3545;
}

.invoice-status.paid {
  background-color: #d1e7dd;
  color: #198754;
}

/* ============================================
   EMPLOYEE STATUS CARD
   ============================================ */
.employee-status-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.status-progress-bar {
  height: 24px;
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  margin-bottom: 20px;
}

.progress-segment {
  height: 100%;
  transition: width 0.3s;
}

.progress-segment.orange {
  background-color: var(--primary-orange);
}

.progress-segment.blue {
  background-color: #0d6efd;
}

.progress-segment.red {
  background-color: #dc3545;
}

.progress-segment.pink {
  background-color: #d63384;
}

.status-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.status-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background-color: #1a1a1a;
  border-radius: var(--radius-md);
}

.stat-icon {
  font-size: 20px;
  line-height: 1;
  display: inline-block;
  animation: zoomInOut 3.5s ease-in-out infinite;
  transform-origin: center;
}

.stat-icon.orange {
  color: var(--primary-orange);
  animation-delay: 0s;
}

.stat-icon.blue {
  color: #0d6efd;
  animation-delay: 0.5s;
}

.stat-icon.red {
  color: #dc3545;
  animation-delay: 1s;
}

.stat-icon.pink {
  color: #d63384;
  animation-delay: 1.5s;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.top-performer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: linear-gradient(135deg, #2a1a1a 0%, #1a1a1a 100%);
  border-radius: var(--radius-md);
  margin-bottom: 15px;
}

.performer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.performer-info {
  flex: 1;
}

.performer-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.performer-role {
  font-size: 12px;
  color: var(--text-secondary);
}

.performer-badge {
  background-color: var(--primary-orange);
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge-text {
  display: inline-block;
}

/* ============================================
   CARD SECTION FIXES & ENHANCEMENTS
   ============================================ */

/* Ensure all cards have consistent structure */
.content-card,
.chart-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Card body should grow to fill space */
.content-card .card-body,
.chart-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Fix for cards with tables */
.content-card .card-body > .table-responsive {
  flex: 1;
  min-height: 0;
}

/* Ensure proper spacing between card sections */
.content-grid > .content-card + .content-card,
.content-grid > .chart-card + .chart-card {
  margin-top: 0;
}

/* Fix card header alignment when using card-header-left/right */
.card-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Ensure buttons in card headers don't break layout */
.card-header .btn,
.card-header .btn-link {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Fix for invoice items layout */
.invoice-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: background-color 0.2s;
}

.invoice-item:hover {
  background-color: #1a1a1a;
}

/* Ensure invoice amount is properly aligned */
.invoice-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  margin-left: auto;
}

/* Fix status stats grid alignment */
.status-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.status-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background-color: #1a1a1a;
  border-radius: var(--radius-md);
}

@media (max-width: 768px) {
  .status-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .status-stat-item {
    padding: 10px;
  }
}

/* Ensure progress segments don't overflow */
.status-progress-bar {
  height: 24px;
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  margin-bottom: 20px;
}

.progress-segment {
  height: 100%;
  transition: width 0.3s;
  flex-shrink: 0;
}

/* Fix sales chart bars alignment */
.chart-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  height: 100%;
  min-width: 0;
}

.chart-bar-income,
.chart-bar-expense {
  width: 100%;
  border-radius: 4px 4px 0 0;
  min-height: 10px;
  transition: height 0.3s;
}

/* Ensure todo items are properly aligned */
.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}

.todo-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-orange);
  flex-shrink: 0;
}

.todo-item label {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  margin: 0;
}

/* Fix applicant items layout */
.applicant-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: background-color 0.2s;
}

.applicant-info {
  flex: 1;
  min-width: 0;
}

.role-badge {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Ensure employee table cells are properly aligned */
.employee-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.employee-cell > div {
  min-width: 0;
}

/* Fix schedule items */
.schedule-item {
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  background-color: var(--bg-white);
}

.schedule-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 12px;
}

/* Ensure all avatars have consistent sizing */
.clock-avatar,
.performer-avatar,
.absentee-avatar,
.birthday-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Fix activity items */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

/* Fix birthday items */
.birthday-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: background-color 0.2s;
}

.birthday-item:hover {
  background-color: #1a1a1a;
}

.birthday-item:last-child {
  margin-bottom: 0;
}

.birthday-info {
  flex: 1;
  min-width: 0;
}

/* Ensure chart containers are properly sized */
.tasks-chart-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.attendance-chart-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Fix department chart bar items */
.chart-bar-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
}

.chart-bar-item:last-child {
  margin-bottom: 0;
}

/* ============================================
   ATTENDANCE OVERVIEW (ENHANCED)
   ============================================ */
.attendance-chart-container {
  text-align: center;
  margin-bottom: 28px;
  padding: 15px 0;
}

.attendance-donut {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.attendance-donut canvas {
  width: 100% !important;
  height: 100% !important;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.08));
}

.donut-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.08));
}

.donut-segment {
  transition: all 0.2s ease;
  stroke-linecap: round;
}

.donut-segment:hover {
  opacity: 0.85;
  filter: brightness(1.1);
}

.donut-segment.teal {
  stroke: #20c997;
  stroke-width: 14;
}

.donut-segment.green {
  stroke: #198754;
  stroke-width: 14;
}

.donut-segment.gray {
  stroke: #6c757d;
  stroke-width: 14;
}

.donut-segment.yellow {
  stroke: #ffc107;
  stroke-width: 14;
}

.donut-segment.red {
  stroke: #dc3545;
  stroke-width: 14;
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: #1a1a1a;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  min-width: 110px;
  border: 1px solid rgba(124, 92, 255, 0.2);
  pointer-events: none;
  z-index: 10;
}

.donut-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1.3;
}

.donut-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.attendance-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  margin-bottom: 28px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 10px;
}

.attendance-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 7px 0;
  line-height: 1.4;
}

.legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  border: 2px solid #333333;
  animation: zoomInOutSubtle 3.5s ease-in-out infinite;
  transform-origin: center;
  display: inline-block;
}

.legend-dot.green {
  background-color: #198754;
}

.legend-dot.gray {
  background-color: #6c757d;
}

.legend-dot.yellow {
  background-color: #ffc107;
}

.legend-dot.red {
  background-color: #dc3545;
}

.total-absentees {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 18px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.absentee-avatars {
  display: flex;
  align-items: center;
  gap: -8px;
}

.absentee-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid rgba(124, 92, 255, 0.3);
  margin-left: -8px;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.absentee-avatar:first-child {
  margin-left: 0;
}

/* ============================================
   CLOCK-IN/OUT CARD (ENHANCED)
   ============================================ */
.clock-section {
  margin-bottom: 28px;
}

.clock-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
  letter-spacing: 0.6px;
  padding-left: 6px;
}

.late-section {
  padding-top: 28px;
  border-top: 2px solid #e9ecef;
  margin-top: 12px;
  background: linear-gradient(to bottom, rgba(42, 26, 26, 0.3), transparent);
  padding-left: 4px;
  padding-right: 4px;
  margin-left: -4px;
  margin-right: -4px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.clock-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: all 0.2s ease;
  background-color: #1a1a1a;
  border: 1px solid rgba(124, 92, 255, 0.2);
}

.clock-item:hover {
  background-color: #1a1a1a;
  border-color: var(--border-color);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.clock-item:last-child {
  margin-bottom: 0;
}

.late-section .clock-item {
  background-color: #2a1a1a;
  border-color: rgba(220, 53, 69, 0.15);
}

.late-section .clock-item:hover {
  background-color: #2a1a1a;
  border-color: rgba(220, 53, 69, 0.25);
}

.clock-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2.5px solid rgba(124, 92, 255, 0.3);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.clock-info {
  flex: 1;
  min-width: 0;
}

.clock-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.clock-role {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.clock-time {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.clock-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-badge {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.time-badge.green {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.time-badge.red {
  background-color: #fee;
  color: #842029;
  border: 1px solid #f5c2c7;
}

.time-badge.yellow {
  background-color: #3a3a2a;
  color: #664d03;
  border: 1px solid #ffecb5;
}

.late-badge {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff3cd, #ffecb5);
  color: #664d03;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(255, 193, 7, 0.25);
  border: 1px solid #ffecb5;
  letter-spacing: 0.4px;
}

/* ============================================
   FORM STYLES
   ============================================ */
.profile-form-wrapper {
  display: flex;
  gap: 40px;
}

.profile-photo-section {
  flex-shrink: 0;
  text-align: center;
}

.profile-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  border: 2px dashed var(--border-color);
}

.photo-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.photo-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.profile-form {
  flex: 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  background: #1a1a1a;
  color: var(--text-primary);
}

.form-input-sm {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.1);
}

.form-input select {
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.table-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.table-controls .form-input-sm {
  width: auto;
  min-width: 120px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.pagination-info {
  font-size: 14px;
  color: var(--text-secondary);
}

.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pagination-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #1a1a1a;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background: #1a1a1a;
  border-color: var(--primary-orange);
  color: var(--primary-orange);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: var(--primary-orange);
  border-color: var(--primary-orange);
  color: white;
}

.pagination-ellipsis {
  padding: 0 8px;
  color: var(--text-secondary);
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.status-badge.active {
  background-color: #d1e7dd;
  color: #0f5132;
}

.status-badge.inactive {
  background-color: #f8d7da;
  color: #842029;
}

@media (max-width: 768px) {
  .profile-form-wrapper {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .pagination-wrapper {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: #333333;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.modal-close:hover {
  background: #1a1a1a;
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
}

.modal-body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
}

.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Large Modal for Forms */
.modal-large {
  max-width: 700px;
}

/* Form Styles */
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-label .required {
  color: #7c5cff;
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: var(--bg-black);
  color: var(--text-primary);
}

.form-control:focus {
  outline: none;
  border-color: #7c5cff;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-text {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* File Upload Styling */
.file-upload-wrapper {
  position: relative;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.file-upload-label {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: #1a1a1a;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
}

.file-upload-label:hover {
  background: #e9ecef;
  border-color: #7c5cff;
  color: #7c5cff;
}

.file-upload-label svg {
  flex-shrink: 0;
}

.file-upload-text {
  flex: 1;
  text-align: center;
}

.file-name-display {
  margin-top: 8px;
  padding: 8px 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #0369a1;
  display: none;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-large {
    max-width: 95%;
  }
}

/* ============================================
   TOAST
   ============================================ */
/* .toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: #1a1a1a;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #d1e7dd;
    color: #0f5132;
}

.toast-icon svg {
    width: 16px;
    height: 16px;
}

.toast-content {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.toast-close {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: #1a1a1a;
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .modal-container {
        width: 95%;
        margin: 20px;
    }
    
    .toast-container {
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
} */

/* ============================================
   PREMIUM 3D / DEPTH EFFECTS
   ============================================ */

/* Logo Icon 3D Effect */
.logo-icon {
  box-shadow:
    0 4px 12px rgba(124, 92, 255, 0.25),
    0 2px 4px rgba(124, 92, 255, 0.15),
    inset 0 1px 2px rgba(124, 92, 255, 0.15),
    inset 0 -1px 2px rgba(107, 77, 230, 0.2);
  background: linear-gradient(
    135deg,
    var(--primary-orange) 0%,
    var(--primary-orange-dark) 100%
  );
  animation: zoomInOutSubtle 3.5s ease-in-out infinite;
  transform-origin: center;
}

/* Sidebar Navigation Icons */
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.1) 0%,
    rgba(107, 77, 230, 0.05) 100%
  );
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(124, 92, 255, 0.1);
  transition: all 0.2s ease;
}

.nav-item.active .nav-icon {
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.15) 0%,
    rgba(124, 92, 255, 0.1) 100%
  );
  box-shadow:
    0 2px 6px rgba(124, 92, 255, 0.2),
    inset 0 1px 1px rgba(124, 92, 255, 0.2);
}

/* Header Icons 3D Effect */
.header-icon-btn {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04),
    inset 0 1px 1px rgba(124, 92, 255, 0.15);
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.95) 0%,
    rgba(51, 51, 51, 0.95) 100%
  );
  border: 1px solid rgba(124, 92, 255, 0.2);
}

.header-icon-btn:hover {
  box-shadow:
    0 4px 8px rgba(124, 92, 255, 0.15),
    0 2px 4px rgba(124, 92, 255, 0.1),
    inset 0 1px 2px rgba(124, 92, 255, 0.2);
  transform: translateY(-1px);
  border-color: rgba(124, 92, 255, 0.3);
}

.header-icon-btn svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* KPI Card Icons - 3D Enhancement (merges with existing styles) */
.kpi-icon {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 0 1px 2px rgba(124, 92, 255, 0.2),
    inset 0 -1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  /* animation: zoomInOut 3s ease-in-out infinite; */
  /* transform-origin: center; */
}

/* Staggered animation delays for KPI icons */
.kpi-card:nth-child(1) .kpi-icon {
  animation-delay: 0s;
}

.kpi-card:nth-child(2) .kpi-icon {
  animation-delay: 0.3s;
}

.kpi-card:nth-child(3) .kpi-icon {
  animation-delay: 0.6s;
}

.kpi-card:nth-child(4) .kpi-icon {
  animation-delay: 0.9s;
}

.kpi-card:nth-child(5) .kpi-icon {
  animation-delay: 1.2s;
}

.kpi-card:nth-child(6) .kpi-icon {
  animation-delay: 1.5s;
}

.kpi-card:nth-child(7) .kpi-icon {
  animation-delay: 1.8s;
}

.kpi-card:nth-child(8) .kpi-icon {
  animation-delay: 2.1s;
}

/* All Avatar Images - 3D Depth */
.user-avatar,
.activity-avatar,
.employee-avatar,
.applicant-avatar,
.clock-avatar,
.invoice-avatar,
.absentee-avatar,
.performer-avatar,
.birthday-avatar,
.chat-avatar,
.chat-message-avatar,
.team-avatars img {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 0 1px 2px rgba(124, 92, 255, 0.15),
    inset 0 -1px 2px rgba(0, 0, 0, 0.1);
  border: 2.5px solid rgba(124, 92, 255, 0.3);
  position: relative;
  transition: all 0.3s ease;
}

/* Zoom animation for user avatar in header */
.user-avatar {
  animation: zoomInOut 4s ease-in-out infinite;
  transform-origin: center;
}

.user-avatar:hover,
.activity-avatar:hover,
.employee-avatar:hover,
.applicant-avatar:hover,
.clock-avatar:hover,
.invoice-avatar:hover,
.performer-avatar:hover,
.birthday-avatar:hover {
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.15),
    0 3px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 3px rgba(124, 92, 255, 0.2),
    inset 0 -1px 3px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(124, 92, 255, 0.4);
}

/* Welcome Avatar Special Enhancement */
.welcome-avatar img {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(124, 92, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  border: 3px solid rgba(124, 92, 255, 0.35);
}

/* Profile Photo Placeholder */
.profile-photo-placeholder {
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.12),
    0 3px 10px rgba(0, 0, 0, 0.08),
    inset 0 2px 4px rgba(124, 92, 255, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 2px solid rgba(124, 92, 255, 0.25);
}

/* Badges 3D Effect */
.badge,
.status-badge,
.role-badge,
.dept-badge,
.time-badge,
.late-badge,
.invoice-status,
.chart-value {
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 1px solid rgba(124, 92, 255, 0.15);
}

.badge-blue,
.badge-red {
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.15),
    0 1px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px rgba(124, 92, 255, 0.2),
    inset 0 -1px 2px rgba(0, 0, 0, 0.15);
}

/* Button Icons Enhancement */
.btn svg,
.btn-primary svg,
.btn-outline svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  transition: filter 0.2s ease;
}

.btn-primary:hover svg,
.btn-outline:hover svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Chart Bar 3D Effect */
.chart-bar {
  box-shadow:
    0 4px 12px rgba(124, 92, 255, 0.25),
    0 2px 6px rgba(124, 92, 255, 0.15),
    inset 0 1px 2px rgba(124, 92, 255, 0.15),
    inset 0 -1px 2px rgba(107, 77, 230, 0.2);
  background: linear-gradient(
    135deg,
    var(--primary-orange) 0%,
    var(--primary-orange-dark) 100%
  );
}

/* Donut Chart Segments */
.donut-segment {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.donut-segment.green {
  filter: drop-shadow(0 2px 6px rgba(25, 135, 84, 0.2));
}

.donut-segment.red {
  filter: drop-shadow(0 2px 6px rgba(220, 53, 69, 0.2));
}

.donut-segment.yellow {
  filter: drop-shadow(0 2px 6px rgba(255, 193, 7, 0.2));
}

.donut-segment.gray {
  filter: drop-shadow(0 2px 6px rgba(108, 117, 125, 0.2));
}

/* Legend Dots - Enhanced with zoom animation */
.legend-dot {
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px rgba(124, 92, 255, 0.15),
    inset 0 -1px 2px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(124, 92, 255, 0.25);
  animation: zoomInOutSubtle 3.5s ease-in-out infinite;
  transform-origin: center;
}

/* Toast Icon */
.toast-icon {
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.12),
    0 1px 4px rgba(0, 0, 0, 0.08),
    inset 0 1px 2px rgba(124, 92, 255, 0.2),
    inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

/* Modal Close Button */
.modal-close {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(124, 92, 255, 0.25);
}

.modal-close:hover {
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.12),
    inset 0 1px 2px rgba(124, 92, 255, 0.3);
}

/* Dropdown Icons */
.dropdown-item svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
  transition: filter 0.2s ease;
}

.dropdown-item:hover svg {
  filter: drop-shadow(0 2px 4px rgba(124, 92, 255, 0.2));
}

/* Social Login Buttons Icons */
.social-btn svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.social-btn:hover svg {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
}

/* Search Icon */
.search-icon svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

/* Status Icons in Cards */
.stat-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 1px rgba(124, 92, 255, 0.15);
  animation: zoomInOutSubtle 4s ease-in-out infinite;
  transform-origin: center;
}

/* Action Icons (Edit, Delete, etc.) */
.content-card svg,
.data-table svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
  transition: filter 0.2s ease;
}

.content-card a:hover svg,
.data-table a:hover svg {
  filter: drop-shadow(0 2px 4px rgba(124, 92, 255, 0.2));
}

/* Pagination Buttons */
.pagination-btn {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(124, 92, 255, 0.25);
  border: 1px solid rgba(233, 236, 239, 0.8);
}

.pagination-btn:hover:not(:disabled) {
  box-shadow:
    0 3px 6px rgba(124, 92, 255, 0.15),
    0 1px 3px rgba(124, 92, 255, 0.1),
    inset 0 1px 2px rgba(124, 92, 255, 0.3);
}

.pagination-btn.active {
  box-shadow:
    0 4px 10px rgba(124, 92, 255, 0.25),
    0 2px 5px rgba(124, 92, 255, 0.15),
    inset 0 1px 2px rgba(124, 92, 255, 0.15),
    inset 0 -1px 2px rgba(107, 77, 230, 0.2);
}

/* Chat Send Button */
.chat-send-btn {
  box-shadow:
    0 4px 12px rgba(124, 92, 255, 0.25),
    0 2px 6px rgba(124, 92, 255, 0.15),
    inset 0 1px 2px rgba(124, 92, 255, 0.15),
    inset 0 -1px 2px rgba(107, 77, 230, 0.2);
  background: linear-gradient(
    135deg,
    var(--primary-orange) 0%,
    var(--primary-orange-dark) 100%
  );
}

.chat-send-btn:hover {
  box-shadow:
    0 6px 16px rgba(124, 92, 255, 0.3),
    0 3px 8px rgba(124, 92, 255, 0.2),
    inset 0 1px 3px rgba(124, 92, 255, 0.2),
    inset 0 -1px 3px rgba(107, 77, 230, 0.25);
  transform: translateY(-1px);
}

/* Form Input Icons (if any) */
.form-input:focus {
  box-shadow:
    0 0 0 3px rgba(124, 92, 255, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.05),
    inset 0 1px 2px rgba(124, 92, 255, 0.3);
}

/* Card Header Icons */
.card-header svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

/* Subtle enhancement for all SVG icons */
svg:not(.no-3d-effect) {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}

/* Ensure no layout shifts */
* {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ============================================
   PREMIUM DASHBOARD ANIMATIONS
   ============================================ */

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Zoom animations disabled for users who prefer reduced motion */
  /* Note: Animations are controlled by prefers-reduced-motion media query above */
}

/* Smooth transitions for all interactive elements */
.content-card,
.kpi-card,
.welcome-card {
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}

/* Enhanced card hover with smooth shadow */
.content-card:hover,
.kpi-card:hover {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Button press animation */
.btn-primary:active,
.auth-btn:active {
  transform: translateY(1px) !important;
  transition: transform 0.1s ease;
}

/* Chart bar animation keyframes */
@keyframes barGrow {
  from {
    height: 0;
    opacity: 0;
  }
  to {
    height: var(--bar-height);
    opacity: 1;
  }
}

@keyframes barGrowHorizontal {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: var(--bar-width);
    opacity: 1;
  }
}

/* Donut chart draw animation */
@keyframes donutDraw {
  from {
    stroke-dashoffset: var(--path-length);
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Modal backdrop fade */
.modal-overlay {
  transition: opacity 0.3s ease;
}

.modal-overlay:not(.show) {
  opacity: 0;
  pointer-events: none;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* Modal container scale animation */
.modal-container {
  transition:
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay:not(.show) .modal-container {
  opacity: 0;
  transform: scale(0.95);
}

.modal-overlay.show .modal-container {
  opacity: 1;
  transform: scale(1);
}

/* Toast slide-in animation */
.toast {
  transition:
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dropdown smooth reveal */
.profile-dropdown {
  transition:
    opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.2s;
}

.profile-dropdown:not(.show) {
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
}

.profile-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Submenu smooth reveal */
.nav-submenu {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    max-height 0.3s ease;
}

/* IconPulse animation removed - no longer used */

/* ============================================
   ZOOM IN/OUT ANIMATIONS FOR CARD ICONS
   ============================================ */

/* Zoom In/Out Animation - Standard (for KPI icons) */
@keyframes zoomInOut {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* Alternative zoom animation - more subtle (for smaller icons) */
@keyframes zoomInOutSubtle {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* All card icons now have continuous zoom animations:
   - KPI icons: 3s cycle with 1.08x scale
   - Stat icons: 3.5s-4s cycle with 1.05x scale  
   - Legend dots: 3.5s cycle with 1.05x scale
   - User avatar: 4s cycle with 1.08x scale
   - Logo icon: 3.5s cycle with 1.05x scale
*/

/* Smooth avatar hover */
.user-avatar,
.activity-avatar,
.employee-avatar,
.applicant-avatar,
.clock-avatar,
.invoice-avatar,
.performer-avatar,
.birthday-avatar {
  /* Transitions kept for smooth UX */
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* User avatar hover - enhanced zoom */
.user-avatar:hover {
  animation: zoomInOut 4s ease-in-out infinite;
  transform: scale(1.15) !important;
  transition: transform 0.3s ease;
}

/* Badge subtle animation */
.badge,
.status-badge,
.role-badge {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.badge:hover,
.status-badge:hover,
.role-badge:hover {
  transform: translateY(-1px);
}

/* Table row hover smooth transition */
.data-table tbody tr {
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.data-table tbody tr:hover {
  transform: translateX(2px);
}

/* Input focus smooth transition */
.form-input,
.search-input {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.form-input:focus,
.search-input:focus {
  transform: translateY(-1px);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Loading state for cards (if needed) */
.content-card.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Stagger animation delay classes */
.animate-delay-1 {
  animation-delay: 0.05s;
}
.animate-delay-2 {
  animation-delay: 0.1s;
}
.animate-delay-3 {
  animation-delay: 0.15s;
}
.animate-delay-4 {
  animation-delay: 0.2s;
}
.animate-delay-5 {
  animation-delay: 0.25s;
}

/* Smooth number counter animation (if needed) */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced shadow on hover for interactive elements */
.header-icon-btn:hover,
.social-btn:hover {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Smooth pagination button transitions */
.pagination-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.pagination-btn:active:not(:disabled) {
  transform: translateY(0);
}

/* Link hover smooth transition */
a:not(.btn):not(.nav-link) {
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

/* Smooth dropdown arrow rotation */
.nav-arrow {
  transition: transform 0.3s ease;
}

.nav-item.active .nav-arrow {
  transform: rotate(180deg);
}

/* Chart legend smooth fade-in */
.chart-legend {
  animation: fadeInUp 0.5s ease 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   ENHANCED MOBILE RESPONSIVE FIXES
   ============================================ */

/* Extra Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
  /* Header improvements - Single Line */
  .top-header {
    padding: 8px 10px;
    height: var(--header-height);
    min-height: var(--header-height);
    flex-direction: row;
    gap: 6px;
  }

  .header-left {
    gap: 6px;
    flex: 0 0 auto;
  }

  .header-back-btn,
  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  /* Hide search box on mobile */
  .search-box {
    display: none;
  }

  .header-right {
    flex: 0 0 auto;
    margin-top: 0;
    justify-content: flex-end;
    gap: 4px;
  }

  .header-icons-group {
    display: flex;
    gap: 3px;
    padding-right: 6px;
    margin-right: 6px;
    border-right: 1px solid var(--border-color);
    flex: 0 0 auto;
  }

  /* Show only notifications on very small screens */
  .header-icon-btn:not(.header-icon-with-badge) {
    display: none;
  }

  .header-icon-btn {
    width: 36px;
    height: 36px;
  }

  .header-icon-btn svg {
    width: 16px;
    height: 16px;
  }

  .header-buttons-group {
    display: none;
  }

  .user-profile {
    margin-left: auto;
    flex-shrink: 0;
  }

  .user-avatar {
    width: 34px;
    height: 34px;
  }

  /* Page container */
  .page-container {
    padding: 12px;
  }

  .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
    max-width: 100%;
  }

  /* Page header */
  .page-header {
    margin-bottom: 15px;
  }

  .page-title {
    font-size: 18px;
    line-height: 1.3;
  }

  .breadcrumb {
    font-size: 12px;
    flex-wrap: wrap;
  }

  .page-actions {
    width: 100%;
    gap: 8px;
  }

  .page-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    padding: 8px 10px;
  }

  /* Welcome card */
  .welcome-card {
    padding: 15px;
    gap: 12px;
  }

  .welcome-avatar {
    width: 50px;
    height: 50px;
  }

  .welcome-content h2 {
    font-size: 18px;
  }

  .welcome-content p {
    font-size: 12px;
  }

  /* KPI Cards */
  .kpi-card {
    padding: 12px;
  }

  .kpi-icon {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .kpi-content h3 {
    font-size: 20px;
  }

  .kpi-content p {
    font-size: 12px;
  }

  .kpi-footer {
    font-size: 11px;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Tables */
  .table-responsive {
    margin: 0 -12px;
    padding: 0 12px;
  }

  .data-table {
    font-size: 12px;
    min-width: 700px;
  }

  .data-table thead th {
    padding: 8px 6px;
    font-size: 11px;
  }

  .data-table tbody td {
    padding: 10px 6px;
  }

  /* Cards */
  .content-card {
    margin-bottom: 12px;
  }

  .card-header {
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .card-header h3 {
    font-size: 15px;
    width: 100%;
  }

  .card-body {
    padding: 12px;
  }

  /* Forms */
  .form-group {
    margin-bottom: 15px;
  }

  .form-input,
  .form-textarea {
    padding: 10px 12px;
    font-size: 14px;
  }

  .form-textarea {
    min-height: 100px;
  }

  /* Profile page */
  .profile-form-wrapper {
    gap: 15px;
  }

  .profile-photo-section {
    width: 100%;
    text-align: center;
  }

  .photo-actions {
    flex-direction: column;
    gap: 8px;
  }

  .photo-actions .btn {
    width: 100%;
  }

  /* Support page */
  .support-chat-card .card-body {
    height: 500px;
  }

  .chat-header {
    padding: 12px;
  }

  .chat-messages {
    padding: 12px;
    gap: 12px;
  }

  .chat-message {
    max-width: 85%;
  }

  .chat-message-content {
    padding: 10px 12px;
    font-size: 13px;
  }

  .chat-input-area {
    padding: 12px;
    flex-wrap: wrap;
  }

  .chat-input-wrapper {
    width: 100%;
    margin-bottom: 8px;
  }

  .chat-send-btn {
    width: 40px;
    height: 40px;
  }

  /* Schedule items */
  .schedule-item {
    padding: 12px;
  }

  .schedule-item h4 {
    font-size: 13px;
    line-height: 1.4;
  }

  .schedule-time {
    font-size: 11px;
  }

  .schedule-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .schedule-footer .btn {
    width: 100%;
  }

  /* Charts */
  .circular-chart,
  .attendance-donut {
    width: 180px;
    height: 180px;
  }

  .chart-center h3 {
    font-size: 20px;
  }

  .chart-center p {
    font-size: 11px;
  }

  /* Sales chart */
  .sales-chart {
    padding: 10px 0;
  }

  .chart-bars {
    gap: 4px;
  }

  .chart-labels {
    font-size: 10px;
    gap: 4px;
  }

  /* Invoices */
  .invoice-item {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
  }

  .invoice-info {
    flex: 1 1 100%;
  }

  .invoice-amount {
    font-size: 13px;
  }

  /* Employee status */
  .status-stat-item {
    padding: 10px;
  }

  .stat-label {
    font-size: 11px;
  }

  .stat-value {
    font-size: 18px;
  }

  /* Clock items */
  .clock-item {
    padding: 12px;
  }

  .clock-name {
    font-size: 13px;
  }

  .clock-role {
    font-size: 11px;
  }

  .clock-time {
    margin-top: 8px;
  }

  .time-badge {
    font-size: 11px;
    padding: 4px 8px;
  }

  /* Applicants */
  .applicant-item {
    padding: 12px;
    flex-wrap: wrap;
  }

  .applicant-info {
    flex: 1 1 100%;
    margin-top: 8px;
  }

  .role-badge {
    font-size: 10px;
    padding: 4px 8px;
  }

  /* Employees table */
  .employees-table {
    font-size: 12px;
  }

  .employee-cell {
    gap: 8px;
  }

  .employee-avatar {
    width: 32px;
    height: 32px;
  }

  .employee-name {
    font-size: 13px;
  }

  .employee-role {
    font-size: 11px;
  }

  /* Todo list */
  .todo-item {
    padding: 10px 0;
  }

  .todo-item label {
    font-size: 13px;
  }

  /* Pagination */
  .pagination-wrapper {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .pagination-info {
    text-align: center;
    font-size: 12px;
  }

  .pagination {
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
  }

  .pagination-btn {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }

  /* Table controls */
  .table-controls {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .table-controls .form-input {
    width: 100%;
  }

  /* Downline table */
  .data-table tbody td {
    white-space: normal;
    word-break: break-word;
  }

  /* Wallet page */
  .content-card .card-body {
    padding: 20px 12px;
  }

  /* Buttons */
  .btn {
    padding: 10px 14px;
    font-size: 13px;
    min-height: 44px;
  }

  .btn-sm {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 36px;
  }

  /* Badges */
  .badge {
    font-size: 9px;
    padding: 3px 6px;
  }

  /* Modals */
  .modal-container {
    width: 95%;
    margin: 10px;
    max-height: 90vh;
  }

  .modal-header {
    padding: 15px;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-body {
    padding: 15px;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
  }

  .modal-footer {
    padding: 15px;
    flex-direction: column;
  }

  .modal-footer .btn {
    width: 100%;
  }

  /* Toast */
  .toast-container {
    right: 10px;
    left: 10px;
    top: 10px;
  }

  .toast {
    min-width: auto;
    max-width: 100%;
    padding: 12px 16px;
  }

  /* Row spacing */
  .row {
    margin-left: -12px;
    margin-right: -12px;
  }

  .row > * {
    padding-left: 12px;
    padding-right: 12px;
  }

  .g-3 {
    gap: 12px !important;
  }

  .g-4 {
    gap: 12px !important;
  }

  .mb-4 {
    margin-bottom: 15px !important;
  }
}

/* Small Mobile Devices (481px - 640px) */
@media (min-width: 481px) and (max-width: 640px) {
  .top-header {
    padding: 10px 12px;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    height: var(--header-height);
    min-height: var(--header-height);
  }

  .header-left {
    flex: 0 0 auto;
    min-width: 0;
  }

  /* Hide search box on mobile */
  .search-box {
    display: none;
  }

  .header-right {
    margin-top: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .header-icons-group {
    gap: 4px;
    padding-right: 8px;
    margin-right: 8px;
  }

  .header-icon-btn {
    width: 38px;
    height: 38px;
  }

  /* Show more icons on small mobile */
  .header-icon-btn:nth-child(n + 5) {
    display: none;
  }

  .page-container {
    padding: 15px;
  }

  .table-responsive {
    margin: 0 -15px;
    padding: 0 15px;
  }
}

/* Medium Mobile Devices (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
  .top-header {
    padding: 12px 15px;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    height: var(--header-height);
    min-height: var(--header-height);
  }

  .header-left {
    flex: 0 0 auto;
    min-width: 0;
    gap: 10px;
  }

  /* Hide search box on mobile */
  .search-box {
    display: none;
  }

  .header-right {
    flex: 1 1 auto;
    gap: 8px;
    justify-content: flex-end;
  }

  .header-icons-group {
    display: flex;
    gap: 4px;
    padding-right: 10px;
    margin-right: 10px;
  }

  .header-icon-btn {
    width: 38px;
    height: 38px;
  }

  /* Show all icons on medium mobile */
  .header-icon-btn {
    display: flex;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet Portrait (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .welcome-card {
    flex-direction: row;
    text-align: left;
  }

  .welcome-actions {
    flex-direction: row;
    width: auto;
  }
}

/* Login/Signup Pages Mobile Fixes */
@media (max-width: 968px) {
  .auth-wrapper {
    min-height: 100vh;
  }

  .auth-wrapper .row {
    flex-direction: column;
  }

  .auth-left {
    padding: 30px 20px;
    min-height: auto;
    order: 1;
  }

  .auth-right {
    padding: 30px 20px;
    order: 2;
  }

  .auth-promo-title {
    font-size: 28px;
  }

  .auth-promo-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .auth-promo-image {
    max-width: 300px;
    margin-top: 20px;
  }

  .auth-promo-features {
    margin-top: 30px;
    gap: 12px;
  }

  .auth-promo-feature {
    font-size: 14px;
  }

  .auth-card {
    padding: 30px 25px;
    max-width: 100%;
  }

  .auth-title {
    font-size: 28px;
  }

  .auth-subtitle {
    font-size: 14px;
  }

  .auth-form .form-group {
    margin-bottom: 18px;
  }

  .auth-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .social-login {
    flex-direction: column;
  }

  .social-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .auth-left {
    padding: 25px 15px;
  }

  .auth-promo-title {
    font-size: 24px;
  }

  .auth-promo-subtitle {
    font-size: 14px;
  }

  .auth-promo-features {
    display: none;
  }

  .auth-promo-image {
    max-width: 250px;
  }

  .auth-card {
    padding: 25px 20px;
  }

  .auth-title {
    font-size: 24px;
  }

  .auth-logo {
    margin-bottom: 30px;
  }

  .auth-logo-text {
    font-size: 20px;
  }
}

/* Sidebar Overlay for Mobile - Duplicate removed, using main definition above */

@media (min-width: 769px) {
  .sidebar-overlay {
    display: none !important;
  }
}

/* Ensure proper stacking on mobile */
@media (max-width: 768px) {
  .main-content {
    width: 100%;
  }

  .sidebar.open ~ .main-content {
    overflow: hidden;
  }
}

/* Fix for Bootstrap grid on mobile */
@media (max-width: 768px) {
  .row {
    margin-left: -12px;
    margin-right: -12px;
  }

  [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 15px;
  }

  .col-12 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Improve touch targets */
@media (max-width: 768px) {
  button,
  .btn,
  a.btn,
  .nav-link,
  .header-icon-btn,
  .pagination-btn {
    min-height: 44px;
    min-width: 44px;
  }

  input[type="checkbox"],
  input[type="radio"] {
    width: 20px;
    height: 20px;
  }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .dashboard-wrapper {
    overflow-x: hidden;
  }

  .main-content {
    overflow-x: hidden;
  }

  /* Ensure header doesn't cause horizontal scroll */
  .top-header {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .header-left,
  .header-right {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Search box is hidden on mobile, no overflow issues */
}

/* ============================================
   CONTINUOUS ZOOM ANIMATIONS FOR CARD ICONS
   ============================================ */

/* Apply continuous zoom animation to all KPI card icons */
.kpi-icon.zoom-in-zoom-out {
  animation: zoom-in-zoom-out 2s ease-in-out infinite;
}

/* Static KPI icons (no animation) - used on home for lower CPU */
.kpi-icon.kpi-icon-static {
  animation: none;
}

/* Apply zoom animation to user avatar */
.welcome-avatar img,
.user-avatar {
  animation: zoomInOutSubtle 4s ease-in-out infinite;
}

/* Apply zoom animation to logo icon */
.logo-icon {
  animation: zoomInOutSubtle 3.5s ease-in-out infinite;
}

/* Apply zoom animation to stat icons */
.stat-icon {
  animation: zoomInOutSubtle 3.5s ease-in-out infinite;
}

/* Apply zoom animation to legend dots */
.legend-dot {
  animation: zoomInOutSubtle 3.5s ease-in-out infinite;
}

/* Staggered animation delays for visual variety */
.kpi-icon.zoom-in-zoom-out:nth-child(1),
.kpi-card:nth-child(1) .kpi-icon {
  animation-delay: 0s;
}

.kpi-icon.zoom-in-zoom-out:nth-child(2),
.kpi-card:nth-child(2) .kpi-icon {
  animation-delay: 0.2s;
}

.kpi-icon.zoom-in-zoom-out:nth-child(3),
.kpi-card:nth-child(3) .kpi-icon {
  animation-delay: 0.4s;
}

.kpi-icon.zoom-in-zoom-out:nth-child(4),
.kpi-card:nth-child(4) .kpi-icon {
  animation-delay: 0.6s;
}

.kpi-icon.zoom-in-zoom-out:nth-child(5),
.kpi-card:nth-child(5) .kpi-icon {
  animation-delay: 0.8s;
}

.kpi-icon.zoom-in-zoom-out:nth-child(6),
.kpi-card:nth-child(6) .kpi-icon {
  animation-delay: 1s;
}

.kpi-icon.zoom-in-zoom-out:nth-child(7),
.kpi-card:nth-child(7) .kpi-icon {
  animation-delay: 1.2s;
}

.kpi-icon.zoom-in-zoom-out:nth-child(8),
.kpi-card:nth-child(8) .kpi-icon {
  animation-delay: 1.4s;
}

/* ============================================
   TEXT ANIMATIONS
   ============================================ */

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes patternMove {
  0% {
    background-position:
      0 0,
      0 0,
      0 0,
      0% 50%;
  }
  50% {
    background-position:
      25px 25px,
      25px 25px,
      25px 25px,
      100% 50%;
  }
  100% {
    background-position:
      50px 50px,
      50px 50px,
      50px 50px,
      0% 50%;
  }
}

@keyframes patternRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes patternShift {
  0% {
    background-position:
      0 0,
      0 0;
  }
  100% {
    background-position:
      30px 0,
      0 30px;
  }
}

@keyframes floatUp {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(2deg);
  }
  66% {
    transform: translateY(-10px) rotate(-2deg);
  }
}

@keyframes textShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes textGlow {
  0%,
  100% {
    text-shadow:
      0 0 10px rgba(99, 102, 241, 0.3),
      0 0 20px rgba(99, 102, 241, 0.2);
  }
  50% {
    text-shadow:
      0 0 20px rgba(139, 92, 246, 0.5),
      0 0 30px rgba(139, 92, 246, 0.3);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Animated Page Title - Single Color Theme */
.page-title {
  font-family:
    "Orbitron",
    "Rajdhani",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 900;
  font-size: 42px;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0;
  color: #7c5cff;
  background: linear-gradient(135deg, #7c5cff 0%, #6b4de6 50%, #7c5cff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(124, 92, 255, 0.3);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transform-origin: center;
}

/* Single Color Gradient Flow Animation */
@keyframes titleGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Glow Pulse Animation */
@keyframes titleGlowPulse {
  0%,
  100% {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1))
      drop-shadow(0 0 20px rgba(124, 92, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1))
      drop-shadow(0 0 40px rgba(124, 92, 255, 0.6))
      drop-shadow(0 0 60px rgba(107, 77, 230, 0.4));
  }
}

/* Floating Animation */
@keyframes titleFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.02);
  }
}

/* Animated Underline - Single Color */
.page-title::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #7c5cff 20%,
    #6b4de6 50%,
    #7c5cff 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  border-radius: 2px;
  box-shadow:
    0 0 10px rgba(124, 92, 255, 0.5),
    0 0 20px rgba(107, 77, 230, 0.3);
}

@keyframes underlineFlow {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes underlineGlow {
  0%,
  100% {
    box-shadow:
      0 0 10px rgba(124, 92, 255, 0.5),
      0 0 20px rgba(107, 77, 230, 0.3);
    opacity: 1;
  }
  50% {
    box-shadow:
      0 0 20px rgba(124, 92, 255, 0.8),
      0 0 40px rgba(107, 77, 230, 0.6);
    opacity: 0.9;
  }
}

/* Animated Background - Single Color */
.page-title::after {
  content: "AI AUTOMATION DASHBOARD";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.1) 0%,
    rgba(107, 77, 230, 0.08) 50%,
    rgba(124, 92, 255, 0.1) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  z-index: -1;
  filter: blur(2px);
  opacity: 0.5;
}

@keyframes backgroundPulse {
  0%,
  100% {
    background-position: 0% 50%;
    opacity: 0.3;
  }
  50% {
    background-position: 100% 50%;
    opacity: 0.6;
  }
}

.page-title:hover {
  transform: none;
}

@keyframes titleBounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  25% {
    transform: translateY(-8px) scale(1.05);
  }
  50% {
    transform: translateY(-4px) scale(1.02);
  }
  75% {
    transform: translateY(-6px) scale(1.03);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-title {
    font-size: 28px;
    letter-spacing: 1px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 22px;
    letter-spacing: 0.5px;
  }
}

/* Animated Card Headers - Red Theme */
.card-header h3 {
  background: linear-gradient(135deg, var(--text-primary) 0%, #7c5cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  font-weight: 700;
  letter-spacing: -0.01em;
  animation:
    fadeIn 0.6s ease-out,
    gradientShift 3s ease infinite;
}

/* Animated Welcome Heading - Golden Theme */
.welcome-content h2 {
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    #7c5cff 50%,
    #6b4de6 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation:
    gradientShift 3s ease infinite,
    slideInUp 0.8s ease-out;
  position: relative;
}

/* Animated KPI Numbers - Golden Theme */
.kpi-content h3 {
  position: relative;
  background: linear-gradient(135deg, var(--text-primary) 0%, #7c5cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  font-weight: 800;
  letter-spacing: -0.02em;
  animation:
    fadeIn 0.6s ease-out backwards,
    gradientShift 3s ease infinite;
}

.kpi-card:nth-child(1) .kpi-content h3 {
  animation-delay: 0.1s;
}
.kpi-card:nth-child(2) .kpi-content h3 {
  animation-delay: 0.2s;
}
.kpi-card:nth-child(3) .kpi-content h3 {
  animation-delay: 0.3s;
}
.kpi-card:nth-child(4) .kpi-content h3 {
  animation-delay: 0.4s;
}
.kpi-card:nth-child(5) .kpi-content h3 {
  animation-delay: 0.5s;
}
.kpi-card:nth-child(6) .kpi-content h3 {
  animation-delay: 0.6s;
}
.kpi-card:nth-child(7) .kpi-content h3 {
  animation-delay: 0.7s;
}
.kpi-card:nth-child(8) .kpi-content h3 {
  animation-delay: 0.8s;
}

/* Animated Breadcrumb */
.breadcrumb {
  animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.breadcrumb a,
.breadcrumb span {
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #7c5cff;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .kpi-icon.zoom-in-zoom-out,
  .welcome-avatar img,
  .user-avatar,
  .logo-icon,
  .stat-icon,
  .legend-dot,
  .page-title,
  .card-header h3,
  .welcome-content h2,
  .kpi-content h3 {
    animation: none !important;
  }

  body {
    background: var(--bg-light) !important;
    animation: none !important;
  }

  body::before {
    display: none;
  }
}

/* ============================================
   PREMIUM & GRACIOUS ENHANCEMENTS
   ============================================ */

/* Premium Card Styling - Removed !important to allow original styles to work */
/* Original content-card styles at line 1629 are now active */

.content-card:nth-child(odd),
.chart-card:nth-child(odd) {
  animation-delay: 0s;
}

.content-card:nth-child(even),
.chart-card:nth-child(even) {
  animation-delay: 1s;
}

.content-card::before,
.chart-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(99, 102, 241, 0.6),
    rgba(139, 92, 246, 0.6),
    rgba(236, 72, 153, 0.6),
    rgba(99, 102, 241, 0.6),
    transparent
  );
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: gradientShift 4s ease infinite;
}

.content-card:hover::before,
.chart-card:hover::before {
  opacity: 1;
}

/* Hover effects use original styles - removed !important overrides */

/* KPI Icon styles use original definitions - removed !important overrides */

/* Premium Button Enhancements - Vibrant Theme */
.btn-primary {
  background: #7c5cff !important;
  color: #000 !important;
  border: 1px solid #7c5cff !important;
  box-shadow: 0 2px 4px rgba(124, 92, 255, 0.2) !important;
  transition: all 0.2s ease !important;
}

.btn-primary:hover {
  background: #6b4de6 !important;
  border-color: #6b4de6 !important;
  box-shadow: 0 4px 8px rgba(124, 92, 255, 0.3) !important;
}

.btn-warning {
  background: #7c5cff !important;
  color: #000 !important;
  border: 1px solid #7c5cff !important;
  box-shadow: 0 2px 4px rgba(124, 92, 255, 0.2) !important;
  transition: all 0.2s ease !important;
}

.btn-warning:hover {
  background: #6b4de6 !important;
  border-color: #6b4de6 !important;
  box-shadow: 0 4px 8px rgba(124, 92, 255, 0.3) !important;
}

.btn-outline {
  background: #1a1a1a !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.2s ease !important;
}

.btn-outline:hover {
  background: #f8f9fa !important;
  border-color: #7c5cff !important;
  color: #7c5cff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Premium Sidebar */
.sidebar {
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow:
    4px 0 24px rgba(0, 0, 0, 0.06),
    2px 0 12px rgba(0, 0, 0, 0.04) !important;
  border-right: 1px solid rgba(229, 231, 235, 0.6) !important;
}

.nav-item.active > .nav-link {
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.12) 0%,
    rgba(254, 202, 202, 0.1) 100%
  ) !important;
  box-shadow:
    0 4px 12px rgba(124, 92, 255, 0.15),
    inset 0 1px 0 rgba(124, 92, 255, 0.25) !important;
  border-left: 3px solid #7c5cff !important;
}

/* Premium Header */

/* Premium Welcome Card */
.welcome-card {
  background: 
        /* Texture Pattern - Diagonal */
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 4px,
      rgba(124, 92, 255, 0.03) 4px,
      rgba(124, 92, 255, 0.03) 8px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 4px,
      rgba(107, 77, 230, 0.03) 4px,
      rgba(107, 77, 230, 0.03) 8px
    ),
    /* Radial Gradient Texture - Multiple Layers */
    radial-gradient(
        circle at 10% 20%,
        rgba(124, 92, 255, 0.1) 0%,
        transparent 40%
      ),
    radial-gradient(
      circle at 90% 80%,
      rgba(107, 77, 230, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(124, 92, 255, 0.08) 0%,
      transparent 60%
    ),
    /* Base Gradient - Dark Theme */
    linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.95) 0%,
        rgba(51, 51, 51, 0.95) 100%
      ) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(124, 92, 255, 0.2) !important;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 6px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(124, 92, 255, 0.1) !important;
}

/* Premium Table */
.data-table {
  background: rgba(26, 26, 26, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.data-table thead th {
  background: linear-gradient(
    180deg,
    rgba(51, 51, 51, 0.9) 0%,
    rgba(26, 26, 26, 0.9) 100%
  ) !important;
  border-bottom: 2px solid rgba(124, 92, 255, 0.2) !important;
}

.data-table tbody tr:hover {
  background: linear-gradient(
    90deg,
    rgba(124, 92, 255, 0.1) 0%,
    rgba(107, 77, 230, 0.08) 100%
  ) !important;
  box-shadow:
    0 2px 8px rgba(124, 92, 255, 0.2),
    inset 0 1px 0 rgba(124, 92, 255, 0.1) !important;
  transform: translateX(4px) !important;
}

/* Premium Badges */
.badge-success {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.9) 0%,
    rgba(5, 150, 105, 0.9) 100%
  ) !important;
  border: 1px solid rgba(124, 92, 255, 0.2) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow:
    0 2px 8px rgba(16, 185, 129, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.badge-completed {
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.9) 0%,
    rgba(107, 77, 230, 0.9) 100%
  ) !important;
  border: 1px solid rgba(124, 92, 255, 0.2) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow:
    0 2px 8px rgba(124, 92, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

/* Premium Progress Bar */
.progress-bar {
  background: rgba(26, 26, 26, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06) !important;
}

.progress-fill {
  background: linear-gradient(
    90deg,
    #7c5cff 0%,
    #6b4de6 50%,
    #9d86ff 100%
  ) !important;
  background-size: 200% 100% !important;
  animation: gradientShift 2s ease infinite !important;
  box-shadow:
    0 2px 8px rgba(124, 92, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  border-radius: 10px !important;
}

/* Premium Search Box */
.search-box {
  background: rgba(26, 26, 26, 0.9) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(229, 231, 235, 0.8) !important;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(124, 92, 255, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.search-box:focus-within {
  background: rgba(255, 255, 255, 1) !important;
  border-color: rgba(124, 92, 255, 0.4) !important;
  box-shadow:
    0 8px 24px rgba(124, 92, 255, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(124, 92, 255, 0.4) !important;
  transform: scale(1.02) !important;
}

/* Premium Activity Items */
.activity-item {
  backdrop-filter: blur(10px) !important;
  border-radius: 12px !important;
  padding: 1rem !important;
  margin-bottom: 0.75rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid #7c5cff !important;
  animation:
    slideInFromLeft 0.6s ease-out backwards,
    curveFloat 20s ease-in-out infinite !important;
  position: relative;
  overflow: hidden;
}

.activity-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 92, 255, 0.2),
    transparent
  );
  animation: shimmerMove 3s ease-in-out infinite;
  pointer-events: none;
}

.activity-item:nth-child(1) {
  animation-delay: 0.1s;
}

.activity-item:nth-child(2) {
  animation-delay: 0.2s;
}

.activity-item:nth-child(3) {
  animation-delay: 0.3s;
}

.activity-item:nth-child(4) {
  animation-delay: 0.4s;
}

.activity-item:nth-child(5) {
  animation-delay: 0.5s;
}

.activity-item:nth-child(6) {
  animation-delay: 0.6s;
}

.activity-item:hover {
  transform: translateX(4px) !important;
  border-color: rgba(124, 92, 255, 0.3) !important;
}

/* Premium Schedule Items */
.schedule-item {
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(229, 231, 235, 0.6) !important;
  border-radius: 12px !important;
  padding: 1.25rem !important;
  margin-bottom: 1rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 2px 6px rgba(0, 0, 0, 0.02) !important;
  animation:
    floatUpDown 7s ease-in-out infinite,
    bounceInCurve 0.8s ease-out backwards;
  position: relative;
  overflow: hidden;
}

.schedule-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 92, 255, 0.5),
    rgba(107, 77, 230, 0.5),
    rgba(124, 92, 255, 0.5),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmerMove 2s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.schedule-item:hover::after {
  opacity: 1;
}

.schedule-item:nth-child(1) {
  animation-delay: 0s, 0.1s;
}

.schedule-item:nth-child(2) {
  animation-delay: 0.5s, 0.2s;
}

.schedule-item:hover {
  background: rgba(26, 26, 26, 0.9) !important;
  box-shadow:
    0 8px 24px rgba(124, 92, 255, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.04) !important;
  transform: translateY(-2px) !important;
  border-color: rgba(124, 92, 255, 0.4) !important;
}

/* Premium Typography */
.page-title {
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.2 !important;
}

.card-header h3 {
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.3 !important;
}

.kpi-content h3 {
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.2 !important;
}

/* Enhanced Spacing */
.kpi-card,
.content-card,
.chart-card {
  margin-bottom: 1.5rem !important;
  padding: 1.5rem !important;
}

.card-header {
  border-radius: 10px;
  margin-bottom: 1.25rem !important;
  padding-bottom: 1rem !important;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5) !important;
}

/* ============================================
   ENHANCED ANIMATIONS - CURVES & FLOATING
   ============================================ */

/* Progress Bar Shimmer Animation */
.progress-fill {
  position: relative;
  overflow: hidden;
}

.progress-fill::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 92, 255, 0.2),
    transparent
  );
  animation: shimmerMove 1.5s ease-in-out infinite;
}

/* Welcome Avatar Enhanced Animation */
.welcome-avatar {
  animation:
    rotateAndFloat 7s ease-in-out infinite,
    morphingCurve 8s ease-in-out infinite !important;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.3) !important;
  border: 3px solid rgba(124, 92, 255, 0.3) !important;
}

.welcome-avatar::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(124, 92, 255, 0.5);
  animation: pulseGlow 2s ease-in-out infinite;
  pointer-events: none;
}

.welcome-avatar img {
  animation: bounceInCurve 1s ease-out !important;
}

/* User Avatar Animation */
.user-avatar {
  animation:
    continuousFloat 6s ease-in-out infinite,
    breathing 3s ease-in-out infinite !important;
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.2) !important;
  transition: all 0.3s ease !important;
}

.user-avatar:hover {
  animation: bounceInCurve 0.6s ease-out !important;
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.4) !important;
}

/* Logo Icon Animation */
.logo-icon {
  animation:
    spiralFloat 8s ease-in-out infinite,
    glowPulse 2.5s ease-in-out infinite !important;
  position: relative;
}

.logo-icon::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(124, 92, 255, 0.5);
  animation: pulseGlow 2s ease-in-out infinite;
  pointer-events: none;
}

/* Button Ripple Effect - Removed for simplicity */

/* Badge Pulse Animation */
.badge-success,
.badge-completed {
  animation: pulseGlow 2s ease-in-out infinite !important;
  position: relative;
}

.badge-success::after,
.badge-completed::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(124, 92, 255, 0.5);
  animation: pulseGlow 2s ease-in-out infinite;
  pointer-events: none;
}

/* Animated Background Curves */
.dashboard-wrapper::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(124, 92, 255, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(107, 77, 230, 0.05) 0%,
      transparent 50%
    );
  animation: rotate3D 30s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* Chart Container Animations */
.card-body canvas {
  animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Table Row Stagger Animation */
.data-table tbody tr {
  animation:
    slideInFromRight 0.8s ease-out backwards,
    continuousFloat 15s ease-in-out infinite !important;
}

.data-table tbody tr:nth-child(1) {
  animation-delay: 0.1s;
}
.data-table tbody tr:nth-child(2) {
  animation-delay: 0.2s;
}
.data-table tbody tr:nth-child(3) {
  animation-delay: 0.3s;
}
.data-table tbody tr:nth-child(4) {
  animation-delay: 0.4s;
}
.data-table tbody tr:nth-child(5) {
  animation-delay: 0.5s;
}
.data-table tbody tr:nth-child(6) {
  animation-delay: 0.6s;
}
.data-table tbody tr:nth-child(7) {
  animation-delay: 0.7s;
}

/* Schedule Item Enhanced Animation */
.schedule-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 92, 255, 0.5),
    rgba(107, 77, 230, 0.5),
    rgba(124, 92, 255, 0.5),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmerMove 2s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.schedule-item:hover::after {
  opacity: 1;
}

.schedule-item:nth-child(1) {
  animation-delay: 0s, 0.1s;
}

.schedule-item:nth-child(2) {
  animation-delay: 0.5s, 0.2s;
}

/* Activity Item Shimmer */
.activity-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 92, 255, 0.2),
    transparent
  );
  animation: shimmerMove 3s ease-in-out infinite;
  pointer-events: none;
}

.activity-item:nth-child(1) {
  animation-delay: 0.1s;
}
.activity-item:nth-child(2) {
  animation-delay: 0.2s;
}
.activity-item:nth-child(3) {
  animation-delay: 0.3s;
}
.activity-item:nth-child(4) {
  animation-delay: 0.4s;
}
.activity-item:nth-child(5) {
  animation-delay: 0.5s;
}
.activity-item:nth-child(6) {
  animation-delay: 0.6s;
}

/* KPI Card Rotating Background */
/* .kpi-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.1) 0%, transparent 70%);
    animation: rotate3D 20s linear infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
} */

.kpi-card:hover::after {
  opacity: 1;
}

/* Welcome Card Rotating Background */
.welcome-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(124, 92, 255, 0.1) 90deg,
    transparent 180deg,
    rgba(107, 77, 230, 0.1) 270deg,
    transparent 360deg
  );
  animation: rotate3D 15s linear infinite;
  pointer-events: none;
  opacity: 0.5;
}

/* Content Card Stagger Animation */
.content-card:nth-child(odd),
.chart-card:nth-child(odd) {
  animation-delay: 0s;
}

.content-card:nth-child(even),
.chart-card:nth-child(even) {
  animation-delay: 1s;
}

/* ============================================
   ANIMATED BORDERS FOR CARDS
   ============================================ */

@keyframes borderRotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes borderShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes borderPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes borderGlow {
  0%,
  100% {
    box-shadow:
      0 0 5px rgba(124, 92, 255, 0.3),
      inset 0 0 5px rgba(124, 92, 255, 0.1);
  }
  50% {
    box-shadow:
      0 0 20px rgba(124, 92, 255, 0.6),
      inset 0 0 10px rgba(124, 92, 255, 0.2);
  }
}

@keyframes borderFlow {
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* KPI Card Animated Border - Base Styles */
.kpi-card {
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.kpi-card:hover::before {
  background: linear-gradient(
    45deg,
    rgba(124, 92, 255, 0.6),
    rgba(107, 77, 230, 0.8),
    rgba(124, 92, 255, 0.6),
    rgba(254, 202, 202, 0.7),
    rgba(124, 92, 255, 0.6)
  );
  animation:
    borderRotate 2s ease infinite,
    borderGlow 1.5s ease-in-out infinite,
    morphingCurve 10s ease-in-out infinite;
}

/* Content Card Animated Border - Base Styles */
.content-card,
.chart-card {
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.content-card:hover::before,
.chart-card:hover::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 92, 255, 0.7),
    rgba(107, 77, 230, 0.9),
    rgba(124, 92, 255, 0.7),
    transparent
  );
  animation:
    borderShimmer 1.5s linear infinite,
    borderPulse 2s ease-in-out infinite;
}

/* Welcome Card Animated Border */
.welcome-card {
  position: relative;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.welcome-card::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-lg);
  padding: 3px;
  background: conic-gradient(
    from 0deg,
    rgba(124, 92, 255, 0.5),
    rgba(107, 77, 230, 0.7),
    rgba(124, 92, 255, 0.5),
    rgba(254, 202, 202, 0.6),
    rgba(124, 92, 255, 0.5)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation:
    rotate3D 8s linear infinite,
    borderGlow 3s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

.welcome-card:hover::after {
  animation:
    rotate3D 4s linear infinite,
    borderGlow 1.5s ease-in-out infinite;
}

/* Schedule Item Animated Border */
.schedule-item {
  position: relative;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.schedule-item::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.3),
    rgba(107, 77, 230, 0.5),
    rgba(124, 92, 255, 0.3)
  );
  background-size: 200% 200%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderFlow 5s ease infinite;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.schedule-item:hover::before {
  opacity: 1;
  animation: borderFlow 2s ease infinite;
}

/* Activity Item Animated Border */
.activity-item {
  position: relative;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.activity-item::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 92, 255, 0.4),
    rgba(107, 77, 230, 0.6),
    rgba(124, 92, 255, 0.4),
    transparent
  );
  background-size: 200% 100%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderShimmer 4s linear infinite;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.activity-item:hover::after {
  opacity: 1;
  animation: borderShimmer 2s linear infinite;
}

/* Todo Item Animated Border */
.todo-item {
  position: relative;
}

.todo-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    rgba(124, 92, 255, 0.5),
    rgba(107, 77, 230, 0.7),
    rgba(124, 92, 255, 0.5)
  );
  background-size: 100% 200%;
  border-radius: 0 3px 3px 0;
  animation: borderShimmer 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.todo-item:hover::before {
  opacity: 1;
}

/* Invoice Item Animated Border */
.invoice-item {
  position: relative;
}

.invoice-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(
    45deg,
    rgba(124, 92, 255, 0.3),
    rgba(107, 77, 230, 0.5),
    rgba(124, 92, 255, 0.3)
  );
  background-size: 200% 200%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderFlow 6s ease infinite;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.invoice-item:hover::before {
  opacity: 1;
  animation: borderFlow 3s ease infinite;
}

/* Applicant Item Animated Border */
.applicant-item {
  position: relative;
}

.applicant-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 92, 255, 0.4),
    rgba(107, 77, 230, 0.6),
    rgba(124, 92, 255, 0.4),
    transparent
  );
  background-size: 200% 100%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderShimmer 5s linear infinite;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.applicant-item:hover::before {
  opacity: 1;
  animation: borderShimmer 2.5s linear infinite;
}

/* Clock Item Animated Border */
.clock-item {
  position: relative;
}

.clock-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    rgba(124, 92, 255, 0.5),
    rgba(107, 77, 230, 0.7),
    rgba(124, 92, 255, 0.5)
  );
  background-size: 100% 200%;
  border-radius: 0 3px 3px 0;
  animation: borderShimmer 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.clock-item:hover::before {
  opacity: 1;
}

/* Birthday Item Animated Border */
.birthday-item {
  position: relative;
}

.birthday-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.3),
    rgba(107, 77, 230, 0.5),
    rgba(124, 92, 255, 0.3)
  );
  background-size: 200% 200%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderFlow 5s ease infinite;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.birthday-item:hover::before {
  opacity: 1;
  animation: borderFlow 2.5s ease infinite;
}

/* Employee Status Card Animated Border */
.employee-status-header {
  position: relative;
}

.employee-status-header::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 92, 255, 0.5),
    rgba(107, 77, 230, 0.7),
    rgba(124, 92, 255, 0.5),
    transparent
  );
  background-size: 200% 100%;
  animation: none;
}

/* Status Progress Bar Animated Border */
.status-progress-bar {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.status-progress-bar::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 8px;
  padding: 2px;
  background: linear-gradient(
    90deg,
    rgba(124, 92, 255, 0.3),
    rgba(107, 77, 230, 0.5),
    rgba(124, 92, 255, 0.3)
  );
  background-size: 200% 100%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderShimmer 4s linear infinite;
  z-index: -1;
  pointer-events: none;
}

/* Mobile Optimization for Animated Borders */
@media (max-width: 768px) {
  .kpi-card::before,
  .content-card::before,
  .chart-card::before,
  .welcome-card::after {
    animation-duration: 6s !important;
  }

  .schedule-item::before,
  .activity-item::after {
    animation-duration: 4s !important;
  }
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================
   EXTRA ANIMATED DECORATIVE ELEMENTS
   ============================================ */

/* Animated Background Particles */
.dashboard-wrapper::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(124, 92, 255, 0.1) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(107, 77, 230, 0.1) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(254, 202, 202, 0.08) 0%,
      transparent 40%
    );
  animation: morphingCurve 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Animated Curve Lines - Combined with Border */
.kpi-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(
    45deg,
    rgba(124, 92, 255, 0.3),
    rgba(107, 77, 230, 0.5),
    rgba(124, 92, 255, 0.3),
    rgba(254, 202, 202, 0.4),
    rgba(124, 92, 255, 0.3)
  );
  background-size: 300% 300%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation:
    borderRotate 4s ease infinite,
    borderGlow 3s ease-in-out infinite,
    morphingCurve 15s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

/* Removed decorative curve circle from KPI cards */
/* .kpi-card::after removed */

/* Content Card Animated Border - Combined */
.content-card::before,
.chart-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 92, 255, 0.4),
    rgba(107, 77, 230, 0.6),
    rgba(124, 92, 255, 0.4),
    transparent
  );
  background-size: 200% 100%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation:
    borderShimmer 3s linear infinite,
    borderPulse 4s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

/* Removed decorative curve circles from Content and Chart cards */
.content-card::after,
.chart-card::after {
  display: none;
  content: none;
}

/* Schedule Items Enhanced */
.schedule-item {
  animation:
    continuousFloat 14s ease-in-out infinite,
    slideInFromBottom 0.8s ease-out backwards !important;
}

/* Progress Bar Enhanced Animation */
.progress-fill {
  animation:
    shimmerMove 1.5s ease-in-out infinite,
    breathing 2s ease-in-out infinite !important;
}

/* Badge Enhanced */
.badge-success,
.badge-completed,
.badge-warning {
  animation:
    elasticBounce 3s ease-in-out infinite,
    glowPulse 2s ease-in-out infinite !important;
}

/* Button Enhanced - Simplified, no animations */

/* Card Header Animation */
.card-header {
  animation: slideInFromTop 0.6s ease-out backwards !important;
}

.card-header h3 {
  animation: slideInFromLeft 0.8s ease-out backwards !important;
}

/* KPI Content Numbers */
.kpi-content h3 {
  animation:
    slideInFromBottom 0.5s ease-out backwards,
    continuousFloat 12s ease-in-out infinite !important;
}

/* Page Title Enhanced */
.page-title {
  animation: none !important;
}

/* Sidebar Navigation Items */
.nav-item {
  animation: slideInFromLeft 0.4s ease-out backwards;
}

.nav-item:nth-child(1) {
  animation-delay: 0.1s;
}
.nav-item:nth-child(2) {
  animation-delay: 0.2s;
}
.nav-item:nth-child(3) {
  animation-delay: 0.3s;
}
.nav-item:nth-child(4) {
  animation-delay: 0.4s;
}
.nav-item:nth-child(5) {
  animation-delay: 0.5s;
}

/* Table Enhanced */
.data-table thead {
  animation: slideInFromTop 0.6s ease-out !important;
}

.data-table thead th {
  animation: slideInFromTop 0.8s ease-out backwards !important;
}

.data-table thead th:nth-child(1) {
  animation-delay: 0.1s;
}
.data-table thead th:nth-child(2) {
  animation-delay: 0.2s;
}
.data-table thead th:nth-child(3) {
  animation-delay: 0.3s;
}
.data-table thead th:nth-child(4) {
  animation-delay: 0.4s;
}
.data-table thead th:nth-child(5) {
  animation-delay: 0.5s;
}
.data-table thead th:nth-child(6) {
  animation-delay: 0.6s;
}
.data-table thead th:nth-child(7) {
  animation-delay: 0.7s;
}

/* Chart Cards Enhanced */
.chart-card .card-body {
  animation: fadeInScale 1.2s ease-out !important;
}

/* Welcome Content */
.welcome-content {
  animation: slideInFromLeft 1s ease-out backwards !important;
}

.welcome-content h2 {
  animation: slideInFromLeft 1.2s ease-out backwards !important;
}

.welcome-actions {
  animation: slideInFromRight 1s ease-out backwards !important;
}

/* Activity Avatar */
.activity-avatar {
  animation: rotateAndFloat 5s ease-in-out infinite !important;
}

/* Schedule Tag */
.schedule-tag {
  animation: elasticBounce 2s ease-in-out infinite !important;
}

/* KPI Footer */
.kpi-footer {
  animation: slideInFromBottom 0.6s ease-out backwards !important;
}

/* Enhanced Hover Effects with Curves */
.kpi-card:hover {
  animation-play-state: paused !important;
  transform: translateY(-12px) scale(1.05) !important;
}

.content-card:hover,
.chart-card:hover {
  animation-play-state: paused !important;
  transform: translateY(-10px) scale(1.02) !important;
}

/* Animated Dividers */
.card-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 92, 255, 0.5),
    rgba(107, 77, 230, 0.5),
    transparent
  );
  animation: shimmerMove 3s ease-in-out infinite;
}

/* Floating Action Buttons */
.btn-primary,
.btn-warning {
  position: relative;
  overflow: visible;
}

.btn-primary::after,
.btn-warning::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 2px solid rgba(124, 92, 255, 0.3);
  animation: pulseGlow 2s ease-in-out infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::after,
.btn-warning:hover::after {
  opacity: 1;
}

/* Animated Icons in Header */
.header-icon-btn {
  animation: rotateAndFloat 8s ease-in-out infinite !important;
  transition: all 0.3s ease !important;
}

.header-icon-btn:hover {
  animation: elasticBounce 0.5s ease-out !important;
  transform: scale(1.1) !important;
}

/* Search Box Animation */
.search-box {
  animation: breathing 4s ease-in-out infinite !important;
}

.search-box:focus-within {
  animation: elasticBounce 0.6s ease-out !important;
}

/* Enhanced Mobile Animations */
@media (max-width: 768px) {
  .kpi-card,
  .content-card,
  .chart-card {
    animation-duration: 6s !important;
  }

  .welcome-card {
    animation-duration: 8s !important;
  }
}

/* ============================================
   GRADIENT TEXTURE BACKGROUNDS FOR CARD ELEMENTS
   ============================================ */

/* Schedule Item Texture */
.schedule-item {
  background:
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 2px,
      rgba(124, 92, 255, 0.02) 2px,
      rgba(124, 92, 255, 0.02) 4px
    ),
    radial-gradient(
      circle at center,
      rgba(254, 202, 202, 0.08) 0%,
      transparent 70%
    ),
    rgba(255, 255, 255, 0.5) !important;
}

/* Activity Item Texture */

/* Todo Item Texture */
.todo-item {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(124, 92, 255, 0.01) 3px,
      rgba(124, 92, 255, 0.01) 6px
    ),
    transparent;
}

/* Invoice Item Texture */
.invoice-item {
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 3px,
      rgba(124, 92, 255, 0.02) 3px,
      rgba(124, 92, 255, 0.02) 6px
    ),
    radial-gradient(
      circle at right center,
      rgba(254, 202, 202, 0.1) 0%,
      transparent 60%
    ),
    rgba(255, 255, 255, 0.3);
}

/* Applicant Item Texture */
.applicant-item {
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(124, 92, 255, 0.015) 2px,
      rgba(124, 92, 255, 0.015) 4px
    ),
    rgba(255, 255, 255, 0.4);
}

/* Birthday Item Texture */
.birthday-item {
  background:
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 2px,
      rgba(124, 92, 255, 0.02) 2px,
      rgba(124, 92, 255, 0.02) 4px
    ),
    radial-gradient(
      circle at center,
      rgba(107, 77, 230, 0.08) 0%,
      transparent 70%
    ),
    rgba(255, 255, 255, 0.3);
}

/* Clock Item Texture */
.clock-item {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(124, 92, 255, 0.01) 3px,
      rgba(124, 92, 255, 0.01) 6px
    ),
    transparent;
}

/* Employee Status Card Texture */
.content-card .employee-status-header {
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(124, 92, 255, 0.015) 2px,
      rgba(124, 92, 255, 0.015) 4px
    ),
    radial-gradient(
      ellipse at top,
      rgba(254, 202, 202, 0.1) 0%,
      transparent 50%
    ),
    transparent;
}

/* Status Progress Bar Texture */
.status-progress-bar {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(124, 92, 255, 0.02) 2px,
      rgba(124, 92, 255, 0.02) 4px
    ),
    rgba(248, 250, 252, 0.8);
}

/* Card Body Texture Enhancement */
.content-card .card-body,
.chart-card .card-body {
  background:
    radial-gradient(
      circle at top right,
      rgba(254, 202, 202, 0.05) 0%,
      transparent 50%
    ),
    transparent;
}

/* ============================================
   ACTIVE BOTS - UNIQUE ANIMATIONS
   ============================================ */

/* All KPI Cards Special Animation */
.kpi-card {
  position: relative;
  overflow: visible !important;
}

.kpi-card::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: var(--radius-lg);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(124, 92, 255, 0.3) 0%,
    rgba(107, 77, 230, 0.2) 30%,
    transparent 70%
  );
  animation:
    activeBotsPulse 2s ease-in-out infinite,
    rotate3D 20s linear infinite;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* Removed decorative circle from KPI cards */
.kpi-card::after {
  display: none;
  content: none;
}

/* Staggered animation delays for different cards */
.row .col-12:nth-child(1) .kpi-card::before,
/* Removed circle animation delays since circles are removed */
.row .col-12:nth-child(1) .kpi-card::before {
  animation-delay: 0s;
}

.row .col-12:nth-child(2) .kpi-card::before {
  animation-delay: 0.3s;
}

.row .col-12:nth-child(3) .kpi-card::before {
  animation-delay: 0.6s;
}

.row .col-12:nth-child(4) .kpi-card::before {
  animation-delay: 0.9s;
}

.row .col-12:nth-child(5) .kpi-card::before {
  animation-delay: 1.2s;
}

.row .col-12:nth-child(6) .kpi-card::before {
  animation-delay: 1.5s;
}

.row .col-12:nth-child(7) .kpi-card::before {
  animation-delay: 1.8s;
}

.row .col-12:nth-child(8) .kpi-card::before {
  animation-delay: 2.1s;
}

/* All KPI Icons Special Animation */
.kpi-icon {
  position: relative;
  animation:
    activeBotsIconBounce 2s ease-in-out infinite,
    activeBotsIconRotate 4s linear infinite,
    glowPulse 2s ease-in-out infinite !important;
  transform-origin: center;
}

/* Staggered icon animation delays */
.row .col-12:nth-child(1) .kpi-icon,
.row .col-12:nth-child(1) .kpi-icon::before,
.row .col-12:nth-child(1) .kpi-icon::after {
  animation-delay: 0s;
}

.row .col-12:nth-child(2) .kpi-icon,
.row .col-12:nth-child(2) .kpi-icon::before,
.row .col-12:nth-child(2) .kpi-icon::after {
  animation-delay: 0.2s;
}

.row .col-12:nth-child(3) .kpi-icon,
.row .col-12:nth-child(3) .kpi-icon::before,
.row .col-12:nth-child(3) .kpi-icon::after {
  animation-delay: 0.4s;
}

.row .col-12:nth-child(4) .kpi-icon,
.row .col-12:nth-child(4) .kpi-icon::before,
.row .col-12:nth-child(4) .kpi-icon::after {
  animation-delay: 0.6s;
}

.row .col-12:nth-child(5) .kpi-icon,
.row .col-12:nth-child(5) .kpi-icon::before,
.row .col-12:nth-child(5) .kpi-icon::after {
  animation-delay: 0.8s;
}

.row .col-12:nth-child(6) .kpi-icon,
.row .col-12:nth-child(6) .kpi-icon::before,
.row .col-12:nth-child(6) .kpi-icon::after {
  animation-delay: 1s;
}

.row .col-12:nth-child(7) .kpi-icon,
.row .col-12:nth-child(7) .kpi-icon::before,
.row .col-12:nth-child(7) .kpi-icon::after {
  animation-delay: 1.2s;
}

.row .col-12:nth-child(8) .kpi-icon,
.row .col-12:nth-child(8) .kpi-icon::before,
.row .col-12:nth-child(8) .kpi-icon::after {
  animation-delay: 1.4s;
}

/* All KPI Numbers Animation */
.kpi-content h3 {
  position: relative;
  animation:
    activeBotsNumberPulse 2.5s ease-in-out infinite,
    activeBotsNumberGlow 3s ease-in-out infinite !important;
  display: inline-block;
}

.kpi-content h3::before {
  content: attr(data-value);
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.8),
    rgba(107, 77, 230, 0.8),
    rgba(124, 92, 255, 0.8)
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: activeBotsNumberShimmer 2s linear infinite;
  opacity: 0.7;
  z-index: -1;
}

/* Staggered number animation delays */
.row .col-12:nth-child(1) .kpi-content h3,
.row .col-12:nth-child(1) .kpi-content h3::before {
  animation-delay: 0s;
}

.row .col-12:nth-child(2) .kpi-content h3,
.row .col-12:nth-child(2) .kpi-content h3::before {
  animation-delay: 0.25s;
}

.row .col-12:nth-child(3) .kpi-content h3,
.row .col-12:nth-child(3) .kpi-content h3::before {
  animation-delay: 0.5s;
}

.row .col-12:nth-child(4) .kpi-content h3,
.row .col-12:nth-child(4) .kpi-content h3::before {
  animation-delay: 0.75s;
}

.row .col-12:nth-child(5) .kpi-content h3,
.row .col-12:nth-child(5) .kpi-content h3::before {
  animation-delay: 1s;
}

.row .col-12:nth-child(6) .kpi-content h3,
.row .col-12:nth-child(6) .kpi-content h3::before {
  animation-delay: 1.25s;
}

.row .col-12:nth-child(7) .kpi-content h3,
.row .col-12:nth-child(7) .kpi-content h3::before {
  animation-delay: 1.5s;
}

.row .col-12:nth-child(8) .kpi-content h3,
.row .col-12:nth-child(8) .kpi-content h3::before {
  animation-delay: 1.75s;
}

/* KPI Labels - static (no animation) */
.kpi-content p {
  position: relative;
  animation: none !important;
  display: inline-block;
}

.kpi-content p::before {
  display: none;
}

/* Staggered label animation delays */
.row .col-12:nth-child(1) .kpi-content p,
.row .col-12:nth-child(1) .kpi-content p::before {
  animation-delay: 0s;
}

.row .col-12:nth-child(2) .kpi-content p,
.row .col-12:nth-child(2) .kpi-content p::before {
  animation-delay: 0.3s;
}

.row .col-12:nth-child(3) .kpi-content p,
.row .col-12:nth-child(3) .kpi-content p::before {
  animation-delay: 0.6s;
}

.row .col-12:nth-child(4) .kpi-content p,
.row .col-12:nth-child(4) .kpi-content p::before {
  animation-delay: 0.9s;
}

.row .col-12:nth-child(5) .kpi-content p,
.row .col-12:nth-child(5) .kpi-content p::before {
  animation-delay: 1.2s;
}

.row .col-12:nth-child(6) .kpi-content p,
.row .col-12:nth-child(6) .kpi-content p::before {
  animation-delay: 1.5s;
}

.row .col-12:nth-child(7) .kpi-content p,
.row .col-12:nth-child(7) .kpi-content p::before {
  animation-delay: 1.8s;
}

.row .col-12:nth-child(8) .kpi-content p,
.row .col-12:nth-child(8) .kpi-content p::before {
  animation-delay: 2.1s;
}

/* Active Bots Chart Number Animation */
.active-bots-chart-number {
  animation:
    activeBotsChartPulse 2s ease-in-out infinite,
    activeBotsChartScale 3s ease-in-out infinite !important;
  position: relative;
}

.active-bots-chart-number::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 92, 255, 0.3) 0%,
    transparent 70%
  );
  animation: activeBotsChartGlow 2.5s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

/* Active Bots Chart Label Animation */
.active-bots-chart-label {
  animation: activeBotsChartLabelFloat 4s ease-in-out infinite !important;
  position: relative;
}

.active-bots-chart-label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -10px;
  width: 4px;
  height: 4px;
  background: rgba(124, 92, 255, 0.8);
  border-radius: 50%;
  animation: activeBotsChartDot 2s ease-in-out infinite;
  transform: translateY(-50%);
}

.active-bots-chart-label::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 4px;
  height: 4px;
  background: rgba(107, 77, 230, 0.8);
  border-radius: 50%;
  animation: activeBotsChartDot 2s ease-in-out infinite 0.5s;
  transform: translateY(-50%);
}

/* Keyframe Animations for Active Bots */

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow:
      0 4px 12px rgba(99, 102, 241, 0.3),
      0 2px 6px rgba(139, 92, 246, 0.2),
      inset 0 1px 0 rgba(124, 92, 255, 0.15);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 8px 24px rgba(99, 102, 241, 0.5),
      0 4px 12px rgba(139, 92, 246, 0.4),
      inset 0 1px 0 rgba(124, 92, 255, 0.2);
    transform: scale(1.05);
  }
}

@keyframes activeBotsPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes activeBotsOrbit {
  0% {
    transform: rotate(0deg) translateX(30px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(30px) rotate(-360deg);
  }
}

@keyframes activeBotsScale {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@keyframes activeBotsIconBounce {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(5deg);
  }
  50% {
    transform: translateY(-12px) rotate(0deg);
  }
  75% {
    transform: translateY(-8px) rotate(-5deg);
  }
}

@keyframes activeBotsIconRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes activeBotsIconGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

@keyframes activeBotsSparkle {
  0%,
  100% {
    opacity: 0;
    transform: translate(0, 0) scale(0);
  }
  25% {
    opacity: 1;
    transform: translate(10px, -10px) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(15px, -15px) scale(1.2);
  }
  75% {
    opacity: 0.5;
    transform: translate(20px, -20px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(25px, -25px) scale(0);
  }
}

@keyframes activeBotsNumberPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes activeBotsNumberGlow {
  0%,
  100% {
    text-shadow:
      0 0 5px rgba(124, 92, 255, 0.3),
      0 0 10px rgba(107, 77, 230, 0.2);
  }
  50% {
    text-shadow:
      0 0 10px rgba(124, 92, 255, 0.6),
      0 0 20px rgba(107, 77, 230, 0.4),
      0 0 30px rgba(124, 92, 255, 0.3);
  }
}

@keyframes activeBotsNumberShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes activeBotsLabelWave {
  0%,
  100% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(0px);
  }
  75% {
    transform: translateY(2px);
  }
}

@keyframes activeBotsLabelUnderline {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes activeBotsChartPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes activeBotsChartScale {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.05) rotate(2deg);
  }
  50% {
    transform: scale(1.1) rotate(0deg);
  }
  75% {
    transform: scale(1.05) rotate(-2deg);
  }
}

@keyframes activeBotsChartGlow {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.5);
  }
}

@keyframes activeBotsChartLabelFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes activeBotsChartDot {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.5);
  }
}

/* Enhanced Hover Effects for All KPI Cards */
.kpi-card:hover {
  animation-play-state: paused !important;
}

.kpi-card:hover::before {
  animation:
    activeBotsPulse 1s ease-in-out infinite,
    rotate3D 10s linear infinite;
  opacity: 0.9;
}

.kpi-card:hover .kpi-icon {
  animation:
    activeBotsIconBounce 0.8s ease-in-out infinite,
    activeBotsIconRotate 2s linear infinite,
    glowPulse 1s ease-in-out infinite !important;
}

.kpi-card:hover .kpi-content h3 {
  animation:
    activeBotsNumberPulse 1.5s ease-in-out infinite,
    activeBotsNumberGlow 1.5s ease-in-out infinite !important;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .kpi-card::before {
    animation-duration: 3s !important;
  }

  .kpi-icon {
    animation-duration: 3s, 6s, 3s !important;
  }

  .kpi-content h3,
  .active-bots-chart-number {
    animation-duration: 3s, 4s !important;
  }
}

/* ============================================
   YOUTUBE VIDEO CARDS
   ============================================ */
.video-card {
  background: linear-gradient(135deg, #333333 0%, #2a2a2a 50%, #333333 100%);
  background-size: 200% 200%;
  animation: videoCardGradient 10s ease infinite;
  border-radius: 20px;
  border-image: linear-gradient(
      135deg,
      rgba(124, 92, 255, 0.2) 0%,
      rgba(107, 77, 230, 0.15) 50%,
      rgba(124, 92, 255, 0.2) 100%
    )
    1;
  box-shadow:
    0 8px 32px rgba(124, 92, 255, 0.1),
    0 4px 16px rgba(124, 92, 255, 0.08),
    0 2px 8px rgba(124, 92, 255, 0.06),
    inset 0 1px 0 rgba(124, 92, 255, 0.1);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.video-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(124, 92, 255, 0.1) 0%,
    rgba(107, 77, 230, 0.06) 40%,
    transparent 70%
  );
  animation: videoCardGlow 8s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(124, 92, 255, 0.2) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.video-card:hover {
  transform: translateY(-10px) scale(1.03) rotate(0.5deg);
  box-shadow:
    0 20px 50px rgba(124, 92, 255, 0.25),
    0 10px 30px rgba(124, 92, 255, 0.18),
    0 5px 15px rgba(124, 92, 255, 0.12),
    0 0 0 3px rgba(124, 92, 255, 0.15),
    inset 0 2px 4px rgba(124, 92, 255, 0.1);
  border-image: linear-gradient(
      135deg,
      rgba(124, 92, 255, 0.4) 0%,
      rgba(107, 77, 230, 0.35) 50%,
      rgba(124, 92, 255, 0.4) 100%
    )
    1;
}

.video-card:hover::after {
  opacity: 1;
  animation: videoCardShine 2s ease-in-out infinite;
}

@keyframes videoCardGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes videoCardGlow {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes videoCardShine {
  0% {
    transform: translateX(-100%) translateY(-100%);
  }
  100% {
    transform: translateX(100%) translateY(100%);
  }
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-bottom: 2px solid rgba(124, 92, 255, 0.1);
  z-index: 2;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1) contrast(1);
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.video-status-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
}

.video-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 2;
  background: #000;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.08);
  filter: brightness(1.05) contrast(1.1);
}

.video-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
}

.video-channel {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.video-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.video-stat-item {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
}

.video-stat-item svg {
  color: var(--text-secondary);
  opacity: 0.7;
}

.video-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.video-actions .btn {
  flex: 1;
  font-size: 12px;
  padding: 6px 12px;
}

/* Mobile Responsive Styles for Video Cards */
@media (max-width: 768px) {
  .video-card {
    margin-bottom: 15px;
  }

  .video-card-content {
    padding: 12px;
  }

  .video-title {
    font-size: 14px;
    min-height: 2.5em;
  }

  .video-channel {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .video-stats {
    gap: 8px;
    margin-bottom: 10px;
    font-size: 11px;
  }

  .video-stat-item svg {
    width: 12px;
    height: 12px;
  }

  .video-actions {
    gap: 6px;
    padding-top: 10px;
    flex-direction: column;
  }

  .video-actions .btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .video-status-badge {
    top: 6px;
    right: 6px;
  }

  .video-status-badge .badge {
    font-size: 10px;
    padding: 3px 6px;
  }
}

@media (max-width: 576px) {
  .video-card-content {
    padding: 10px;
  }

  .video-title {
    font-size: 13px;
  }

  .video-stats {
    flex-direction: column;
    gap: 6px;
  }

  .video-actions .btn {
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* ============================================
   YOUTUBE LIVE STATS - UNIQUE MODERN DESIGN
   ============================================ */
.youtube-live-stats-card {
  position: relative;
  overflow: hidden;
  background: #141414;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.youtube-live-stats-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.3) 0%,
    rgba(107, 77, 230, 0.4) 25%,
    rgba(124, 92, 255, 0.3) 50%,
    rgba(107, 77, 230, 0.4) 75%,
    rgba(124, 92, 255, 0.3) 100%
  );
  background-size: 200% 200%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: youtubeBorderFlow 3s linear infinite;
  z-index: -1;
}

@keyframes youtubeBorderFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.youtube-live-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 20px 24px;
  border-bottom: 2px solid;
  border-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(124, 92, 255, 0.2) 20%,
      rgba(124, 92, 255, 0.3) 50%,
      rgba(124, 92, 255, 0.2) 80%,
      transparent 100%
    )
    1;
}

.youtube-live-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.youtube-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #7c5cff 0%, #9d86ff 50%, #6b4de6 100%);
  border-radius: 20px;
  box-shadow:
    0 4px 12px rgba(124, 92, 255, 0.3),
    0 0 20px rgba(124, 92, 255, 0.2);
  animation: youtubeBadgePulse 2s ease-in-out infinite;
}

@keyframes youtubeBadgePulse {
  0%,
  100% {
    box-shadow:
      0 4px 12px rgba(124, 92, 255, 0.3),
      0 0 20px rgba(124, 92, 255, 0.2);
  }
  50% {
    box-shadow:
      0 4px 16px rgba(124, 92, 255, 0.4),
      0 0 30px rgba(124, 92, 255, 0.3);
  }
}

.youtube-live-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  animation: youtubeLivePulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes youtubeLivePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.3);
  }
}

.youtube-live-text {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.youtube-live-title {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    #7c5cff 50%,
    var(--text-primary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: youtubeTitleGradient 4s ease infinite;
  margin: 0;
}

@keyframes youtubeTitleGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.youtube-live-time {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.youtube-stats-body {
  padding: 24px !important;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(124, 92, 255, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(107, 77, 230, 0.03) 0%,
      transparent 50%
    ),
    rgba(255, 255, 255, 0.5);
}

.youtube-stat-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1.5px solid transparent;
}

.youtube-stat-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1.5px;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(124, 92, 255, 0.2),
    transparent
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.youtube-stat-item:hover::before {
  opacity: 1;
}

.youtube-stat-item:hover {
  transform: translateY(-4px) scale(1.02);
}

/* Single color scheme for all stats */
.stat-views,
.stat-subscribers,
.stat-likes,
.stat-watchtime {
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.08) 0%,
    rgba(107, 77, 230, 0.06) 50%,
    rgba(124, 92, 255, 0.08) 100%
  );
  border-color: rgba(124, 92, 255, 0.15);
}

.stat-views:hover,
.stat-subscribers:hover,
.stat-likes:hover,
.stat-watchtime:hover {
  box-shadow:
    0 8px 24px rgba(124, 92, 255, 0.2),
    0 0 0 1px rgba(124, 92, 255, 0.1);
}

.stat-views .youtube-stat-icon,
.stat-subscribers .youtube-stat-icon,
.stat-likes .youtube-stat-icon,
.stat-watchtime .youtube-stat-icon {
  background: linear-gradient(135deg, #7c5cff 0%, #9d86ff 50%, #6b4de6 100%);
  color: white;
}

.stat-views .youtube-stat-glow,
.stat-subscribers .youtube-stat-glow,
.stat-likes .youtube-stat-glow,
.stat-watchtime .youtube-stat-glow {
  background: radial-gradient(
    circle,
    rgba(124, 92, 255, 0.4) 0%,
    transparent 70%
  );
}

.youtube-stat-icon-wrapper {
  position: relative;
  flex-shrink: 0;
}

.youtube-stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.youtube-stat-item:hover .youtube-stat-icon {
  transform: translateY(-2px) rotate(5deg) scale(1.1);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.2),
    0 4px 10px rgba(0, 0, 0, 0.15);
}

.youtube-stat-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  animation: youtubeGlowPulse 3s ease-in-out infinite;
}

.youtube-stat-item:hover .youtube-stat-glow {
  opacity: 0.6;
}

@keyframes youtubeGlowPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.5;
  }
}

.youtube-stat-content {
  flex: 1;
  min-width: 0;
}

.youtube-stat-value {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    #7c5cff 50%,
    var(--text-primary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  line-height: 1.2;
  margin-bottom: 6px;
  transition: all 0.3s ease;
  letter-spacing: -0.5px;
}

.youtube-stat-item:hover .youtube-stat-value {
  animation: youtubeValueGlow 2s ease-in-out infinite;
}

@keyframes youtubeValueGlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.youtube-stat-value.updating {
  animation: youtubeNumberUpdate 0.5s ease;
}

@keyframes youtubeNumberUpdate {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

.youtube-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  opacity: 0.8;
}

.youtube-stat-change {
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.15) 0%,
    rgba(5, 150, 105, 0.12) 100%
  );
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
  transition: all 0.3s ease;
}

.youtube-stat-change.positive {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.15) 0%,
    rgba(5, 150, 105, 0.12) 100%
  );
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.2);
}

.youtube-stat-change.negative {
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.15) 0%,
    rgba(185, 28, 28, 0.12) 100%
  );
  color: #7c5cff;
  border-color: rgba(124, 92, 255, 0.2);
}

.youtube-stat-item:hover .youtube-stat-change {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.2);
}

/* YouTube Video Card Enhancements */
.video-card {
  position: relative;
  transition: all 0.3s ease;
}

.video-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(124, 92, 255, 0.03) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.video-card:hover::after {
  opacity: 1;
  animation: youtubeCardShine 2s ease-in-out infinite;
}

@keyframes youtubeCardShine {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.video-thumbnail {
  position: relative;
  overflow: hidden;
}

.video-thumbnail img {
  transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

/* Continuous Animation for Stats */
@keyframes youtubeContinuousCount {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-2px);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.youtube-stat-value.animating {
  animation: youtubeContinuousCount 1s ease-in-out infinite;
}

/* Continuous YouTube Animations */
@keyframes youtubeViewsCounter {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.video-stat-item {
  position: relative;
  transition: all 0.3s ease;
}

.video-stat-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(124, 92, 255, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.video-stat-item:hover::after {
  opacity: 1;
  animation: youtubePulseGlow 2s ease-in-out infinite;
}

@keyframes youtubePulseGlow {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

/* Animated YouTube Badge */
.badge-success,
.badge-warning,
.badge-info {
  position: relative;
  overflow: hidden;
}

.badge-success::before,
.badge-warning::before,
.badge-info::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: youtubeBadgeShine 3s linear infinite;
}

@keyframes youtubeBadgeShine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Continuous Video Card Animation */
.video-card {
  animation: youtubeCardFloat 6s ease-in-out infinite;
}

@keyframes youtubeCardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.video-card:nth-child(1) {
  animation-delay: 0s;
}
.video-card:nth-child(2) {
  animation-delay: 0.5s;
}
.video-card:nth-child(3) {
  animation-delay: 1s;
}
.video-card:nth-child(4) {
  animation-delay: 1.5s;
}

/* YouTube Progress Bar Animation */
.progress-fill {
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: youtubeProgressShine 2s linear infinite;
}

@keyframes youtubeProgressShine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .youtube-stat-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .youtube-stat-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .youtube-stat-value {
    font-size: 20px;
  }

  .video-card {
    animation: none;
  }
}

/* ============================================
   PERFORMANCE OVERRIDE - DISABLE ALL ANIMATIONS AND HOVER EFFECTS
   ============================================ */
/* This section disables all continuous animations and hover effects to prevent page freezing */

/* Performance Fix: Only disable body background animations to prevent freezing */
/* All other CSS styling is kept intact */
body::before,
body::after {
  animation: none !important;
}
.support-form-card,
.support-chat-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.support-form-card .card-header,
.support-chat-card .card-header {
  border-bottom: 1px solid var(--border-color);
  padding: 20px;
}
.support-form-card .card-body {
  padding: 30px;
}
.support-chat-card .card-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 600px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  background: #1a1a1a;
  color: var(--text-primary);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.1);
}
.chat-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-header-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.chat-status {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #198754;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-message {
  display: flex;
  gap: 12px;
  max-width: 75%;
}
.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.chat-message-content {
  background: #000;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}
.chat-message.user .chat-message-content {
  background: var(--primary-orange);
  color: #000;
}
.chat-message-time {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
  padding: 0 4px;
}
.chat-message.user .chat-message-time {
  text-align: right;
}
.chat-input-area {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  align-items: center;
}
.chat-input-wrapper {
  flex: 1;
  position: relative;
}
.chat-input {
  width: 100%;
  padding: 12px 45px 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  background: #1a1a1a;
  color: var(--text-primary);
}
.chat-input:focus {
  outline: none;
  border-color: var(--primary-orange);
}
.chat-input-icons {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}
.chat-icon-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
}
.chat-icon-btn:hover {
  color: var(--primary-orange);
}
.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-orange);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.chat-send-btn:hover {
  background: var(--primary-orange-dark);
}

/* ============================================
   BOTTOM NAVIGATION BAR
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  z-index: 1000;
  box-shadow: none;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 12px;
  min-width: 60px;
  position: relative;
}

.bottom-nav-item svg {
  width: 24px;
  height: 24px;
  transition: all 0.2s ease;
}

.bottom-nav-label {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

.bottom-nav-item.active {
  color: var(--primary-orange);
}

.bottom-nav-item.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--primary-orange);
  border-radius: 0 0 3px 3px;
}

.bottom-nav-item:hover {
  color: var(--primary-orange);
  background: var(--acc-soft);
}

.bottom-nav-item.active svg {
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .bottom-nav {
    padding: 6px 0;
  }

  .bottom-nav-item {
    padding: 6px 8px;
    min-width: 50px;
  }

  .bottom-nav-item svg {
    width: 22px;
    height: 22px;
  }

  .bottom-nav-label {
    font-size: 10px;
  }
}

/* Bottom Nav Submenu */
.bottom-nav-item-with-submenu {
  position: relative;
}

.bottom-nav-item-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.bottom-nav-submenu {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #1a1a1a;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 8px;
  min-width: 180px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px) scale(0.95);
  transition: all 0.3s ease;
  margin-bottom: 8px;
  z-index: 1001;
}

.bottom-nav-item-with-submenu.active .bottom-nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.bottom-nav-submenu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.bottom-nav-submenu-item svg {
  width: 20px;
  height: 20px;
  color: currentColor;
}

.bottom-nav-submenu-item:hover {
  background: rgba(124, 92, 255, 0.1);
  color: var(--primary-orange);
}

.bottom-nav-submenu-item span {
  flex: 1;
}

/* ============================================
   INPUT TEXT COLOR - THEME COLOR FOR ALL INPUTS
   ============================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
textarea,
select {
  background-color: var(--bg-black) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
textarea:focus,
select:focus {
  background-color: var(--bg-black) !important;
  color: var(--text-primary) !important;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
input[type="tel"]::placeholder,
input[type="url"]::placeholder,
input[type="search"]::placeholder,
textarea::placeholder {
  color: var(--text-muted) !important;
  opacity: 0.7;
}

/* ============================================
   PROFILE TABS
   ============================================ */
.profile-tabs-wrapper {
  margin-bottom: 24px;
}

.profile-tabs {
  display: flex;
  gap: 12px;
  background: #1a1a1a;
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.profile-tab {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.profile-tab:hover {
  color: var(--text-primary);
  background: rgba(124, 92, 255, 0.1);
}

.profile-tab.active {
  background: var(--primary-orange);
  color: #000000;
  font-weight: 600;
}

.profile-tab.active svg {
  color: #000000;
}

.profile-tab svg {
  color: currentColor;
  transition: all 0.2s ease;
}

.profile-tab-content {
  position: relative;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .profile-tabs {
    flex-direction: column;
    gap: 8px;
  }

  .profile-tab {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   Authentication Pages Styles (Login & Signup)
   ============================================ */

.auth-wrapper {
  min-height: 100vh;
  background: #ffffff;
}

/* Left Side - Promotional */
.auth-left {
  background: linear-gradient(135deg, #7c5cff 0%, #9d86ff 50%, #6b4de6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.auth-left img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: block;
}

.auth-left::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(60px);
}

.auth-left::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  filter: blur(50px);
}

.auth-promo-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  max-width: 500px;
}

.auth-promo-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.auth-promo-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
}

.auth-promo-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.auth-promo-subtitle {
  font-size: 18px;
  margin-bottom: 50px;
  opacity: 0.95;
  line-height: 1.6;
}

.auth-promo-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin-top: 30px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.auth-promo-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 40px;
  text-align: left;
}

.auth-promo-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.auth-promo-feature-icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Right Side - Form */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #000;
}

.auth-card {
  background: #141414;
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 500px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.auth-logo-img {
  height: 72px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.auth-title {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 15px;
  color: #a0a0a0;
  margin-bottom: 35px;
}

.auth-form .form-group {
  margin-bottom: 22px;
}

.auth-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 8px;
}

.auth-form .form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #333333;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s;
  background: #ffffff;
  color: var(--text-primary);
}

.auth-form .form-input:focus {
  outline: none;
  border-color: #7c5cff;
  box-shadow:
    0 0 0 3px rgba(124, 92, 255, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.05),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.remember-me span {
  color: #a0a0a0;
  font-size: 14px;
}

.forgot-password {
  color: #7c5cff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
}

.terms-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
}

.terms-checkbox label {
  font-size: 14px;
  color: #a0a0a0;
  line-height: 1.5;
}

.terms-checkbox a {
  color: #7c5cff;
  text-decoration: none;
}

.terms-checkbox a:hover {
  text-decoration: underline;
}

.auth-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #7c5cff 0%, #9d86ff 100%);
  color: #000000;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 25px;
  box-shadow:
    0 4px 12px rgba(124, 92, 255, 0.25),
    0 2px 6px rgba(124, 92, 255, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.3),
    inset 0 -1px 2px rgba(107, 77, 230, 0.2);
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 16px rgba(124, 92, 255, 0.35),
    0 3px 8px rgba(124, 92, 255, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.auth-divider {
  text-align: center;
  margin: 28px 0;
  position: relative;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  right: 0;
  height: 1px;
  background: #333333;
}

.auth-divider span {
  background: #141414;
  padding: 0 15px;
  position: relative;
  color: #a0a0a0;
  font-size: 14px;
}

.social-login {
  display: flex;
  gap: 12px;
}

.social-btn {
  flex: 1;
  padding: 14px;
  border: 1px solid #333333;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.social-btn:hover {
  background: #f8f9fa;
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.social-btn.facebook {
  background: #1877f2;
  border-color: #1877f2;
}

.social-btn.facebook svg {
  fill: white;
}

.social-btn.apple {
  background: #000;
  border-color: #000;
}

.social-btn.apple svg {
  fill: white;
}

.auth-footer {
  text-align: center;
  margin-top: 30px;
  color: #a0a0a0;
  font-size: 13px;
}

.auth-link {
  color: #7c5cff;
  text-decoration: none;
  font-weight: 500;
}

.auth-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 991.98px) {
  .auth-left {
    display: none !important;
  }

  .auth-right {
    padding: 30px 20px;
    min-height: 100vh;
  }

  .auth-card {
    /* padding: 35px; */
  }
}

@media (max-width: 768px) {
  .auth-left {
    display: none !important;
  }

  .auth-right {
    padding: 30px 20px;
    min-height: 100vh;
  }

  .auth-card {
    /* padding: 30px 25px; */
  }

  .auth-title {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .auth-left {
    display: none !important;
  }

  .auth-right {
    padding: 25px 15px;
  }

  .auth-card {
    /* padding: 25px 20px; */
  }

  .auth-title {
    font-size: 24px;
  }

  .auth-subtitle {
    font-size: 13px;
  }

  .auth-form .form-input {
    padding: 12px 14px;
    font-size: 14px;
  }

  .auth-btn {
    padding: 14px;
    font-size: 15px;
  }

  .auth-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .social-login {
    flex-direction: column;
    gap: 10px;
  }

  .social-btn {
    width: 100%;
  }

  .auth-logo {
    margin-bottom: 20px;
  }

  .auth-logo-img {
    height: 56px;
    max-width: 180px;
  }
}
