:root {
  --primary: #5B3FE8;
  --primary-dark: #4A32C7;
  --primary-light: #7B5FF5;
  --secondary: #8B7FE8;
  --accent: #FFD700;
  --success: #4CAF50;
  --info: #2196F3;
  --warning: #FF9800;
  --bg-light: #F8F9FE;
  --bg-white: #FFFFFF;
  --text-dark: #1A1A2E;
  --text-gray: #6B7280;
  --border-light: #E5E7EB;
  --shadow-sm: 0 2px 8px rgba(91, 63, 232, 0.08);
  --shadow-md: 0 4px 16px rgba(91, 63, 232, 0.12);
  --shadow-lg: 0 8px 32px rgba(91, 63, 232, 0.16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #F8F9FE 0%, #E8EAFF 100%);
  min-height: 100vh;
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.status-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.logo-section {
  text-align: center;
  padding: 60px 0 40px;
}

.logo-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.app-title .highlight {
  color: var(--primary);
}

.subtitle {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 40px;
}

.role-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.role-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: white;
  border: 2px solid transparent;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.role-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.role-btn.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.role-btn.primary:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.role-btn-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.role-icon {
  width: 24px;
  height: 24px;
}

.arrow-icon {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

.footer-text {
  text-align: center;
  color: var(--primary);
  font-size: 14px;
  margin-top: auto;
  padding: 20px 0;
  animation: fadeIn 0.6s ease-out 0.4s both;
}

.login-form {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.back-header {
  margin-bottom: 24px;
  animation: fadeIn 0.4s ease-out;
}

.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 36px;
}

.logo-icon.small {
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.4;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 40px;
  text-align: center;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-gray);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text-dark);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 63, 232, 0.1);
}

.form-input::placeholder {
  color: #9CA3AF;
}

.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-gray);
  transition: color 0.3s ease;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

.password-toggle:hover {
  color: var(--primary);
}

.forgot-password {
  text-align: right;
  margin-top: 8px;
}

.forgot-password a {
  color: var(--primary);
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.forgot-password a:hover {
  color: var(--primary-dark);
}

.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  margin-top: 32px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.submit-btn:active {
  transform: translateY(0);
}

.btn-primary {
  display: block;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 16px rgba(91, 63, 232, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

.register-link {
  text-align: center;
  margin-top: 24px;
  color: var(--primary);
  font-size: 14px;
}

.register-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

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

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

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Dashboard Styles */
.dashboard-container {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  padding-bottom: 100px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease-out;
}

.greeting-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.greeting-section p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.progress-card {
  background: linear-gradient(135deg, #F0EDFF 0%, #E8E5FF 100%);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.progress-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(91, 63, 232, 0.1) 0%, transparent 70%);
}

.progress-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.progress-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.progress-info p {
  font-size: 14px;
  color: var(--text-gray);
}

.progress-circle {
  position: relative;
  width: 80px;
  height: 80px;
}

.progress-circle svg {
  transform: rotate(-90deg);
}

.progress-circle circle {
  fill: none;
  stroke-width: 8;
}

.progress-bg {
  stroke: rgba(91, 63, 232, 0.1);
}

.progress-bar {
  stroke: var(--primary);
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.menu-section {
  margin-bottom: 32px;
}

.menu-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  animation: fadeIn 0.6s ease-out 0.3s both;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.menu-item {
  background: white;
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.menu-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.menu-icon {
  width: 56px;
  height: 56px;
  background: rgba(91, 63, 232, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.menu-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 420px;
  width: 100%;
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 16px 20px 20px;
  box-shadow: 0 -4px 24px rgba(91, 63, 232, 0.12);
  z-index: 100;
}

.nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-gray);
  padding: 8px 12px;
  border-radius: 12px;
}

.nav-item:hover {
  background: rgba(91, 63, 232, 0.05);
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active .nav-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 8px;
  width: 32px;
  height: 32px;
}

.nav-item.active .nav-icon svg {
  stroke: white;
  fill: white;
}

.nav-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item span {
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 480px) {
  .container {
    padding: 16px;
  }
  
  .logo-section {
    padding: 40px 0 30px;
  }
  
  .logo-icon {
    width: 100px;
    height: 100px;
  }
  
  .app-title {
    font-size: 28px;
  }
  
  .dashboard-container {
    padding: 16px;
  }
  
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .menu-item {
    padding: 20px 12px;
  }

  .donut-charts {
    gap: 10px;
  }

  .donut-wrapper {
    width: 56px;
    height: 56px;
  }

  .donut-number {
    font-size: 14px;
  }

  .donut-label {
    font-size: 9px;
  }
}

.spacer-desktop {
  display: none;
}

/* Assessment Page Styles */
.assessment-container {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 20px 120px 20px;
  min-height: 100vh;
  animation: fadeIn 0.5s ease-out;
}

.assessment-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 12px;
  background: rgba(91, 63, 232, 0.1);
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.back-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateX(-2px);
}

.back-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.back-text {
  font-size: 13px;
  font-weight: 600;
}

.assessment-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.assessment-instruction {
  margin-bottom: 24px;
}

.assessment-instruction h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.assessment-instruction p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.question-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.question-header {
  margin-bottom: 16px;
}

.question-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.question-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 20px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid #E8E5FF;
  cursor: pointer;
  transition: all 0.25s ease;
  background: white;
}

.option-item:hover {
  border-color: var(--primary-light);
  background: #FAF9FF;
}

.option-input {
  display: none;
}

.option-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #C8C2F0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.option-indicator::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  transform: scale(0);
  transition: transform 0.25s ease;
}

.option-input:checked ~ .option-indicator {
  border-color: var(--primary);
}

.option-input:checked ~ .option-indicator::after {
  transform: scale(1);
}

.option-item:has(.option-input:checked),
.option-item.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, #F0EDFF 0%, #E8E5FF 100%);
}

.clear-selection {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: #9CA3AF;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 10px;
  align-self: center;
}

.clear-selection:hover {
  color: #EF4444;
  background: #FEF2F2;
}

.clear-selection svg {
  transition: transform 0.2s ease;
}

.clear-selection:hover svg {
  transform: rotate(90deg);
}

.option-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.assessment-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.page-btn {
  border-radius: 12px;
  border: none;
  background: rgba(91, 63, 232, 0.1);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.page-btn:hover:not(:disabled) {
  background: var(--primary);
  color: white;
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.page-btn-text {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.page-info {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  min-width: 70px;
  text-align: center;
}

.btn-next {
  width: 100%;
  padding: 16px;
  font-size: 16px;
}

/* Results Page Styles */
.results-container {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 20px 120px 20px;
  min-height: 100vh;
  animation: fadeIn 0.5s ease-out;
}

.results-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.results-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
}

.gauge-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.gauge-container {
  width: 260px;
  height: 150px;
}

.gauge-svg {
  width: 100%;
  height: 100%;
}

.result-content {
  text-align: center;
}

.result-level {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.result-sublevel {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.result-description {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.recommendation-box {
  background: linear-gradient(135deg, #F0EDFF 0%, #E8E5FF 100%);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  margin-bottom: 24px;
}

.recommendation-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.recommendation-box p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.btn-full {
  width: 100%;
  margin-bottom: 12px;
}

.btn-secondary {
  display: block;
  padding: 16px;
  border-radius: 14px;
  border: 2px solid var(--primary);
  background: white;
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* ABC Counseling Page */
.counseling-container {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 20px 120px 20px;
  min-height: 100vh;
  animation: fadeIn 0.5s ease-out;
}

.counseling-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.counseling-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.abc-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.abc-tab {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  border: 2px solid #E8E5FF;
  background: white;
  color: var(--text-light);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.abc-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(91, 63, 232, 0.3);
}

.abc-tab:hover:not(.active) {
  border-color: var(--primary-light);
  color: var(--primary);
}

.abc-content.hidden,
.abc-summary.hidden,
.rangkuman-content.hidden {
  display: none;
}

.abc-section {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.abc-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.abc-subheading {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.abc-question {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 16px;
}

.textarea-wrapper {
  position: relative;
}

.abc-textarea {
  width: 100%;
  min-height: 140px;
  padding: 16px;
  border: 2px solid #E8E5FF;
  border-radius: 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  line-height: 1.6;
  resize: vertical;
  transition: all 0.3s ease;
  background: #FAFAFF;
}

.abc-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 63, 232, 0.08);
  background: white;
}

.abc-textarea::placeholder {
  color: #A0A0C0;
}

.char-counter {
  display: block;
  text-align: right;
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 8px;
  font-weight: 500;
}

.btn-abc-next,
.btn-abc-finish {
  width: 100%;
  padding: 16px;
  font-size: 16px;
}

/* Summary */
.abc-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.summary-card {
  background: white;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  width: 100%;
  animation: fadeInUp 0.5s ease;
}

.summary-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.summary-icon svg {
  width: 30px;
  height: 30px;
  stroke: white;
}

.summary-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.summary-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 24px;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes toastShake {
  0%, 100% { transform: translateX(-50%); }
  20% { transform: translateX(calc(-50% - 6px)); }
  60% { transform: translateX(calc(-50% + 6px)); }
}

@keyframes fadeOutUp {
  from { opacity: 1; transform: translate(-50%, 0); }
  to { opacity: 0; transform: translate(-50%, -20px); }
}

/* Direct Konseling Card */
.direct-konseling-card {
  background: linear-gradient(135deg, #5B3FE8 0%, #7C6FDE 100%);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(91, 63, 232, 0.25);
  animation: fadeInUp 0.5s ease-out;
}

.direct-konseling-content {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.direct-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.direct-konseling-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.direct-konseling-content p {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}

.btn-direct {
  background: white;
  color: #5B3FE8;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-direct:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

@media (max-width: 480px) {
  .direct-konseling-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }
  .btn-direct {
    width: 100%;
    text-align: center;
  }
}

/* Disputing Page Styles */
.disputing-container {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 20px 120px 20px;
  min-height: 100vh;
  animation: fadeIn 0.5s ease-out;
}

.disputing-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.disputing-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.disputing-intro {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid #F0EDFF;
}

.disputing-heading {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.disputing-desc {
  font-size: 14px;
  color: #8B8BA7;
  line-height: 1.7;
}

.belief-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.belief-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
  background: white;
  border-radius: 18px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 2px 12px rgba(91, 63, 232, 0.06);
}

.belief-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 8px 24px rgba(91, 63, 232, 0.12);
  transform: translateY(-2px);
}

.belief-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FF 100%);
  box-shadow: 0 8px 24px rgba(91, 63, 232, 0.14);
}

.belief-input {
  display: none;
}

.belief-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.belief-card:hover .belief-badge {
  transform: scale(1.08);
}

.belief-badge-1 {
  background: #E8F5E9;
  color: #43A047;
}

.belief-badge-2 {
  background: #F1F8E9;
  color: #7CB342;
}

.belief-badge-3 {
  background: #FFF3E0;
  color: #FB8C00;
}

.belief-badge-4 {
  background: #FCE4EC;
  color: #EC407A;
}

.belief-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.belief-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.belief-example {
  font-size: 13px;
  color: #8B8BA7;
  font-weight: 500;
}

.belief-check {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5) rotate(-10deg);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(91, 63, 232, 0.3);
}

.belief-check svg {
  width: 16px;
  height: 16px;
}

.belief-card.selected .belief-check {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Riwayat Page Styles */
.riwayat-container {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 20px 120px 20px;
  min-height: 100vh;
  animation: fadeIn 0.5s ease-out;
}

.riwayat-header {
  margin-bottom: 24px;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FF 100%);
  border-radius: 18px;
  margin-bottom: 28px;
  border: 2px solid #E8E5FF;
}

.profile-avatar-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(91, 63, 232, 0.25);
  border: 2px solid white;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(91, 63, 232, 0.25);
}

.profile-info {
  min-width: 0;
}

.profile-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.profile-email {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
  word-break: break-all;
}

.riwayat-intro {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid #F0EDFF;
}

.riwayat-heading {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.riwayat-desc {
  font-size: 14px;
  color: #8B8BA7;
  line-height: 1.7;
}

/* Donut Charts Section */
.chart-section {
  background: white;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(91, 63, 232, 0.06);
}

.chart-header {
  margin-bottom: 20px;
}

.chart-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.donut-charts {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.donut-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.donut-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
}

.donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-bg {
  fill: none;
  stroke: #F0EDFF;
  stroke-width: 10;
}

.donut-fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.donut-purple {
  stroke: #5B3FE8;
}

.donut-green {
  stroke: #4CAF50;
}

.donut-orange {
  stroke: #FF9800;
}

.donut-red {
  stroke: #EF4444;
}

.donut-yellow {
  stroke: #FACC15;
}

.donut-amber {
  stroke: #F59E0B;
}

.donut-emerald {
  stroke: #10B981;
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-number {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.donut-label {
  font-size: 11px;
  font-weight: 700;
  color: #8B8BA7;
  text-align: center;
  letter-spacing: 0.02em;
}

/* Stacked Bar Chart */
.bar-chart {
  margin-top: 16px;
}

.bar-track {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #F0EDFF;
  margin-bottom: 12px;
}

.bar-segment {
  height: 100%;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.bar-purple {
  background: linear-gradient(90deg, #5B3FE8, #7B5FE8);
}

.bar-green {
  background: linear-gradient(90deg, #4CAF50, #66BB6A);
}

.bar-orange {
  background: linear-gradient(90deg, #FF9800, #FFB74D);
}

.bar-red {
  background: linear-gradient(90deg, #EF4444, #F87171);
}

.bar-yellow {
  background: linear-gradient(90deg, #FACC15, #FDE047);
}

.bar-amber {
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

.bar-emerald {
  background: linear-gradient(90deg, #10B981, #34D399);
}

.bar-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #8B8BA7;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-purple {
  background: #5B3FE8;
}

.dot-green {
  background: #4CAF50;
}

.dot-orange {
  background: #FF9800;
}

.dot-red {
  background: #EF4444;
}

.dot-yellow {
  background: #FACC15;
}

.dot-amber {
  background: #F59E0B;
}

.dot-emerald {
  background: #10B981;
}

.riwayat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.riwayat-empty {
  text-align: center;
  padding: 48px 24px;
  color: #9CA3AF;
}

.riwayat-empty svg {
  margin-bottom: 16px;
}

.riwayat-empty p {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.riwayat-empty .sub {
  font-size: 13px;
  font-weight: 400;
  color: #C4C4E0;
}

.riwayat-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(91, 63, 232, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeInUp 0.4s ease both;
}

.riwayat-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(91, 63, 232, 0.1);
}

.riwayat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.riwayat-icon svg {
  width: 22px;
  height: 22px;
}

.riwayat-content {
  flex: 1;
  min-width: 0;
}

.riwayat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.riwayat-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.riwayat-date {
  font-size: 11px;
  color: #C4C4E0;
  font-weight: 500;
}

.riwayat-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
  line-height: 1.4;
}

.riwayat-subtitle {
  font-size: 13px;
  color: #8B8BA7;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.riwayat-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 28px;
}

@media (max-width: 480px) {
  .riwayat-actions {
    margin-bottom: 100px;
  }
}

/* Notification Page - Premium Design */
.notif-container {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 20px 120px 20px;
  min-height: 100vh;
  animation: fadeIn 0.5s ease-out;
  background: linear-gradient(180deg, #F8F7FF 0%, #FAFAFF 200px, #FAFAFF 100%);
}

.notif-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #7C5CFC 50%, #8B5CF6 100%);
  padding: 28px 24px 32px;
  border-radius: 0 0 32px 32px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.notif-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.notif-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.notif-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.notif-hero .back-btn {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.2);
  color: white;
}

.notif-hero .back-btn:hover {
  background: rgba(255,255,255,0.25);
}

.notif-hero-title {
  font-size: 32px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.notif-hero-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.notif-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  position: relative;
  z-index: 1;
}

.notif-hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FACC15;
  animation: pulse 2s ease infinite;
}

.notif-markall {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.notif-markall:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

.notif-content {
  padding: 0 20px;
}

.notif-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.notif-tab {
  flex-shrink: 0;
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  background: #F0EDFF;
  color: #7C6FDE;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.notif-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(91, 63, 232, 0.25);
}

.notif-tab:hover:not(.active) {
  background: #E5DFFF;
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(91, 63, 232, 0.04), 0 0 0 1px rgba(91, 63, 232, 0.03);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.notif-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 63, 232, 0.1), 0 0 0 1px rgba(91, 63, 232, 0.06);
}

.notif-item.unread {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFF 100%);
  border-left: 3px solid var(--primary);
}

.notif-item.highlight {
  background: linear-gradient(135deg, #F8F7FF 0%, #F0EDFF 100%);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(91, 63, 232, 0.12);
}

.notif-item.read {
  opacity: 0.75;
}

.notif-item.read .notif-icon {
  opacity: 0.4;
  filter: grayscale(0.6);
}

.notif-item.read .notif-item-title {
  color: #8B8BA7;
}

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

.notif-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.notif-icon svg {
  width: 24px;
  height: 24px;
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.notif-type {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 6px;
  background: #F3F4F6;
  color: #6B7280;
}

.notif-item.unread .notif-type {
  background: #EDE9FF;
  color: var(--primary);
}

.notif-time {
  font-size: 11px;
  font-weight: 600;
  color: #B4B4D0;
}

.notif-item-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.notif-item-body {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.6;
  font-weight: 500;
}

.notif-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5B3FE8, #8B5CF6);
  flex-shrink: 0;
  margin-top: 6px;
  animation: pulse 2s ease infinite;
  box-shadow: 0 0 8px rgba(91, 63, 232, 0.4);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.notif-empty-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #F0EDFF, #E5DFFF);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(91, 63, 232, 0.08);
}

.notif-empty-icon svg {
  width: 36px;
  height: 36px;
}

.notif-empty h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.notif-empty p {
  font-size: 14px;
  color: #B4B4D0;
  font-weight: 500;
}

@media (max-width: 480px) {
  .notif-hero {
    padding: 24px 20px 28px;
    border-radius: 0 0 28px 28px;
  }

  .notif-hero-title {
    font-size: 26px;
  }

  .notif-content {
    padding: 0 16px;
  }

  .notif-tab {
    padding: 8px 14px;
    font-size: 12px;
  }

  .notif-item {
    padding: 16px;
    gap: 12px;
  }

  .notif-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .notif-icon svg {
    width: 20px;
    height: 20px;
  }
}

.btn-export {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: white;
  border: 2px solid var(--primary);
  border-radius: 14px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-export:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-export svg {
  transition: transform 0.3s ease;
}

.btn-export:hover svg {
  transform: translateY(-2px);
}

/* Reset Button */
.btn-report {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: white;
  border: 2px solid #8B5CF6;
  border-radius: 14px;
  color: #8B5CF6;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-report:hover {
  background: #8B5CF6;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
}

.btn-report svg {
  transition: transform 0.3s ease;
}

.btn-report:hover svg {
  transform: scale(1.1);
}

.btn-reset {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: white;
  border: 2px solid #EF4444;
  border-radius: 14px;
  color: #EF4444;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-reset:hover {
  background: #EF4444;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
}

.btn-reset svg {
  transition: transform 0.3s ease;
}

.btn-reset:hover svg {
  transform: scale(1.1);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.25s ease;
}

.modal-card {
  background: white;
  border-radius: 24px;
  padding: 32px 28px;
  max-width: 340px;
  width: 90%;
  text-align: center;
  animation: fadeInUp 0.35s ease;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FEF2F2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #1F2937;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.modal-desc {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-buttons {
  display: flex;
  gap: 12px;
}

.btn-modal-cancel,
.btn-modal-confirm {
  flex: 1;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-modal-cancel {
  background: #F3F4F6;
  color: #4B5563;
}

.btn-modal-cancel:hover {
  background: #E5E7EB;
  transform: translateY(-1px);
}

.btn-modal-confirm {
  background: #EF4444;
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-modal-confirm:hover {
  background: #DC2626;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

/* Report Page Styles */
.report-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 20px 120px 20px;
  min-height: 100vh;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.btn-print {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-md);
}

.btn-print:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.report-page {
  background: white;
  border-radius: 20px;
  padding: 40px 36px;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(91, 63, 232, 0.06);
  page-break-inside: avoid;
}

/* Cover Page */
.report-cover {
  text-align: center;
  padding: 60px 36px;
}

.cover-logo {
  margin-bottom: 24px;
}

.cover-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.cover-subtitle {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 40px;
  font-weight: 500;
}

.cover-info {
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FF 100%);
  padding: 24px 32px;
  border-radius: 16px;
  border: 2px solid #E8E5FF;
}

.cover-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cover-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  min-width: 120px;
}

.cover-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

/* Page Header */
.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.page-line {
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 2px;
}

.page-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.4;
  word-wrap: break-word;
}

/* Summary Cards */
.summary-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.summary-report-card {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #FAFAFF 0%, #F5F3FF 100%);
  border-radius: 16px;
  border: 2px solid #E8E5FF;
  transition: transform 0.2s ease;
}

.summary-report-card:hover {
  transform: translateY(-2px);
}

.src-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.src-count {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.src-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
}

/* Meta Grid */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  background: linear-gradient(135deg, #F8F9FE 0%, #F0EDFF 100%);
  border-radius: 16px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.meta-badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  align-self: flex-start;
}

/* Question Items */
.questions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.question-item {
  padding: 20px;
  background: #FAFAFF;
  border-radius: 16px;
  border-left: 4px solid var(--primary);
}

.question-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.question-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.question-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.6;
  flex: 1;
}

.answer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 44px;
}

.answer-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
}

.answer-value {
  font-size: 14px;
  font-weight: 700;
  color: #4CAF50;
  background: #E8F5E9;
  padding: 6px 14px;
  border-radius: 20px;
}

.answer-missing {
  color: #EF4444;
  background: #FEF2F2;
}

/* ABC Report */
.abc-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.abc-report-card {
  background: #FAFAFF;
  border-radius: 16px;
  overflow: hidden;
}

.abc-report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FF 100%);
  border-bottom: 2px solid #E8E5FF;
}

.abc-report-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

.abc-report-date {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}

.abc-report-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.abc-report-section {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.abc-report-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.abc-report-content h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.abc-report-content p {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.7;
  font-weight: 500;
}

/* Disputing Report */
.disputing-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.disputing-report-card {
  background: #FAFAFF;
  border-radius: 16px;
  overflow: hidden;
}

.disputing-report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FF 100%);
  border-bottom: 2px solid #E8E5FF;
}

.disputing-report-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

.disputing-report-date {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}

.disputing-report-body {
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.belief-type-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

.belief-type-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.belief-type-info p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Empty Message */
.empty-msg {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
  font-size: 14px;
  font-style: italic;
}

/* Report Footer */
.report-footer {
  text-align: center;
  padding: 24px;
  color: var(--text-light);
  font-size: 12px;
  border-top: 2px solid #F0EDFF;
  margin-top: 20px;
}

.report-footer p {
  margin-bottom: 4px;
}

.footer-date {
  font-weight: 600;
}

/* Disputing Proses Page Styles */
.disputing-proses-container {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 20px 120px 20px;
  min-height: 100vh;
  animation: fadeIn 0.5s ease-out;
}

.disputing-proses-header {
  margin-bottom: 20px;
}

.disputing-proses-intro {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #F0EDFF;
}

.section-number {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  background: #EDE9FF;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.disputing-proses-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.disputing-proses-subtitle {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

.disputing-proses-card {
  background: white;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(91, 63, 232, 0.06);
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: #EF4444;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card-question {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.6;
}

.form-section {
  margin-bottom: 20px;
}

.form-section-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.disputing-textarea {
  width: 100%;
  min-height: 100px;
  padding: 14px 16px;
  border: 2px solid #E8E5FF;
  border-radius: 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: #FAFAFF;
  resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  line-height: 1.6;
}

.disputing-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 63, 232, 0.08);
  background: white;
}

.disputing-textarea::placeholder {
  color: #B4B4D0;
  font-weight: 500;
}

/* Effective New Belief Page Styles */
.enb-container {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 20px 120px 20px;
  min-height: 100vh;
  animation: fadeIn 0.5s ease-out;
}

.enb-header {
  margin-bottom: 20px;
}

.enb-intro {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #F0EDFF;
}

.enb-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.enb-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.enb-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.enb-lightbulb {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #FEF9C3 0%, #FDE68A 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.25);
}

.enb-lightbulb img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.enb-card {
  background: white;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(91, 63, 232, 0.06);
}

.enb-back-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.enb-back-link:hover {
  opacity: 0.7;
}

/* Monitoring & Evaluasi Styles */
.monitoring-intro {
  text-align: center;
  margin-bottom: 24px;
}

.monitoring-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.monitoring-desc {
  font-size: 14px;
  color: #6B6B8D;
  line-height: 1.5;
}

.monitoring-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(91, 63, 232, 0.06);
  margin-bottom: 20px;
}

.monitoring-section {
  margin-bottom: 24px;
}

.monitoring-section:last-child {
  margin-bottom: 0;
}

.section-label {
  font-size: 16px;
  font-weight: 700;
  color: #1E1B4B;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #F0EDFF;
}

.likert-item {
  margin-bottom: 20px;
  padding: 16px;
  background: #FAFAFF;
  border-radius: 14px;
  border: 1px solid #EDE9FF;
}

.likert-item:last-child {
  margin-bottom: 0;
}

.likert-statement {
  font-size: 14px;
  color: #1E1B4B;
  line-height: 1.6;
  margin-bottom: 14px;
  font-weight: 500;
}

.likert-options {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.likert-option {
  cursor: pointer;
  position: relative;
}

.likert-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.likert-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 2px solid #D4D0F7;
  font-size: 15px;
  font-weight: 700;
  color: #6B6B8D;
  transition: all 0.25s ease;
}

.likert-option:hover span {
  border-color: #7C6FDE;
  color: #5B3FE8;
}

.likert-option input:checked + span {
  background: linear-gradient(135deg, #5B3FE8, #7C6FDE);
  border-color: #5B3FE8;
  color: white;
  box-shadow: 0 4px 12px rgba(91, 63, 232, 0.25);
}

.likert-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #9CA3AF;
  font-weight: 500;
  padding: 0 4px;
}

.monitoring-textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px;
  border: 2px solid #EDE9FF;
  border-radius: 14px;
  font-size: 14px;
  color: #1E1B4B;
  background: #FAFAFF;
  resize: vertical;
  transition: all 0.2s ease;
  font-family: inherit;
}

.monitoring-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(91, 63, 232, 0.12);
  background: white;
}

.monitoring-textarea::placeholder {
  color: #B4B4D0;
}

.monitoring-summary {
  animation: fadeIn 0.5s ease-out;
}

.monitoring-summary .summary-card {
  background: white;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(91, 63, 232, 0.06);
}

.monitoring-summary .summary-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #EDE9FF, #F5F3FF);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #5B3FE8;
}

.monitoring-summary h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1E1B4B;
  margin-bottom: 8px;
}

.monitoring-summary p {
  font-size: 14px;
  color: #6B6B8D;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Rangkuman Hasil Konseling Styles */
.rangkuman-empty {
  text-align: center;
  padding: 20px 8px;
}

.rangkuman-empty-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #EDE9FF 0%, #F0EDFF 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(91, 63, 232, 0.12);
}

.rangkuman-empty h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1E1B4B;
  margin-bottom: 8px;
}

.rangkuman-empty p {
  font-size: 14px;
  color: #6B6B8D;
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto 8px;
}

.rangkuman-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 16px;
  background: #FAFAFF;
  border-radius: 14px;
}

.rangkuman-meta-row svg {
  width: 20px;
  height: 20px;
  color: #5B3FE8;
  flex-shrink: 0;
}

.rangkuman-meta-label {
  font-size: 12px;
  color: #9CA3AF;
  font-weight: 500;
  display: block;
}

.rangkuman-meta-value {
  font-size: 14px;
  color: #1E1B4B;
  font-weight: 600;
  display: block;
}

.rangkuman-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #E8E5FF, transparent);
  margin: 20px 0;
}

.rangkuman-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1E1B4B;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rangkuman-body h4::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, #5B3FE8, #7C6FDE);
  border-radius: 4px;
}

.rangkuman-text {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.8;
  background: #FAFAFF;
  padding: 16px;
  border-radius: 14px;
  border-left: 3px solid #5B3FE8;
}

.rangkuman-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #EDE9FF 0%, #F5F3FF 100%);
  color: #5B3FE8;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.monitoring-result-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.monitoring-result-label {
  font-size: 13px;
  color: #9CA3AF;
  font-weight: 500;
}

.monitoring-result-value {
  font-size: 14px;
  color: #1E1B4B;
  font-weight: 700;
}

.likert-result-bars {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.likert-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.likert-bar-label {
  font-size: 12px;
  color: #6B6B8D;
  width: 120px;
  flex-shrink: 0;
  line-height: 1.3;
}

.likert-bar-track {
  flex: 1;
  height: 10px;
  background: #F0EDFF;
  border-radius: 5px;
  overflow: hidden;
}

.likert-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #5B3FE8, #7C6FDE);
  border-radius: 5px;
  transition: width 0.5s ease;
}

.likert-bar-score {
  font-size: 12px;
  font-weight: 700;
  color: #5B3FE8;
  width: 20px;
  text-align: right;
}

@media (max-width: 480px) {
  .likert-bar-label {
    width: 90px;
  }
  .assessment-container,
  .results-container,
  .counseling-container,
  .disputing-container,
  .riwayat-container,
  .disputing-proses-container,
  .enb-container,
  .dashboard-container {
    padding: 16px 16px 100px 16px;
  }

  .gauge-container {
    width: 220px;
    height: 130px;
  }

  .meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .report-page {
    padding: 24px 20px;
  }

  .cover-info {
    width: 100%;
  }

  .summary-cards {
    flex-direction: column;
  }

  .disputing-report-body {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Toast Notification */
.toast-notif {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #1E1B4B;
  color: white;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(30, 27, 75, 0.3);
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  min-width: 280px;
  justify-content: center;
}

.toast-notif.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-notif.warning {
  background: #F59E0B;
  color: #1E1B4B;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.3);
}

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}
