/* ===== INDOTALENT - Modern Clean Design ===== */

:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-dark: #3730a3;
  --primary-subtle: #eef0ff;
  --primary-soft: #f5f3ff;
  --surface: #ffffff;
  --surface-alt: #f8f7fc;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 8px;
  --radius-lg: 12px;
}

/* ===== Base ===== */
html {
  font-size: 15px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background: var(--surface-alt);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Navbar ===== */
.navbar-indotalent {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}

.navbar-indotalent.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar-indotalent .navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: -0.02em;
  padding: 0.5rem 0;
}

.navbar-indotalent .navbar-brand:hover {
  color: var(--primary-dark);
}

.navbar-indotalent .nav-link {
  font-weight: 500;
  color: var(--text-secondary) !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  position: relative;
}

.navbar-indotalent .nav-link:hover,
.navbar-indotalent .nav-link.active {
  color: var(--primary) !important;
  background: rgba(79, 70, 229, 0.06);
}

.navbar-indotalent .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* ===== Background Primary (overrides Bootstrap) ===== */
.bg-primary {
  background-color: var(--primary) !important;
}

/* ===== Buttons ===== */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:disabled,
.btn-primary.disabled {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  opacity: 0.8 !important;
  transform: none !important;
  box-shadow: none !important;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius);
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-outline-primary:disabled,
.btn-outline-primary.disabled {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  opacity: 0.8 !important;
  background: transparent !important;
}

.btn-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.btn-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ===== Cards ===== */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow);
}

/* ===== Forms ===== */
.form-control {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

/* ===== Main Content Area ===== */
main {
  flex: 1 0 auto;
}

.page-content {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ===== Footer ===== */
.footer-indotalent {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.footer-indotalent a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.footer-indotalent a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ===== Auth Layout - Split Screen ===== */
.auth-split {
  display: flex;
  min-height: 100vh;
}

.auth-split-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 50%, #1e1b4b 100%);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.auth-split-left::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(129, 140, 248, 0.1) 0%, transparent 50%);
  animation: authGlow 8s ease-in-out infinite alternate;
}

@keyframes authGlow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-2%, 2%) rotate(3deg); }
}

.auth-split-left .auth-brand-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
  max-width: 420px;
}

.auth-split-left .auth-brand-content .brand-icon {
  margin-bottom: 1.5rem;
}

.auth-split-left .auth-brand-content h1 {
  font-weight: 700;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.auth-split-left .auth-brand-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
}

.auth-split-left .auth-testimonial {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 400px;
  margin-top: 1rem;
}

.auth-split-left .auth-testimonial p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.auth-split-left .auth-testimonial .testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-split-left .auth-testimonial .testimonial-author .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: #ffffff;
}

.auth-split-left .auth-testimonial .testimonial-author .name {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.875rem;
}

.auth-split-left .auth-testimonial .testimonial-author .role {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
}

.auth-split-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 3rem;
}

.auth-split-right .auth-form-container {
  width: 100%;
  max-width: 420px;
}

.auth-split-right .auth-form-header {
  margin-bottom: 2rem;
}

.auth-split-right .auth-form-header h2 {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.375rem;
}

.auth-split-right .auth-form-header p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.auth-split-right .auth-form-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-split-right .auth-form-footer a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.auth-split-right .auth-form-footer a:hover {
  text-decoration: underline;
}

/* ===== Responsive Auth ===== */
@media (max-width: 768px) {
  .auth-split {
    flex-direction: column;
  }
  
  .auth-split-left {
    padding: 2.5rem 2rem;
    min-height: auto;
  }
  
  .auth-split-left .auth-brand-content h1 {
    font-size: 1.75rem;
  }
  
  .auth-split-left .auth-testimonial {
    display: none;
  }
  
  .auth-split-right {
    padding: 2rem;
  }
}

/* ===== Validation ===== */
.text-danger {
  color: #ef4444 !important;
}

.field-validation-error {
  color: #ef4444;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  display: block;
}

.validation-summary-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  color: #b91c1c;
  font-size: 0.875rem;
}

.validation-summary-errors ul {
  margin: 0;
  padding-left: 1.25rem;
}

/* ===== Status Message ===== */
.alert {
  border-radius: var(--radius);
  border: none;
  font-size: 0.875rem;
}

.alert-info {
  background: #eef2ff;
  color: #4338ca;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
}

.alert-danger {
  background: #fef2f2;
  color: #b91c1c;
}

/* ===== Hero Section ===== */
.hero-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f3ff 0%, #eef0ff 40%, #ffffff 100%);
  padding: 5rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section .hero-bg {
  display: none;
}

.hero-section .hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  color: var(--text-primary) !important;
}

.text-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(8px); opacity: 0.8; }
}

/* ===== Badge Violet Variant ===== */
.badge-violet {
  background: var(--primary-subtle) !important;
  color: var(--primary) !important;
  font-weight: 500;
}

.badge-violet-outline {
  background: transparent !important;
  color: var(--primary) !important;
  border: 1px solid rgba(79, 70, 229, 0.2);
  font-weight: 500;
}

/* ===== Feature Icons ===== */
.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  border-radius: 12px;
}

/* ===== Code Block Light Theme ===== */
.code-block-light {
  background: #f8f7fc !important;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.code-block-light code {
  color: #1e293b !important;
}

.code-block-light .code-folder {
  color: var(--primary) !important;
}

.code-block-light .code-file {
  color: #059669 !important;
}

.code-block-light .code-dir {
  color: #94a3b8 !important;
}

/* ===== Gradient Card Violet Soft ===== */
.card-gradient-soft {
  background: linear-gradient(135deg, #f5f3ff 0%, #eef0ff 100%) !important;
  border: 1px solid rgba(79, 70, 229, 0.1) !important;
}

/* ===== Stats Separator ===== */
.stats-separator {
  border-top: 1px solid var(--border);
}

/* ===== Manage Sidebar Nav ===== */
.manage-sidebar .nav-pills .nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.manage-sidebar .nav-pills .nav-link:hover {
  background: rgba(79, 70, 229, 0.06);
  color: var(--primary);
}

.manage-sidebar .nav-pills .nav-link.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.manage-sidebar .nav-pills .nav-link.active:hover {
  background: var(--primary-dark);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .auth-card {
    padding: 1.5rem;
  }
  
  .page-content {
    padding-top: 1.5rem;
  }
  
  .hero-section {
    min-height: 55vh;
    padding: 4rem 1.5rem 2.5rem;
  }
  
  .hero-section h1 {
    font-size: 2.25rem !important;
  }
}