/* Login Page */
.login-page {
  min-height: 100vh;
  width: 100vw;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 10% 20%, rgba(227, 6, 19, 0.03) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(227, 6, 19, 0.03) 0px, transparent 50%);
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

.login-page.centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 420px;
  max-width: 90vw;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  position: relative;
  z-index: 10;
}

.login-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), transparent);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}

.login-card__logo {
  font-size: var(--text-3xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, #ffffff, var(--accent-primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.login-card__logo svg {
  width: 32px;
  height: 32px;
  color: var(--accent-primary);
}

.login-card__subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-xl);
}

.login-demo-info {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.login-demo-title {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm) !important;
  font-weight: 600;
}

.login-demo-users {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
}

.login-demo-user {
  font-size: var(--text-xs);
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.login-demo-user:hover {
  background-color: var(--accent-primary-light);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* Dashboard Page */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.dashboard-charts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.chart-container {
  min-height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-recent {
  margin-top: var(--space-lg);
}

/* Custom CSS-based Charts (simulated canvas) */
.custom-bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 200px;
  padding-top: var(--space-lg);
  border-bottom: 2px solid var(--border-color);
  border-left: 2px solid var(--border-color);
  width: 100%;
}

.custom-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 10%;
  position: relative;
}

.custom-bar-fill {
  width: 100%;
  background: linear-gradient(to top, var(--accent-primary), var(--accent-primary-hover));
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: height var(--transition-slow) ease-out;
  position: relative;
  min-height: 4px;
}

.custom-bar-fill:hover {
  filter: brightness(1.2);
}

.custom-bar-tooltip {
  position: absolute;
  top: -30px;
  background-color: var(--bg-active);
  color: var(--text-primary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.custom-bar-fill:hover .custom-bar-tooltip {
  opacity: 1;
}

.custom-bar-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
  white-space: nowrap;
  transform: translateY(100%);
  position: absolute;
  bottom: -20px;
}

/* Doughnut Chart representation */
.custom-doughnut-chart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  width: 100%;
}

.doughnut-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.doughnut-hole {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.doughnut-hole-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.doughnut-hole-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.doughnut-legend {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.doughnut-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.doughnut-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Responsive elements */
@media (max-width: 1024px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-charts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}

/* Scroll Animations */
.scroll-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-anim.in-view {
  opacity: 1;
  transform: translateY(0);
}

