:root {
  --primary: #0a0a0a;
  --secondary: #151515;
  --accent: #6a0dad;        /* roxo principal */
  --accent-light: #b266ff;  /* lilás claro */
  --accent-purple: #6a0dad;
  --accent-blue: #000080;
  --text: #ffffff;
  --text-muted: #a0a0a0;    /* mantém cinza */
  --border: #333333;        /* mantém cinza escuro */
  --success: #00cc66;
  --warning: #b266ff;       /* substitui laranja */
  --danger: #b266ff;        /* substitui vermelho */
  --card-bg: rgba(15, 15, 15, 0.85);
  --sidebar-width: 280px;
  --sidebar-collapsed: 70px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--primary);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Interactive Background Canvas */
#magic-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-color: #000;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--sidebar-width);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
  border-right: 1px solid var(--border);
  z-index: 100;
  transition: all 0.3s ease;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(106, 13, 173, 0.3); /* antes vermelho */
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

.sidebar-brand {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.sidebar-brand::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg,
    rgba(106, 13, 173, 0) 0%,
    rgba(106, 13, 173, 0.1) 25%,
    rgba(106, 13, 173, 0.1) 50%,
    rgba(0, 0, 128, 0.1) 75%,
    rgba(0, 0, 0, 0) 100%);
  animation: rgb-border-flow 5s linear infinite;
}

@keyframes rgb-border-flow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.sidebar-brand img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 0 15px rgba(106, 13, 173, 0.7);
  z-index: 1;
}

.sidebar-brand .brand-text {
  margin-left: 15px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.2rem;
  background: linear-gradient(90deg, #d1b3ff, #6a0dad, #4b0082, #d1b3ff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rgb-text 5s linear infinite;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

@keyframes rgb-text {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.sidebar.collapsed .sidebar-brand .brand-text {
  opacity: 0;
  width: 0;
}

.sidebar-profile {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.sidebar-profile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(106, 13, 173, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  animation: pulse-bg 3s ease-in-out infinite;
}

@keyframes pulse-bg {
  0% { opacity: 0.3; }
  50% { opacity: 0.7; }
  100% { opacity: 0.3; }
}

.profile-img {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
  display: block;
}

/* cria a borda animada separada da foto */
.profile-img::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #d1b3ff, #6a0dad, #4b0082, #d1b3ff);
  background-size: 400% 400%;
  animation: borderPulse 5s linear infinite;
  z-index: -1;
}

@keyframes borderPulse {
  0%   { opacity: 0.3; }
  50%  { opacity: 1; }
  100% { opacity: 0.3; }
}

.profile-info {
  text-align: center;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.sidebar.collapsed .profile-info {
  opacity: 0;
  height: 0;
  margin: 0;
}

.profile-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 5px;
  text-shadow: 0 0 10px rgba(106, 13, 173, 0.5);
}

.profile-status {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sidebar-menu {
  padding: 20px 0;
}

.menu-category {
  padding: 10px 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 1px;
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .menu-category {
  opacity: 0;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.menu-item {
  position: relative;
}

.menu-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.menu-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    rgba(106, 13, 173, 0) 0%,
    rgba(106, 13, 173, 0.12) 50%,
    rgba(106, 13, 173, 0) 100%);
  transition: all 0.5s ease;
}

.menu-link:hover::before {
  left: 100%;
}

.menu-link:hover {
  background-color: rgba(106, 13, 173, 0.2);
  color: #fff;
}

.menu-link.active {
  background: linear-gradient(90deg, rgba(106, 13, 173, 0.8) 0%, rgba(75, 0, 130, 0.8) 100%);
  color: #fff;
}

.menu-icon {
  font-size: 1.2rem;
  min-width: 30px;
  display: flex;
  justify-content: center;
}

.menu-text {
  margin-left: 10px;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .menu-text {
  opacity: 0;
  width: 0;
}

.menu-arrow {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.sidebar.collapsed .menu-arrow {
  opacity: 0;
  width: 0;
}

.menu-item.open .menu-arrow {
  transform: rotate(90deg);
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: rgba(0, 0, 0, 0.3);
}

.menu-item.open .submenu {
  max-height: 1000px;
}

.submenu-link {
  display: block;
  padding: 10px 20px 10px 60px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
}

.submenu-link::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background-color: var(--accent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.submenu-link:hover::before {
  opacity: 1;
}

.submenu-link:hover {
  color: #fff;
  background-color: rgba(106, 13, 173, 0.12);
  padding-left: 65px;
}

/* Close Sidebar Button */
.close-sidebar {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(106, 13, 173, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.close-sidebar:hover {
  background-color: rgba(106, 13, 173, 0.5);
  transform: rotate(90deg);
}

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

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  padding: 20px;
  transition: margin-left 0.3s ease;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.main-content.expanded {
  margin-left: var(--sidebar-collapsed);
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(106, 13, 173, 0) 0%,
    rgba(106, 13, 173, 1) 50%,
    rgba(106, 13, 173, 0) 100%);
  animation: flow-light 5s linear infinite;
}

@keyframes flow-light {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

.navbar-left {
  display: flex;
  align-items: center;
}

.toggle-sidebar {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  margin-right: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.toggle-sidebar::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle, rgba(106, 13, 173, 0.5) 0%, rgba(106, 13, 173, 0) 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
  z-index: -1;
}

.toggle-sidebar:hover::after {
  opacity: 1;
}

.toggle-sidebar:hover {
  color: var(--accent-light);
  transform: scale(1.1);
}

.search-form {
  position: relative;
  width: 300px;
}

.search-input {
  width: 100%;
  padding: 10px 15px;
  padding-left: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(106, 13, 173, 0.3);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.navbar-right {
  display: flex;
  align-items: center;
}

.nav-item {
  position: relative;
  margin-left: 20px;
}

.nav-link {
  color: var(--text);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-light);
  transform: scale(1.1);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  background: linear-gradient(45deg, var(--accent) 0%, var(--accent-purple) 100%);
  color: #fff;
  font-size: 0.7rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(106, 13, 173, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(106, 13, 173, 0); }
  100% { box-shadow: 0 0 0 0 rgba(106, 13, 173, 0); }
}

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

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background: linear-gradient(45deg, #d1b3ff, #6a0dad, #4b0082, #d1b3ff) border-box;
  padding: 2px;
  display: block;
  background-clip: border-box;
}

.user-name {
  margin-left: 10px;
  font-weight: 500;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #d1b3ff, #6a0dad, #4b0082, #d1b3ff);
  background-size: 400% 400%;
  z-index: -1;
  border-radius: 12px;
  animation: rgb-border 5s ease infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

@keyframes rgb-border {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.card-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-purple) 100%);
  position: relative;
  overflow: hidden;
}

.card-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}

.card-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.card-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  z-index: 1;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.card-body {
  padding: 20px;
  position: relative;
  z-index: 1;
}

.card-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 0 10px rgba(106, 13, 173, 0.5);
}

.card-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* API Key Verification */
.api-verify {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.api-verify::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #d1b3ff, #6a0dad, #4b0082, #d1b3ff);
  background-size: 400% 400%;
  z-index: -1;
  border-radius: 12px;
  animation: rgb-border 5s ease infinite;
  opacity: 0.5;
}

.api-verify-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.api-verify-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(106, 13, 173, 0) 0%,
    rgba(106, 13, 173, 1) 50%,
    rgba(106, 13, 173, 0) 100%);
}

.api-verify-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--warning);
  display: flex;
  align-items: center;
  text-shadow: 0 0 10px rgba(178, 102, 255, 0.5);
}

.api-verify-title i {
  margin-right: 10px;
  animation: rotate 3s linear infinite;
}

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

.api-input {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  font-size: 1rem;
  text-align: center;
  font-weight: 600;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.api-input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(106, 13, 173, 0.3);
}

.verify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  background: linear-gradient(45deg, var(--accent) 0%, var(--accent-purple) 100%);
  background-size: 200% 200%;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.verify-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.verify-btn:hover::before {
  opacity: 1;
}

.verify-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

.verify-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.verify-btn i {
  margin-right: 10px;
}

/* Calendar */
.calendar {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

.calendar-header {
  padding: 15px;
  background: linear-gradient(90deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
  color: #fff;
  text-align: center;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.calendar-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%);
  animation: shine 3s infinite;
}

.calendar-body {
  padding: 15px;
}

.calendar-date {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 5px;
  background: linear-gradient(90deg, #d1b3ff, #6a0dad, #4b0082, #d1b3ff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rgb-text 5s linear infinite;
}

.calendar-day {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Status Panel */
.status-panel {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  margin-bottom: 30px;
  position: relative;
}

.status-panel::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #d1b3ff, #6a0dad, #4b0082, #d1b3ff);
  background-size: 400% 400%;
  z-index: -1;
  border-radius: 12px;
  animation: rgb-border 5s ease infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.status-panel:hover::before {
  opacity: 1;
}

.status-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  position: relative;
  overflow: hidden;
}

.status-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%);
  animation: shine 3s infinite;
}

.status-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.status-body {
  padding: 20px;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.status-label {
  font-weight: 500;
}

.status-value {
  display: flex;
  align-items: center;
}

.status-badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.status-badge.online {
  background-color: rgba(0, 204, 102, 0.2);
  color: var(--success);
  box-shadow: 0 0 10px rgba(0, 204, 102, 0.3);
}

.status-badge.offline {
  background-color: rgba(178, 102, 255, 0.2);
  color: var(--danger);
  box-shadow: 0 0 10px rgba(178, 102, 255, 0.3);
}

.status-badge.warning {
  background-color: rgba(178, 102, 255, 0.2);
  color: var(--warning);
  box-shadow: 0 0 10px rgba(178, 102, 255, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
  .sidebar {
    width: var(--sidebar-collapsed);
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
    width: var(--sidebar-width);
  }

  .sidebar.active .sidebar-brand .brand-text,
  .sidebar.active .profile-info,
  .sidebar.active .menu-category,
  .sidebar.active .menu-text,
  .sidebar.active .menu-arrow {
    opacity: 1;
    width: auto;
  }

  .main-content {
    margin-left: 0;
  }

  .main-content.expanded {
    margin-left: 0;
  }

  .search-form {
    width: 200px;
  }
}

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

  .search-form {
    display: none;
  }

  .user-name {
    display: none;
  }
}

/* Floating Elements Animation */
.floating-element {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  opacity: 0.1;
  animation: float-element 15s ease-in-out infinite;
}

@keyframes float-element {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent), var(--accent-purple));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--accent-light), var(--accent-purple));
}

/* Overlay for mobile when sidebar is open */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

/* Custom Notification */
.custom-notification {
  border-radius: 10px !important;
  box-shadow: 0 0 10px rgba(106, 13, 173, 0.5) !important;
}

.custom-notification .swal2-html-container {
  padding: 0 !important;
}

.custom-notification::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #d1b3ff, #6a0dad, #4b0082);
  border-radius: 12px;
  z-index: -1;
  padding: 2px;
}

.menu-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  transition: fill 0.3s;
}

.menu-link:hover .menu-icon svg {
  fill: #d1b3ff;
}