/**
 * MobSis - Profesyonel UI İyileştirmeleri
 */

/* Global yazı tipi ve temel görünüm */
body {
  font-family: Roboto, sans-serif;
  letter-spacing: 0.5px;
  font-size: 16px;
}
/* Başlıklar okunaklı kalsın */
.page-content h1, .page-content .h1 { font-size: 1.75rem; }
.page-content h2, .page-content .h2 { font-size: 1.5rem; }
.page-content h3, .page-content .h3 { font-size: 1.25rem; }
.page-content h4, .page-content .h4 { font-size: 1.125rem; }
.page-content h5, .page-content .h5 { font-size: 1.0625rem; }
.page-content h6, .page-content .h6 { font-size: 1rem; }

.card {
  border: 0;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.card-header {
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.card-title {
  font-weight: 600;
}

.btn {
  border-radius: var(--bs-border-radius);
  font-weight: 500;
}
.btn-light {
  background-color: #f8f9fb;
  border-color: #eef0f3;
}

.form-control,
.form-select {
  border-radius: var(--bs-border-radius);
  border-color: #ced4da;
  box-shadow: none;
}
.form-control:focus,
.form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.badge {
  font-weight: 500;
}

.page-breadcrumb {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  row-gap: 0.5rem;
  font-family: Roboto, sans-serif;
  font-size: 0.9375rem;
}
.page-breadcrumb .breadcrumb-title {
  font-size: 1rem;
  font-weight: 600;
  font-family: Roboto, sans-serif;
}
.page-breadcrumb .breadcrumb-item {
  font-family: Roboto, sans-serif;
}
.page-content .main-content-wrap {
  font-family: Roboto, sans-serif;
}

/* Tablo stilleri */
.table.mobsis-table thead th {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bs-secondary);
  border-bottom-width: 1px;
  padding: 0.75rem 1rem;
}
.table.mobsis-table tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
}
.table.mobsis-table tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.04);
}
.table.mobsis-table .btn-group .btn {
  padding: 0.25rem 0.5rem;
}
.table thead th {
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--bs-secondary);
  border-bottom-width: 1px;
}
.table tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
}
.table tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.04);
}

/* Breadcrumb iyileştirmesi */
.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  opacity: 0.6;
}
.page-breadcrumb .breadcrumb-item a {
  color: var(--bs-secondary);
  text-decoration: none;
}
.page-breadcrumb .breadcrumb-item a:hover {
  color: var(--bs-primary);
}

/* Kart header tutarlılığı */
.card-header.mobsis-card-header {
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* Boş durum */
.table-empty-state {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--bs-secondary);
}

/* Üst arama çubuğu ikonları */
.top-header .navbar .searchbar .search-icon,
.top-header .navbar .searchbar .search-close-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.top-header .navbar .searchbar .search-icon {
  left: 12px;
}
.top-header .navbar .searchbar .search-close-icon {
  right: 12px;
}

/* Üst bar: her zaman açık arka plan (mavi tema override) */
.top-header .navbar {
  background-color: #f7f8fa !important;
  border-bottom: 1px solid #e2e3e4;
}

/* Dashboard anasayfa – tüm yazılar Roboto ve okunaklı */
.dashboard-page {
  font-family: Roboto, sans-serif;
}
.dashboard-page .card,
.dashboard-page .card-body,
.dashboard-page .table,
.dashboard-page .btn,
.dashboard-page .badge,
.dashboard-page h5,
.dashboard-page h6,
.dashboard-page small,
.dashboard-page .stat-label,
.dashboard-page .stat-value,
.dashboard-page .stat-meta,
.dashboard-page .legend-item {
  font-family: Roboto, sans-serif;
}
.dashboard-page .card-body h5 {
  font-size: 1.25rem;
  font-weight: 600;
}
.dashboard-page .card-body .text-muted {
  font-size: 0.9375rem;
}
.dashboard-stat-card {
  border-radius: 12px;
}
.dashboard-stat-card .stat-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bs-secondary);
  margin-bottom: 0.25rem;
  font-family: Roboto, sans-serif;
}
.dashboard-stat-card .stat-value {
  font-size: 1.625rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
  font-family: Roboto, sans-serif;
}
.dashboard-stat-card .stat-meta {
  font-size: 0.8125rem;
  color: var(--bs-secondary);
  font-family: Roboto, sans-serif;
}
.dashboard-stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}
.dashboard-page h6.mb-0 {
  font-size: 1rem;
  font-weight: 600;
}
.dashboard-page .dashboard-chart + .mt-3,
.dashboard-page small.text-muted {
  font-size: 0.9375rem;
}
.dashboard-chart {
  min-height: 320px;
}
.dashboard-donut {
  min-height: 260px;
}
.dashboard-legend .legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
  font-family: Roboto, sans-serif;
}
.dashboard-legend .legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dashboard-page .table,
.dashboard-page .table th,
.dashboard-page .table td {
  font-size: 0.9375rem;
  font-family: Roboto, sans-serif;
}
.dashboard-page .table thead th {
  font-size: 0.8125rem;
}
.dashboard-page .btn,
.dashboard-page a.small {
  font-size: 0.9375rem;
}

/* Index filtre şeridi */
.index-filters {
  align-items: center;
}
.index-filters .input-group .input-group-text {
  background-color: #f8f9fb;
}
.index-filters .form-select,
.index-filters .btn,
.index-filters .form-control,
.index-filters .input-group-text {
  border-radius: 10px;
}

/* Ürün listesi (referans düzeni) */
.product-list-filters {
  background-color: #f8f9fa !important;
}
.product-list-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #6c757d;
}
.product-list-table tbody td {
  padding: 0.75rem 0.5rem;
  vertical-align: middle;
}
.product-thumb,
.product-thumb-placeholder {
  flex-shrink: 0;
}
/* Ürün görseli: tıklanınca büyütme modalı + hover’da hafif büyüme */
.product-image-zoom {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-image-zoom:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.product-list-table .btn-link {
  text-decoration: none;
}
.product-list-table .btn-link:hover {
  opacity: 0.85;
}

/* Tahsilat modülü – gelişmiş sayfa */
.tahsilat-page {
  font-family: Roboto, sans-serif;
}
.tahsilat-page .card,
.tahsilat-page .stat-label,
.tahsilat-page .stat-value,
.tahsilat-page .stat-meta,
.tahsilat-page .table {
  font-family: Roboto, sans-serif;
}
.tahsilat-page .card-header.cursor-pointer {
  cursor: pointer;
  user-select: none;
}
.tahsilat-page .card-header.cursor-pointer:hover {
  background-color: rgba(0, 0, 0, 0.02);
}
.tahsilat-page .collapse-icon {
  transition: transform 0.2s ease;
}
.tahsilat-page .collapse-icon.rotate-180 {
  transform: rotate(180deg);
}

/* ========== Raporlar sayfası – profesyonel, okunabilir tasarım ========== */
.reports-page {
  font-family: Roboto, sans-serif;
}
.reports-stat-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.reports-stat-card .card-body {
  padding: 1.25rem 1.5rem;
}
.reports-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 0.35rem;
}
.reports-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}
.reports-stat-value.reports-value-success {
  color: #059669;
}
.reports-stat-value.reports-value-info {
  color: #0284c7;
}
.reports-stat-meta {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.2rem;
}
.reports-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.reports-icon-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
}
.reports-icon-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
}
.reports-icon-info {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  color: #fff;
}
.reports-icon-danger {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #fff;
}
.reports-icon-warning {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: #fff;
}

.reports-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.reports-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.reports-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.35rem;
}
.reports-section-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.reports-table {
  background: #fff;
}
.reports-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
}
.reports-table tbody td {
  color: #334155;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.reports-table tbody tr:hover {
  background: #f8fafc;
}
.reports-table .reports-empty {
  color: #94a3b8;
  padding: 2rem;
}

.reports-status-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
}
.reports-status-paid {
  background: #d1fae5;
  color: #047857;
}
.reports-status-partial {
  background: #fef3c7;
  color: #b45309;
}
.reports-status-unpaid {
  background: #fee2e2;
  color: #b91c1c;
}

/* ========== Tasarım bütünlüğü: form kartları ve katmanlı görünüm ========== */

.main-body .page-body .card,
.card.border-0.shadow-sm {
  border-radius: 12px;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.08);
}
.card-header.mobsis-card-header .mb-0 {
  font-size: 1.0625rem;
}

/* Form sayfalarında bölüm başlıkları */
.section-title,
.main-body h6.text-muted.mb-2,
.main-body h6.text-muted.mb-1 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bs-secondary);
}

/* Ürün kalemleri / öğe tabloları (teklif + satış aynı görünüm) */
.table.items-table,
.table.items-table thead th {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--bs-secondary);
}
.table.items-table thead th {
  border-bottom-width: 1px;
  padding: 0.75rem 0.5rem;
  background-color: #f8f9fa;
}
.table.items-table tbody td {
  padding: 0.5rem;
  vertical-align: middle;
}
.table.items-table .input-group-text {
  background-color: #fff;
  border-color: #ced4da;
}
.table.items-table .form-control,
.table.items-table .form-select {
  border-radius: 6px;
}

/* Özet kutusu (ara toplam / indirim / genel toplam) */
.summary-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.summary-box .fw-semibold.fs-5 {
  color: #1f2937;
}

/* Buton ikonları tutarlı */
.btn i.bi:first-child {
  opacity: 0.9;
}

/* Liste sayfaları tablo: tek tip */
.table.mobsis-table {
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}
.table.mobsis-table thead.table-light th {
  background-color: #f8f9fa !important;
  color: #495057;
}

/* ========== Renk vurguları ve katmanlı görünüm ========== */

/* Kart başlığına sol çizgi vurgusu (opsiyonel, primary rengi) */
.card-header.mobsis-card-header {
  border-left: 3px solid var(--bs-primary);
  padding-left: calc(1.25rem - 3px);
}

/* Birincil buton: hafif derinlik */
.btn-primary {
  box-shadow: 0 1px 3px rgba(13, 110, 253, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.4);
}

/* Başarı / Uyarı butonları tutarlı ikon */
.btn-success i.bi,
.btn-warning i.bi,
.btn-outline-primary i.bi {
  font-size: 1em;
  vertical-align: -0.1em;
}

/* Sayfa içi uyarı / bilgi kutuları */
.alert-success {
  border-left: 4px solid var(--bs-success);
}
.alert-danger {
  border-left: 4px solid var(--bs-danger);
}
.alert-warning {
  border-left: 4px solid var(--bs-warning);
}
.alert-info {
  border-left: 4px solid var(--bs-info);
}

/* Badge: daha okunaklı */
.badge {
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Boş tablo / empty state ikonu */
.table-empty-state .bi {
  opacity: 0.7;
}
