/* Application Layout Styles
 * Extracted from inline styles in application.html.erb for CSP compliance
 */

/* Animations */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(203, 166, 247, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(245, 194, 231, 0.8);
  }
}

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

.animate-glow {
  animation: glow 3s ease-in-out infinite;
}

.animate-float {
  animation: float-slow 5s ease-in-out infinite;
}

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

::-webkit-scrollbar-track {
  background: var(--mocha-mantle);
}

::-webkit-scrollbar-thumb {
  background: var(--mocha-surface0);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--mocha-surface1);
}

/* Sidebar active state indicator */
.sidebar-link.active {
  background-color: #313244;
  color: #f5c2e7;
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 70%;
  background-color: #f5c2e7;
  border-radius: 0 2px 2px 0;
}

/* Smooth transitions for sidebar */
.sidebar-transition {
  transition: width 300ms ease-in-out, padding 300ms ease-in-out;
}

/* Expanded sidebar text styles */
.sidebar-expanded .sidebar-link {
  justify-content: flex-start;
}

.sidebar-expanded .sidebar-section-header {
  opacity: 1;
  visibility: visible;
  transition: opacity 300ms ease-in-out;
}

.sidebar-collapsed .sidebar-section-header {
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease-in-out;
}

/* Prevent text overflow in sidebar */
.sidebar-link span[data-sidebar-target='itemLabel'] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 12rem; /* Adjust as needed */
}

/* App body gradient background */
.app-body {
  background: linear-gradient(to bottom, #1e1e2e, #181825);
  min-height: 100vh;
}
