:root{
  --sidebar-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Purple gradient */
  --sidebar-hover: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); /* Pink gradient */
  --sidebar-text: #ffffff;
  --accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); /* Blue gradient */
  --accent-contrast: #fff;
  --main-bg: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); /* Peach gradient */
  --card-bg: rgba(255, 255, 255, 0.95);
  --shadow-color: rgba(0, 0, 0, 0.1);
}

html, body {
  height: 100%;
  background: var(--main-bg);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.app-container {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.app-sidebar .brand {
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: #fff;
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  animation: bounceIn 0.8s ease-out;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.app-sidebar .nav {
  gap: 0.5rem;
}

.app-sidebar .nav-link {
  color: var(--sidebar-text);
  border-radius: 15px;
  padding: 0.8rem 1rem;
  margin: 0.2rem 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease-out backwards;
}

.app-sidebar .nav-link:nth-child(1) { animation-delay: 0.1s; }
.app-sidebar .nav-link:nth-child(2) { animation-delay: 0.2s; }
.app-sidebar .nav-link:nth-child(3) { animation-delay: 0.3s; }
.app-sidebar .nav-link:nth-child(4) { animation-delay: 0.4s; }
.app-sidebar .nav-link:nth-child(5) { animation-delay: 0.5s; }
.app-sidebar .nav-link:nth-child(6) { animation-delay: 0.6s; }
.app-sidebar .nav-link:nth-child(7) { animation-delay: 0.7s; }
.app-sidebar .nav-link:nth-child(8) { animation-delay: 0.8s; }

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

.app-sidebar .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.app-sidebar .nav-link:hover::before {
  left: 100%;
}

.app-sidebar .nav-link:hover {
  background: var(--sidebar-hover);
  color: #fff;
  transform: translateX(5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.app-sidebar .nav-link.active {
  background: var(--accent);
  color: var(--accent-contrast);
  transform: translateX(5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.app-sidebar .nav-link i {
  font-size: 1.2rem;
  margin-right: 0.8rem;
  transition: transform 0.3s ease;
}

.app-sidebar .nav-link:hover i {
  transform: scale(1.2) rotate(5deg);
}

.app-main {
  flex: 1;
  padding: 2rem;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.card {
  border: none;
  border-radius: 20px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: slideUp 0.6s ease-out;
}

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

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card .card-body {
  padding: 1.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 25px;
  padding: 0.6rem 1.5rem;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* User profile section */
.app-sidebar .mt-auto {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideUp 0.8s ease-out;
}

.app-sidebar .rounded-circle {
  background: linear-gradient(135deg, #ff6b6b, #feca57) !important;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  transition: all 0.3s ease;
}

.app-sidebar .rounded-circle:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Floating animation for brand */
.app-sidebar .brand:hover {
  animation: float 1s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Responsive animations */
@media (max-width: 768px) {
  .app-sidebar {
    width: 200px;
  }
  
  .app-sidebar .nav-link {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .app-sidebar .nav-link i {
    font-size: 1rem;
    margin-right: 0.5rem;
  }
}