/* Custom CSS untuk Temukan TK - Brand Colors */

/* Global Font Family */
body, .navbar, .nav-link, .btn, .form-control, .form-label {
    font-family: 'Inter', sans-serif !important;
}

/* Brand Color Variables */
:root {
  --primary-color: #2758F8;
  --primary-dark: #1a47d9;
  --primary-light: #4a6efa;
  --secondary-color: #5CC6D8;
  --secondary-dark: #47b4c7;
  --secondary-light: #7dd1df;
  --accent-color: #5CC6D8;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --bg-light: #ffffff;
  --bg-primary: #f8fafe;
  --border-color: #e9ecf4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
}

/* Override Bootstrap Primary Colors */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border: none;
  color: white;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  border: none;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(39, 88, 248, 0.3);
}

.btn-info, .btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
  border: none;
  color: white;
}

.btn-info:hover, .btn-info:focus, .btn-info:active,
.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
  border: none;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(92, 198, 216, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
  border: none;
  color: white;
}

.btn-success:hover, .btn-success:focus, .btn-success:active {
  background: linear-gradient(135deg, #059669 0%, var(--success-color) 100%);
  border: none;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Navigation Bar */
.navbar-brand {
  color: var(--primary-color) !important;
  font-weight: 700;
}

.nav-link {
  color: #374151 !important;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  position: relative;
  overflow: hidden;
  color: white;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="80" r="2.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  opacity: 0.5;
}

.hero-section .display-4 {
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
  font-weight: 500;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Force light mode - Override system dark mode preference */
* {
  color-scheme: light only !important;
}

/* Body Background - Force white background for all devices */
body {
  background-color: #ffffff !important;
  color: #333333 !important;
}

html {
  background-color: #ffffff !important;
}

/* Override any dark mode styles */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #ffffff !important;
    color: #333333 !important;
  }
  
  html {
    background-color: #ffffff !important;
  }
  
  .navbar {
    background-color: #ffffff !important;
  }
  
  .btn, .form-control {
    background-color: inherit !important;
    color: inherit !important;
  }
  
  /* Don't override card backgrounds in hero section */
  .card {
    background-color: white !important;
  }
  
  /* Keep containers transparent in dark mode, except navbar */
  .container:not(.navbar .container), .container-fluid:not(.navbar .container-fluid) {
    background-color: transparent !important;
  }
  
  .navbar .container, .navbar .container-fluid {
    background-color: transparent !important;
  }
  
  /* Preserve hero section background in dark mode */
  .hero-section {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
  }
}

/* Mobile specific fixes */
@media (max-width: 768px) {
  body {
    background-color: #ffffff !important;
    color: #333333 !important;
  }
  
  html {
    background-color: #ffffff !important;
  }
  
  /* Hero section containers should be transparent */
  .hero-section .container, .hero-section .container-fluid {
    background-color: transparent !important;
  }
  
  /* Other containers (not in hero section) remain white */
  body > .container:not(.hero-section .container), 
  body > .container-fluid:not(.hero-section .container-fluid),
  .container:not(.hero-section .container):not(.navbar .container), 
  .container-fluid:not(.hero-section .container-fluid):not(.navbar .container-fluid) {
    background-color: #ffffff !important;
  }
  
  /* Ensure text is visible on white background */
  .text-white {
    color: #ffffff !important;
  }
  
  .text-dark {
    color: #333333 !important;
  }
  
  .text-muted {
    color: #6b7280 !important;
  }
  
  /* Fix navbar on mobile - ensure white background */
  .navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .navbar-light .navbar-nav .nav-link {
    color: #333333 !important;
  }
  
  .navbar-light .navbar-toggler {
    border-color: #e5e7eb;
  }
  
  .navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  
  /* Mobile hero section fixes */
  .hero-section {
    min-height: 60vh !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
  }
  
  .hero-section h1 {
    font-size: 32px !important;
  }
  
  .hero-section p {
    font-size: 16px !important;
  }
  
  /* Force background image visibility */
  @supports (-webkit-background-clip: text) {
    .hero-section {
      -webkit-background-clip: border-box !important;
      background-clip: border-box !important;
    }
  }
}

/* Feature Check Icons - Cyan Color */
.fas.fa-check:not(.btn .fas.fa-check), 
.far.fa-check:not(.btn .far.fa-check), 
.fa.fa-check:not(.btn .fa.fa-check) {
    color: #5CC6D8 !important;
}

/* Special styling for feature lists */
.feature-list .fas.fa-check,
.comparison-table .fas.fa-check {
    color: #5CC6D8 !important;
}

/* Card Enhancements */
.card {
  border: 1px solid var(--border-color);
  background-color: white;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border-radius: 12px;
  color: #1f2937;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(39, 88, 248, 0.1) !important;
}

.card-header {
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: #1f2937;
}

.card-body {
  color: #374151;
}

.card-title {
  color: #1f2937;
  font-weight: 600;
}

.card-text {
  color: #4b5563;
}

.card-header.bg-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  color: white;
  border: none;
}

.card-header.bg-info {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%) !important;
  color: white;
  border: none;
}

/* Badge Styling */
.badge {
  font-weight: 500;
  font-size: 0.8em;
  border-radius: 8px;
}

.badge.bg-primary {
  background-color: var(--primary-color) !important;
}

.badge.bg-info {
  background-color: var(--secondary-color) !important;
}

.badge.bg-success {
  background-color: var(--success-color) !important;
}

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

.text-info {
  color: var(--secondary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-info {
  background-color: var(--secondary-color) !important;
}

/* Form Enhancements */
.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(39, 88, 248, 0.25);
}

.form-control, .form-select {
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
}

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

/* Alert Components */
.alert-info {
  background-color: rgba(92, 198, 216, 0.15);
  border-color: var(--secondary-color);
  color: #1f2937;
  border-width: 2px;
}

.alert-primary {
  background-color: rgba(39, 88, 248, 0.15);
  border-color: var(--primary-color);
  color: #1f2937;
  border-width: 2px;
}

/* Map Styling */
#map, #detailMap {
  border-radius: 12px;
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Admin Panel Colors */
.sidebar {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
}

.sidebar .nav-link:hover {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.sidebar .nav-link.active {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-weight: 600;
}

/* Search Results */
.list-group-item {
  border: 1px solid var(--border-color);
  border-radius: 8px !important;
  margin-bottom: 8px;
  background-color: white;
  color: #374151;
}

.list-group-item h5 {
  color: #1f2937;
  font-weight: 600;
}

.list-group-item p {
  color: #4b5563;
}

.list-group-item:hover {
  background-color: var(--bg-primary);
  border-color: var(--primary-light);
}

.list-group-item:hover h5 {
  color: var(--primary-color);
}

.list-group-item small {
  color: #6b7280;
}

/* Floating Compare Button */
.floating-compare-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1050;
  animation: fadeInUp 0.3s ease-out;
}

.floating-compare-btn .btn {
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(39, 88, 248, 0.3);
  border: none;
}

.floating-compare-btn .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(39, 88, 248, 0.4);
  transition: all 0.3s ease;
}

/* Loading Indicator */
.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

/* Table Styling */
.table {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  color: #374151;
}

.table thead th {
  background-color: var(--bg-primary);
  border-color: var(--border-color);
  color: #1f2937;
  font-weight: 600;
}

.table tbody td {
  color: #374151;
}

.table tbody tr:hover {
  background-color: rgba(39, 88, 248, 0.05);
}

.table tbody tr:hover td {
  color: #1f2937;
}

/* Input Group */
.input-group-text {
  background-color: var(--bg-primary);
  border-color: var(--border-color);
  color: #1f2937;
  font-weight: 500;
}

/* Progress Bar */
.progress-bar {
  background-color: var(--primary-color);
}

/* Footer */
footer {
  margin-top: auto;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  color: #374151;
}

footer a {
  color: var(--primary-color);
  font-weight: 500;
}

footer a:hover {
  color: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section .display-4 {
    font-size: 2rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
  }
  
  .floating-compare-btn {
    bottom: 1rem;
    right: 1rem;
  }
  
  .floating-compare-btn .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Print Styles */
@media print {
  .navbar, footer, .btn, #map, #detailMap, .floating-compare-btn {
    display: none !important;
  }
  
  .card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
  
  body {
    background-color: white !important;
  }
}

/* Accessibility */
.btn:focus, .form-control:focus, .form-select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-dark);
}

/* Verified Badge */
.verified-badge {
  background: linear-gradient(45deg, var(--success-color), #059669);
  color: white;
  font-weight: 600;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
}

/* Rating Stars */
.text-warning {
  color: var(--warning-color) !important;
}

/* Shadow Utilities */
.shadow-brand {
  box-shadow: 0 4px 15px rgba(39, 88, 248, 0.15) !important;
}

.shadow-brand-lg {
  box-shadow: 0 8px 25px rgba(39, 88, 248, 0.2) !important;
}

/* Enhanced Text Contrast */
.text-body {
  color: #374151 !important;
}

.text-muted {
  color: #6b7280 !important;
}

.small, small {
  color: #6b7280;
}

/* Button Text Contrast */
.btn {
  font-weight: 600;
}

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

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

.btn-outline-secondary {
  color: var(--secondary-dark);
  border-color: var(--secondary-color);
}

.btn-outline-secondary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

/* Form Labels */
.form-label {
  color: #1f2937;
  font-weight: 500;
}

/* Lead Text */
.lead {
  color: #4b5563;
}

/* Display Headings */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  color: #1f2937;
}

/* Heading Contrast */
h1, h2, h3, h4, h5, h6 {
  color: #1f2937;
}

/* Breadcrumb */
.breadcrumb-item {
  color: #6b7280;
}

.breadcrumb-item.active {
  color: #1f2937;
}

/* Dropdown */
.dropdown-item {
  color: #374151;
}

.dropdown-item:hover, .dropdown-item:focus {
  background-color: var(--bg-primary);
  color: #1f2937;
}

/* Modal Content */
.modal-header {
  border-bottom-color: var(--border-color);
}

.modal-title {
  color: #1f2937;
}

.modal-body {
  color: #374151;
}

/* List Group Enhancement */
.list-group-item-action:hover {
  background-color: var(--bg-primary);
  color: #1f2937;
}

/* Pagination */
.page-link {
  color: var(--primary-color);
}

.page-link:hover {
  color: var(--primary-dark);
  background-color: var(--bg-primary);
  border-color: var(--primary-light);
}

.page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Tooltip */
.tooltip-inner {
  background-color: #1f2937;
  color: white;
}

/* Popover */
.popover-header {
  background-color: var(--bg-primary);
  color: #1f2937;
  border-bottom-color: var(--border-color);
}

.popover-body {
  color: #374151;
}