/* Dashboard Layout & Styles */

/* Dashboard Container */
.dashboard {
  display: grid;
  grid-template-columns: 66px 1fr;
  height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  overflow: hidden;
}

/* Sidebar Navigation */
.dashboard-sidebar {
  background: rgba(12, 12, 14, 0.5);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  gap: 8px;
  overflow-y: auto;
  position: relative;
  z-index: 100;
}

.dashboard-sidebar::-webkit-scrollbar {
  width: 4px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
  background: rgba(240, 5, 154, 0.2);
  border-radius: 4px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 5, 154, 0.4);
}

/* Main Content */
.dashboard-main {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Header Bar */
.dashboard-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--color-border);
  background: rgba(12, 12, 14, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
  min-height: 60px;
}

/* Breadcrumb */
.dashboard-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--color-border);
  background: rgba(240, 5, 154, 0.04);
  font-size: 15px;
  font-weight: 600;
}

/* Content Area */
.dashboard-content {
  flex: 1;
  overflow-y: auto;
  background: var(--color-bg);
}

.dashboard-content::-webkit-scrollbar {
  width: 8px;
}

.dashboard-content::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-content::-webkit-scrollbar-thumb {
  background: rgba(240, 5, 154, 0.25);
  border-radius: 4px;
}

.dashboard-content::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 5, 154, 0.4);
}

/* Onboarding & Login Containers */
.login-container,
.onboarding-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--color-bg);
  padding: 20px;
}

.login-container {
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(240, 5, 154, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(192, 2, 124, 0.05) 0%, transparent 50%);
}

.onboarding-container {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(240, 5, 154, 0.08) 0%, transparent 50%);
}

.login-form,
.onboarding-content {
  width: 100%;
  max-width: 420px;
}

.login-form {
  background: rgba(18, 18, 22, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 42px 32px;
}

/* Logo */
.logo-container {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1a1a2a, #08080d);
  border: 2px solid var(--color-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px var(--color-pink-glow);
  animation: glow 3s ease-in-out infinite;
}

.logo-text {
  color: var(--color-pink);
  font-weight: 900;
  font-size: 18px;
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

/* Progress Steps */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  position: relative;
  gap: 12px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  flex: 1;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-muted);
  transition: all 0.3s;
  flex-shrink: 0;
}

.step.active .step-circle {
  background: linear-gradient(135deg, var(--color-pink), #c0027c);
  border-color: var(--color-pink);
  color: white;
  box-shadow: 0 4px 20px var(--color-pink-glow);
}

.step.completed .step-circle {
  background: var(--color-success);
  border-color: var(--color-success);
  color: white;
}

.step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-muted);
  text-align: center;
  max-width: 70px;
  line-height: 1.2;
}

.step.active .step-label {
  color: var(--color-pink);
  font-weight: 700;
}

.step-line {
  height: 2px;
  flex: 1;
  background: var(--color-border);
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 1;
  transform: translateX(0);
}

/* Slideup Animation for Step Changes */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button Sizes */
.btn-sm {
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 10px;
}

/* Responsive Layout */
@media (max-width: 768px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    order: 2;
    flex-direction: row;
    justify-content: space-around;
    padding: 0;
    border-right: none;
    border-top: 1px solid var(--color-border);
    height: auto;
    width: 100%;
    background: rgba(12, 12, 14, 0.8);
  }

  .dashboard-main {
    order: 1;
    height: auto;
    flex: 1;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .login-form,
  .onboarding-content {
    max-width: 100%;
  }

  .login-form {
    padding: 32px 24px;
  }

  .progress-steps {
    flex-wrap: wrap;
  }

  .step-line {
    display: none;
  }
}

@media (max-width: 480px) {
  .dashboard-content {
    padding: 16px 12px !important;
  }

  .login-form {
    padding: 24px 16px;
  }

  .progress-steps {
    gap: 8px;
  }

  .step-circle {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .step-label {
    font-size: 10px;
  }
}
