/* ==========================================================================
   HUMAIA – Si Paling Humas
   Design System & Master Stylesheet
   Palette: Oranye (#FF5722), Merah (#D32F2F), Coklat Tua/Marun (#260C10), Putih (#FFFFFF)
   ========================================================================== */

:root {
  --primary: #FF5722;
  --primary-hover: #E64A19;
  --primary-light: #FFEDE8;
  --primary-gradient: linear-gradient(135deg, #FF6F43 0%, #FF5722 50%, #E64A19 100%);
  
  --secondary: #D32F2F;
  --secondary-hover: #B71C1C;
  
  --sidebar-bg: #230B0E;
  --sidebar-gradient: linear-gradient(180deg, #2B0D11 0%, #1D080A 100%);
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --sidebar-text: #E0D4D6;
  --sidebar-active-bg: rgba(255, 87, 34, 0.18);
  
  --bg-body: #F1EBE5;
  --bg-card: #FFFFFF;
  --bg-hover: #FFF5F0;
  
  --text-main: #1E1B1B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --border-color: #E2D7CE;
  --border-focus: #FF5722;
  
  --shadow-sm: 0 1px 3px rgba(35, 12, 16, 0.05), 0 1px 2px rgba(35, 12, 16, 0.03);
  --shadow-md: 0 4px 18px rgba(35, 12, 16, 0.06);
  --shadow-lg: 0 12px 32px rgba(35, 12, 16, 0.09);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

/* App Container Layout */
.app-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  overflow-x: hidden;
  position: relative;
}

/* Sidebar Styling */
/* Sidebar Styling */
.sidebar {
  width: 230px;
  min-width: 230px;
  flex-shrink: 0;
  background: #25070B;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.sidebar-header {
  padding: 0 16px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary-gradient);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.35);
}

.sidebar-brand-name {
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  line-height: 1.1;
}

.sidebar-brand-tagline {
  font-size: 10.5px;
  color: #FF8A65;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.sidebar-nav {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.nav-section-label {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.38);
  padding: 10px 10px 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 13px;
  transition: var(--transition);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
  transform: translateX(2px);
}

.nav-link.active {
  background: linear-gradient(135deg, #FF6F43 0%, #FF5722 100%);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.4);
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #C5B8BA;
  flex-shrink: 0;
}

.nav-link.active .nav-icon {
  color: #FFFFFF;
}

.sidebar-bottom-container {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #200609;
}

.sidebar-quote-text {
  font-size: 12px;
  font-style: italic;
  color: #FFCCBC;
  line-height: 1.4;
  font-weight: 500;
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--sidebar-border);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-left: 230px;
  width: calc(100% - 230px);
}

/* Topbar Header */
.topbar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}

.search-box-wrapper {
  flex: 1;
  max-width: 580px;
  min-width: 130px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  background: #F8F6F4;
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--text-main);
  transition: var(--transition);
  outline: none;
}

.search-input:focus {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.12);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 16px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.topbar-btn {
  background: #F8F6F4;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  color: #4B5563;
}

.topbar-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
  border: 2px solid white;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8F6F4;
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
}

.user-profile-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.sidebar-user-badge-card:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 87, 34, 0.5) !important;
  transform: translateY(-1px);
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

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

/* Page Content Body */
.page-container {
  padding: 32px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* Hero Banner Dashboard (Identical to Reference Screenshot) */
.dashboard-hero {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF9F6 50%, #FFF4EE 100%);
  border: 1.5px solid #F0E8E3;
  border-radius: 22px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(35, 12, 16, 0.04);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #1E1B1B;
  margin-bottom: 6px;
  line-height: 1.15;
}

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

.hero-subtitle {
  font-size: 15px;
  color: #4B5563;
  line-height: 1.55;
  margin-bottom: 20px;
}

.hero-prompt-bar {
  background: #FFFFFF;
  border: 1.5px solid #EAE3DE;
  border-radius: var(--radius-full);
  padding: 5px 6px 5px 18px;
  display: flex;
  align-items: center;
  box-shadow: 0 3px 12px rgba(35, 12, 16, 0.05);
  transition: var(--transition);
}

.hero-prompt-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.14);
}

.hero-prompt-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13.5px;
  color: var(--text-main);
  background: transparent;
}

.hero-prompt-submit {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-gradient);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.hero-prompt-submit:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

.hero-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.quick-pill-btn {
  background: #FFFFFF;
  border: 1px solid #EAE3DE;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #4B5563;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

.hero-mascot-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin-right: -36px;
  margin-bottom: -32px;
  margin-top: -32px;
}

.hero-mascot-visual img {
  height: 235px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Section Titles */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #1E1B1B;
}

.section-title span.accent {
  color: var(--primary);
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Fitur Utama Cards Grid - Ultra-Premium 4x2 Layout */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

@media (max-width: 1080px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 620px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.feature-card {
  background: #FFFFFF;
  border: 1px solid #ECE4DF;
  border-radius: 20px;
  padding: 22px 20px 18px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(35, 12, 16, 0.035);
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #FF6F43, #FF5722);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #FFD0C2;
  box-shadow: 0 16px 32px rgba(255, 87, 34, 0.12), 0 4px 10px rgba(35, 12, 16, 0.04);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card-watermark {
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -2px;
  color: rgba(255, 87, 34, 0.06);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  font-family: inherit;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-card-watermark {
  color: rgba(255, 87, 34, 0.14);
  transform: scale(1.08) translateY(-2px);
}

.feature-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.feature-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FF6F43 0%, #FF5722 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(255, 87, 34, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 8px 20px rgba(255, 87, 34, 0.38);
}

.feature-tag-chip {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #FFF4EE;
  color: #E64A19;
  border: 1px solid #FFD8CC;
  white-space: nowrap;
}

.feature-card-body {
  flex: 1;
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}

.feature-card-title {
  font-size: 15.5px;
  font-weight: 800;
  margin-bottom: 5px;
  color: #1E1B1B;
  letter-spacing: -0.2px;
}

.feature-card-desc {
  font-size: 12px;
  color: #64748B;
  line-height: 1.5;
}

.feature-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #F6EFEA;
  position: relative;
  z-index: 1;
}

.feature-card-action-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #8C7872;
  transition: color 0.2s ease;
}

.feature-card:hover .feature-card-action-label {
  color: var(--primary);
}

.feature-card-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFF4EE;
  border: 1.5px solid #FFD8CC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--primary);
  transition: all 0.22s ease;
}

.feature-card:hover .feature-card-arrow {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateX(3px);
  box-shadow: 0 4px 10px rgba(255, 87, 34, 0.35);
}

/* Three-Column Lower Dashboard Grid (Exact to Reference Screenshot) */
.dashboard-lower-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.05fr 1.05fr;
  gap: 20px;
  margin-bottom: 22px;
  align-items: stretch;
}

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

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

.ui-card {
  background: #FFFFFF;
  border: 1px solid #EFE8E3;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(35, 12, 16, 0.03);
}

.ui-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.ui-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1E1B1B;
}

/* Summary Pill Button */
.summary-pill-btn {
  font-size: 11px;
  font-weight: 700;
  color: #FF5722;
  background: #FFF0EB;
  padding: 4px 12px;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid #FFD0C2;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.summary-pill-btn:hover {
  background: #FF5722;
  color: #FFFFFF;
  border-color: #FF5722;
}

/* 4-Col Legend Grid in Summary Card */
.summary-legend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #ECE4DF;
}

.legend-item-col {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.legend-item-col .legend-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Mascot Promo Card */
.promo-banner-card {
  background: #FFFFFF;
  border: 1px solid #EFE8E3;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 2px 10px rgba(35, 12, 16, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 100%;
  min-height: 148px;
  transition: var(--transition);
}

.promo-banner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.12);
}

.promo-banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

/* Dedicated Recent Works Grid */
.recent-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 1024px) {
  .recent-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.recent-work-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  background: #FDFBF9;
  border: 1px solid #ECE4DF;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.recent-work-card:hover {
  background: #FFFFFF;
  border-color: #FF5722;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.1);
}

.recent-work-icon {
  font-size: 14px;
}

.recent-work-title {
  font-weight: 700;
  font-size: 13px;
  color: #1E1B1B;
  margin: 8px 0 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-work-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #9CA3AF;
  border-top: 1px solid #F3EFEA;
  padding-top: 8px;
}

.recent-work-arrow {
  color: #FF5722;
  font-weight: 700;
}

/* Switch Toggle for Settings */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #E5E7EB;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.switch-toggle input:checked + .switch-slider {
  background: linear-gradient(135deg, #FF6F43, #FF5722);
}

.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(20px);
}

/* Activity & Quick Action Buttons */
.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #FBF8F6;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.quick-action-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* Storage / Status Progress Bar */
.storage-progress-bar {
  display: flex;
  height: 12px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 14px 0 16px;
  background: #E5E7EB;
}

.storage-seg-1 { background: #FF5722; width: 45%; }
.storage-seg-2 { background: #FF8A65; width: 30%; }
.storage-seg-3 { background: #6D1B24; width: 15%; }
.storage-seg-4 { background: #BCAAA4; width: 10%; }

.storage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.badge-draft { background: #F3F4F6; color: #4B5563; }
.badge-review { background: #FEF3C7; color: #92400E; }
.badge-siap { background: #E0E7FF; color: #3730A3; }
.badge-selesai { background: #DCFCE7; color: #166534; }

/* Interactive Form & Workspace Components */
.form-card, .ui-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: 0 4px 20px rgba(35, 12, 16, 0.05), 0 1px 3px rgba(35, 12, 16, 0.03);
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #374151;
}

.form-control, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #D8CFC8;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-main);
  background: #FCFAF8;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.form-control:focus, .form-select:focus, .form-textarea:focus {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.12);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 3px 10px rgba(255, 87, 34, 0.3);
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #F3F4F6;
  color: #374151;
  border-color: #E5E7EB;
}

.btn-secondary:hover {
  background: #E5E7EB;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* AI Result Container & Output View */
.result-box {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

.result-content-area {
  background: #FBF9F8;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  color: #1F2937;
  min-height: 250px;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #1E1B1B;
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
}

.toast.toast-success { border-left: 4px solid #10B981; }
.toast.toast-error { border-left: 4px solid #EF4444; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Mobile Navigation Controls & Off-Canvas System
   ========================================================================== */
.mobile-nav-toggle {
  display: none;
}
.mobile-brand-mark {
  display: none;
}
.sidebar-close-btn {
  display: none;
}
.sidebar-backdrop {
  display: none;
}
body.sidebar-open-lock {
  overflow: hidden;
}

/* ==========================================================================
   Responsive Adjustments: Tablets & Desktops (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .dashboard-lower-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Responsive Mobile & Tablet Suite (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .app-wrapper {
    display: flex;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    position: relative;
  }

  /* Off-canvas Drawer Navigation */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    box-shadow: none;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 16px 0 50px rgba(0, 0, 0, 0.6);
  }

  .sidebar-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
  }

  .sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
  }

  /* Backdrop Overlay */
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(18, 5, 7, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Main Wrapper expands to 100% full viewport width */
  .main-wrapper {
    width: 100%;
    min-width: 0;
    flex: 1;
    margin-left: 0;
  }

  /* Topbar Header Mobile */
  .topbar {
    padding: 10px 16px;
    gap: 10px;
  }

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #F8F6F4;
    border: 1.5px solid var(--border-color);
    color: #1E1B1B;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
  }

  .mobile-nav-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
  }

  .mobile-brand-mark {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
  }

  .search-box-wrapper {
    max-width: 100%;
    min-width: 0;
  }

  .page-container {
    padding: 18px 14px;
    max-width: 100%;
  }

  .dashboard-hero {
    flex-direction: column;
    padding: 24px 20px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

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

  .hero-mascot-visual {
    margin-top: 20px;
  }
  /* Studio Pages 2-Column Grids Mobile Collapse */
  .workspace-grid,
  .studio-grid,
  .dashboard-grid,
  .form-result-grid,
  .cap-grid,
  .pro-studio-grid,
  .pel-studio-grid,
  .peliput-grid,
  .kre-studio-grid,
  .kreator-grid,
  .editor-grid,
  .ed-grid,
  .dok-studio-grid,
  .dokumentasi-grid {
    grid-template-columns: 1fr !important;
  }

  /* Studio Container Full-Width Clean Scale */
  .cap-studio-container,
  .pro-studio-container,
  .pel-studio-container,
  .kre-studio-container,
  .ed-studio-container,
  .dok-studio-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Form and Input Elements Mobile Friendly */
  .form-control,
  .form-select,
  .form-textarea,
  textarea,
  input[type="text"],
  input[type="search"] {
    font-size: 14px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure Cards & Boxes don't overflow horizontally */
  .ui-card,
  .result-box,
  .studio-card,
  .cap-card,
  .pro-card,
  .pel-card,
  .kre-card,
  .ed-card,
  .dok-card {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    padding: 16px 14px !important;
    border-radius: 16px !important;
  }

  /* Quick action buttons / preset pill strips */
  .quick-pill-strip,
  .preset-pills-row,
  .cap-presets-strip,
  .pro-presets-strip,
  .pel-presets-strip,
  .kre-presets-strip {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
}

/* =========================================================
   Mobile Compact Viewport (<= 640px)
   ========================================================= */
@media (max-width: 640px) {
  .topbar {
    padding: 8px 12px;
    gap: 8px;
  }

  .mobile-brand-mark span {
    display: none;
  }

  .search-box-wrapper {
    flex: 1;
    min-width: 0;
  }

  .search-input {
    font-size: 13px !important;
    padding: 7px 12px 7px 32px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .search-icon {
    left: 10px !important;
    font-size: 13px !important;
  }

  .user-name-text {
    display: none;
  }

  .user-profile-btn {
    padding: 4px;
    border-radius: 50%;
  }

  .page-container {
    padding: 14px 10px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .topbar-btn {
    width: 36px;
    height: 36px;
  }

  .modal-box,
  .confirm-modal-card {
    max-width: 95vw !important;
    margin: 10px auto !important;
    padding: 18px 16px !important;
    max-height: 90vh !important;
  }

  .modal-header {
    padding: 14px 16px !important;
  }

  .modal-body {
    padding: 16px 14px !important;
  }

  .modal-footer {
    padding: 12px 16px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .modal-footer .btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* =========================================================
   HUMAIA Global AI Task Monitor & Navigation Guard
   (Disembunyikan agar tampilan bersih dan tidak menutupi UI saat generate narasi)
   ========================================================= */
.humaia-task-pill {
  display: none !important;
}

@media (max-width: 1024px) {
  .humaia-task-pill {
    left: 16px;
    right: 16px;
    bottom: 20px;
    justify-content: center;
  }
}

.humaia-task-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FF5722;
  box-shadow: 0 0 10px #FF5722;
  animation: pulseTaskDot 1.2s infinite ease-in-out;
  flex-shrink: 0;
}

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

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

/* =========================================================
   HUMAIA Audio Notification Toggle Control
   ========================================================= */
.chat-sound-btn,
.humaia-sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  border: 1.5px solid #FFD0C2;
  background: #FFF4EE;
  color: #EA580C;
  box-shadow: 0 1px 3px rgba(255, 87, 34, 0.08);
}

.chat-sound-btn:hover,
.humaia-sound-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.18);
  background: #FFEBE0;
}

.chat-sound-btn.sound-muted,
.humaia-sound-toggle-btn.sound-muted {
  border-color: #E2E8F0;
  background: #F8FAFC;
  color: #64748B;
  box-shadow: none;
}

.chat-sound-btn.sound-muted:hover,
.humaia-sound-toggle-btn.sound-muted:hover {
  background: #F1F5F9;
  color: #334155;
}
