/* Clean & 100% Mobile Responsive styling for TasikStory.id */

/* Box sizing and strict containment for zero horizontal overflow */
*, *::before, *::after {
  box-sizing: border-box;
  min-width: 0;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  position: relative;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #080f1a;
  color: #f1f5f9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Force text inputs, selects, and textareas to have uniform height & containment */
input:not([type="checkbox"]):not([type="radio"]), 
select {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 42px !important;
  height: 42px !important;
  box-sizing: border-box !important;
  margin: 0;
  font-size: 0.875rem;
}

textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0;
}

/* Checkboxes and radio buttons MUST maintain their square dimensions */
input[type="checkbox"], 
input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  accent-color: #0284c7;
  display: inline-block;
  vertical-align: middle;
}

/* Robust fix for iOS / WebKit Date Input (Never Gepeng) */
input[type="date"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 36px 0 12px !important;
  font-size: 0.875rem !important;
  line-height: 42px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  background-clip: padding-box;
  border-radius: 0.5rem;
  color: #ffffff !important;
  position: relative !important;
}

/* iOS Safari internal date value container fix: guaranteed never squashed/gepeng */
input[type="date"]::-webkit-date-and-time-value {
  min-height: 42px !important;
  height: 42px !important;
  line-height: 42px !important;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

/* Native calendar picker indicator icon: covers full field transparently so tapping anywhere triggers picker */
input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
}

/* Active Nav Tab Style */
.active-tab {
  background-color: #0284c7 !important;
  color: #ffffff !important;
}

.tab-btn {
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease-in-out;
}

/* Link Cards Hover Effects */
.link-card {
  transition: all 0.15s ease-in-out;
}

.link-card:hover {
  transform: translateY(-1px);
  border-color: #334155;
  background-color: rgba(30, 41, 59, 0.6);
}

/* Clean Custom Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #080f1a;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Form input focus */
input:focus, select:focus, textarea:focus {
  border-color: #0284c7 !important;
  outline: none;
}
