/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
@keyframes fade-out {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-5px); }
}

.animate-fade-out {
  animation: fade-out 3s forwards;
}

@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse-subtle {
  animation: pulse-subtle 1.5s infinite;
}

/* Ocean atmosphere — ultra-subtle floating animation for gradient orbs */
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes float-slower {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 25px) scale(1.03); }
}

@media (prefers-reduced-motion: no-preference) {
  .animate-float-slow {
    animation: float-slow 20s ease-in-out infinite;
    will-change: transform;
  }

  .animate-float-slower {
    animation: float-slower 25s ease-in-out infinite;
    will-change: transform;
  }
}

/* ========================================
   SIDEBAR REDESIGN: Modern Professional SaaS
   ======================================== */

/* Color Variables */
:root {
  --sidebar-bg: #1a2332;
  --sidebar-border: #2d3e52;
  --text-primary: #ffffff;
  --text-secondary: #a0aac0;
  --text-muted: #687a99;
  --hover-bg: #253447;
  --active-bg: #1f3a52;
  --accent: #10b981;
  --accent-light: #34d399;
}

/* Business Branding Section */
.sidebar-brand-section {
  padding: 1.5rem 1rem;
  background: linear-gradient(135deg, transparent, rgba(16, 185, 129, 0.05));
  border-bottom: 1px solid var(--sidebar-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-brand-section:hover {
  background: linear-gradient(135deg, transparent, rgba(16, 185, 129, 0.1));
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand-link:hover {
  transform: translateX(2px);
}

.brand-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: box-shadow 0.3s ease;
}

.brand-link:hover .brand-avatar {
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.avatar-initials {
  letter-spacing: 0.05em;
}

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

.brand-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
  line-height: 1.2;
}

/* Navigation Section Labels */
.nav-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.75rem 0.75rem 0.5rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.nav-section-label:first-of-type {
  margin-top: 0;
}

/* Navigation Links */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-link i {
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--hover-bg);
}

.nav-link:hover i {
  color: var(--text-primary);
}

.nav-link.active {
  background-color: var(--active-bg);
  color: var(--accent-light);
  font-weight: 700;
}

.nav-link.active i {
  color: var(--accent);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-light));
  border-radius: 0 3px 3px 0;
}

/* User Profile Section */
.sidebar-user-profile {
  border-bottom: 1px solid var(--sidebar-border);
  margin-bottom: 0.5rem;
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

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

.user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: capitalize;
  margin-top: 0.125rem;
}

/* Smooth sidebar scrolling */
.sidebar-brand-section + nav {
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* Divider styling */
.sidebar-divider {
  border-color: var(--sidebar-border);
}
