/* Hasta Kartı Custom Styles - Tailwind CSS benzeri */

/* Form Controls Fix - TÜM INPUT ALANLARI BEYAZ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="date"],
textarea,
select {
  background-color: #ffffff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #111827 !important;
}

/* Input inside ALL sections should be white */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="date"],
textarea,
select {
  background-color: #ffffff !important;
}

/* Force white background in all colored sections */
.bg-pink-50 input[type="text"],
.bg-pink-50 input[type="email"],
.bg-pink-50 input[type="tel"],
.bg-pink-50 input[type="number"],
.bg-pink-50 input[type="password"],
.bg-pink-50 textarea,
.bg-pink-50 select,
.bg-blue-50 input[type="text"],
.bg-blue-50 input[type="email"],
.bg-blue-50 input[type="tel"],
.bg-blue-50 input[type="number"],
.bg-blue-50 input[type="password"],
.bg-blue-50 textarea,
.bg-blue-50 select,
.bg-yellow-50 input[type="text"],
.bg-yellow-50 input[type="email"],
.bg-yellow-50 input[type="tel"],
.bg-yellow-50 input[type="number"],
.bg-yellow-50 input[type="password"],
.bg-yellow-50 textarea,
.bg-yellow-50 select,
.bg-gray-50 input[type="text"],
.bg-gray-50 input[type="email"],
.bg-gray-50 input[type="tel"],
.bg-gray-50 input[type="number"],
.bg-gray-50 input[type="password"],
.bg-gray-50 textarea,
.bg-gray-50 select {
  background-color: #ffffff !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="tel"]:disabled,
input[type="number"]:disabled,
textarea:disabled,
select:disabled {
  background-color: #f3f4f6 !important;
  cursor: not-allowed;
}

/* Checkbox & Radio - TAM GÖRÜNÜR HAL */
input[type="checkbox"],
input[type="radio"] {
  /* Görünürlük */
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  
  /* Pozisyon ve boyut */
  position: relative !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  
  /* Native görünüm ZORLA */
  -webkit-appearance: checkbox !important;
  -moz-appearance: checkbox !important;
  appearance: checkbox !important;
  
  /* Diğer */
  cursor: pointer !important;
  flex-shrink: 0 !important;
  margin: 0 4px 0 0 !important;
  padding: 0 !important;
  
  /* Renk */
  accent-color: #3b82f6 !important;
  
  /* Z-index ve pointer events */
  z-index: 1 !important;
  pointer-events: auto !important;
}

input[type="radio"] {
  -webkit-appearance: radio !important;
  -moz-appearance: radio !important;
  appearance: radio !important;
  border-radius: 50% !important;
}

/* w-4 h-4 class'lı checkbox'lar için */
input[type="checkbox"].w-4,
input[type="radio"].w-4 {
  width: 1rem !important;
  height: 1rem !important;
  min-width: 1rem !important;
  min-height: 1rem !important;
}

/* Label styles */
label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

/* Çip-Etiket Buton Hover Efektleri */
button.bg-primary-600,
button.bg-success-600,
button.bg-warning-600,
button.bg-purple-600 {
  transition: all 0.3s ease;
  position: relative;
}

button.bg-primary-600:hover,
button.bg-success-600:hover,
button.bg-warning-600:hover,
button.bg-purple-600:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

button.bg-primary-600:hover {
  background-color: #2563eb !important;
}

button.bg-success-600:hover {
  background-color: #059669 !important;
}

button.bg-warning-600:hover {
  background-color: #d97706 !important;
}

button.bg-purple-600:hover {
  background-color: #7c3aed !important;
}

/* Ana Menü Font Küçültme - GÜÇLÜ */
nav.navbar ul.navbar-nav li a,
nav.navbar ul.navbar-nav li.nav-item a,
nav.navbar .navbar-nav .nav-link,
nav.navbar .navbar-nav .dropdown-item,
.navbar-nav > li > a,
.navbar .nav-link {
  font-size: 13px !important;
  line-height: 1.4 !important;
}

/* WowDash Button Tabs - Geliştirme */
.button-tab .nav-link {
  transition: all 0.3s ease;
}

.button-tab .nav-link:hover {
  background-color: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.button-tab .nav-link.active {
  background-color: #6366f1 !important;
  color: white !important;
}

/* STICKY TAB MENU FIX - EN GÜÇLÜ */
.dashboard-body {
  overflow: visible !important;
  position: relative !important;
}

.dashboard-body .container-fluid {
  overflow: visible !important;
}

/* Parent container'ların hepsinde overflow visible olmalı */
.position-relative {
  overflow: visible !important;
}

/* Z-Index Hierarchy */
/* Ana Navbar: 1030 (en üstte) */
/* Tab Menüsü: 1020 (navbar altında, içerik üstünde) */
/* İçerik: default (en altta) */

/* Hasta Arama Input - SARI Arka Plan (border gri) - EN GÜÇLÜ */
input[type="text"][placeholder*="Ad, Soyad, TC"],
input.flex-grow-1[placeholder*="Ad, Soyad, TC"],
.bg-pink-50 input[placeholder*="Ad, Soyad, TC"],
.bg-blue-50 input[placeholder*="Ad, Soyad, TC"] {
  background-color: #fff9c4 !important;  /* Açık sarı - Normal durum */
  border-color: #d1d5db !important;      /* Gri border */
  background-image: none !important;
}

input[type="text"][placeholder*="Ad, Soyad, TC"]:hover,
input[type="text"][placeholder*="Ad, Soyad, TC"]:focus,
input.flex-grow-1[placeholder*="Ad, Soyad, TC"]:hover,
input.flex-grow-1[placeholder*="Ad, Soyad, TC"]:focus {
  background-color: #fff9c4 !important;  /* Açık sarı - Hover ve Focus durumunda da */
  border-color: #9ca3af !important;      /* Koyu gri border - focus */
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(209, 213, 219, 0.3) !important;
}

label.flex {
  margin-bottom: 0;
}

/* Select dropdown fix */
select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Flex & Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Spacing */
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Padding & Margin */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pb-4 { padding-bottom: 1rem; }
.pt-4 { padding-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.mr-3 { margin-right: 0.75rem; }
.me-16 { margin-right: 1rem; }
.ms-16 { margin-left: 1rem; }
.-mb-px { margin-bottom: -1px; }
.-mx-4 { margin-left: -1rem; margin-right: -1rem; }
.-mt-4 { margin-top: -1rem; }

/* Width & Height - CHECKBOX İÇİN ÖZEL */
.w-4 { 
  width: 1rem !important; 
  min-width: 1rem !important;
}
.h-4 { 
  height: 1rem !important; 
  min-height: 1rem !important;
}
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-h-60 { max-height: 15rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-\[64px\] { top: 64px; }
.top-50 { top: 50%; }
.end-0 { right: 0; }
.translate-middle-y { transform: translateY(-50%); }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Background Colors */
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-white { background-color: #ffffff; }
.bg-pink-50 { background-color: #fdf2f8; }
.bg-pink-200 { background-color: #fbcfe8; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-200 { background-color: #bfdbfe; }
.bg-yellow-50 { background-color: #fefce8; }
.bg-yellow-100 { background-color: #fef9c3 !important; }
.bg-primary-600 { background-color: #2563eb; }
.bg-success-600 { background-color: #16a34a; }
.bg-warning-600 { background-color: #ea580c; }
.bg-purple-600 { background-color: #9333ea; }

/* Specific overrides for yellow search boxes */
input.bg-yellow-100 {
  background-color: #fef9c3 !important;
  border: 2px solid #facc15 !important;
}

input.bg-yellow-100:focus {
  border-color: #eab308 !important;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1) !important;
}

/* Pink and Blue background sections */
.bg-pink-50,
.bg-blue-50,
.bg-yellow-50 {
  padding: 1.5rem;
  border-radius: 0.5rem;
}

/* Border color utilities - Pink */
.border-pink-300 { border-color: #f9a8d4 !important; }
.border-pink-400 { border-color: #f472b6 !important; }

/* Border color utilities - Blue */
.border-blue-300 { border-color: #93c5fd !important; }
.border-blue-400 { border-color: #60a5fa !important; }

/* Border color utilities - Yellow */
.border-yellow-400 { border-color: #facc15 !important; }
.border-yellow-500 { border-color: #eab308 !important; }

/* Text Colors */
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-pink-700 { color: #be185d; }
.text-pink-900 { color: #831843; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-900 { color: #1e3a8a; }
.text-red-600 { color: #dc2626; }
.text-white { color: #ffffff; }
.text-primary-600 { color: #2563eb; }
.text-secondary-light { color: #6b7280; }

/* Borders */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-b { border-bottom-width: 1px; }
.border-b-2 { border-bottom-width: 2px; }
.border-gray-200 { border-color: #e5e7eb; }
.border-pink-100 { border-color: #fce7f3; }
.border-pink-200 { border-color: #fbcfe8; }
.border-pink-300 { border-color: #f9a8d4; }
.border-pink-400 { border-color: #f472b6; }
.border-blue-100 { border-color: #dbeafe; }
.border-blue-200 { border-color: #bfdbfe; }
.border-blue-300 { border-color: #93c5fd; }
.border-blue-400 { border-color: #60a5fa; }
.border-yellow-300 { border-color: #fde047; }
.border-yellow-400 { border-color: #facc15; }
.border-yellow-500 { border-color: #eab308; }
.border-transparent { border-color: transparent; }
.border-primary-500 { border-color: #3b82f6; }
.border-dashed { border-style: dashed; }

/* Rounded */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }

/* Font */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }

/* Display */
.block { display: block; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.object-cover { object-fit: cover; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Hover States */
.hover\:bg-gray-300:hover { background-color: #d1d5db; }
.hover\:bg-pink-50:hover { background-color: #fdf2f8; }
.hover\:bg-blue-50:hover { background-color: #eff6ff; }
.hover\:bg-primary-700:hover { background-color: #1d4ed8; }
.hover\:bg-success-700:hover { background-color: #15803d; }
.hover\:bg-warning-700:hover { background-color: #c2410c; }
.hover\:bg-purple-700:hover { background-color: #7e22ce; }
.hover\:border-primary-500:hover { border-color: #3b82f6; }

/* Focus States */
.focus\:border-yellow-500:focus { 
  border-color: #eab308 !important; 
}
.focus\:ring-2:focus { 
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2) !important; 
}
.focus\:ring-yellow-200:focus { 
  box-shadow: 0 0 0 3px rgba(254, 240, 138, 0.5) !important; 
}

/* Ring utility */
.ring-2 {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Responsive */
@media (min-width: 768px) {
  .md\:-mx-8 { margin-left: -2rem; margin-right: -2rem; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Custom Hover for borders */
.border-b-2.border-primary-500 { border-bottom: 2px solid #3b82f6; }
.border-b-2.border-transparent { border-bottom: 2px solid transparent; }

/* Scrollbar */
.scroll-sm::-webkit-scrollbar { width: 6px; }
.scroll-sm::-webkit-scrollbar-track { background: #f1f1f1; }
.scroll-sm::-webkit-scrollbar-thumb { background: #888; border-radius: 3px; }
.scroll-sm::-webkit-scrollbar-thumb:hover { background: #555; }

/* Last child no border */
.last\:border-0:last-child { border: 0; }

/* Tedavi ve Belgeler Tab - Checkbox Hover ve Checked States */
/* Hover efekti - Tüm checkbox label'ları için */
.bg-pink-50 label.cursor-pointer:hover,
.bg-blue-50 label.cursor-pointer:hover {
  background-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

/* Checkbox işaretlendiğinde - YEŞİL ARKA PLAN */
.bg-pink-50 label.cursor-pointer:has(input[type="checkbox"]:checked),
.bg-blue-50 label.cursor-pointer:has(input[type="checkbox"]:checked) {
  background-color: #86efac !important; /* Yeşil arka plan */
  border-color: #22c55e !important;
  font-weight: 600 !important;
}

/* Checkbox işaretlendiğinde text bold */
.bg-pink-50 label.cursor-pointer:has(input[type="checkbox"]:checked) span,
.bg-blue-50 label.cursor-pointer:has(input[type="checkbox"]:checked) span {
  font-weight: 700 !important;
  color: #15803d !important; /* Koyu yeşil text */
}

/* Transition tüm label'lara */
.bg-pink-50 label.cursor-pointer,
.bg-blue-50 label.cursor-pointer {
  transition: all 0.2s ease;
}
