/* IPM ANTALYA - Özel Kurumsal Stil Dosyası */
:root {
  --ipm-primary: #0b2545;
  --ipm-secondary: #134074;
  --ipm-accent: #00a896;
  --ipm-cyan: #028090;
  --ipm-orange: #f77f00;
  --ipm-dark: #071321;
  --ipm-light: #f8f9fa;
  --ipm-border: #e2e8f0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #334155;
  background-color: #f8fafc;
  line-height: 1.6;
}

/* NAVBAR */
.navbar-ipm {
  background: linear-gradient(135deg, var(--ipm-primary) 0%, var(--ipm-secondary) 100%);
  box-shadow: 0 4px 20px rgba(11, 37, 69, 0.15);
  padding: 0.85rem 0;
}
.navbar-ipm .navbar-brand {
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff !important;
}
.navbar-ipm .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.2s ease;
}
.navbar-ipm .nav-link:hover,
.navbar-ipm .nav-link.active {
  color: #fff !important;
  transform: translateY(-1px);
}

/* HERO SECTION */
.hero-section {
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.95) 0%, rgba(19, 64, 116, 0.92) 100%),
              url('https://images.unsplash.com/photo-1563986768609-322da13575f3?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: #fff;
  padding: 5rem 0 4.5rem;
  position: relative;
}
.hero-badge {
  display: inline-block;
  background: rgba(0, 168, 150, 0.2);
  color: #02c39a;
  border: 1px solid rgba(2, 195, 154, 0.4);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* CARDS */
.card-custom {
  background: #fff;
  border: 1px solid var(--ipm-border);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}
.card-custom:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.product-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.card-header-custom {
  background: #fff;
  border-bottom: 1px solid var(--ipm-border);
  padding: 1.1rem 1.4rem;
  font-weight: 600;
}

/* ADMIN & PORTAL SIDEBAR */
.sidebar {
  min-height: calc(100vh - 65px);
  background: #0f172a;
  color: #94a3b8;
  padding: 1.5rem 0.75rem;
}
.sidebar .nav-link {
  color: #94a3b8;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}
.sidebar .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.sidebar .nav-link.active {
  color: #fff;
  background: #028090;
  font-weight: 600;
}
.sidebar-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  padding: 0.75rem 1rem 0.25rem;
  font-weight: 700;
}

/* STAT CARDS */
.stat-card {
  padding: 1.4rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--ipm-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.stat-icon.primary { background: #e0f2fe; color: #0284c7; }
.stat-icon.success { background: #dcfce7; color: #16a34a; }
.stat-icon.warning { background: #fef3c7; color: #d97706; }
.stat-icon.danger  { background: #fee2e2; color: #dc2626; }
.stat-icon.purple  { background: #ede9fe; color: #7c3aed; }

/* ERROR CODE SEARCH BOX */
.search-box-hero {
  background: #fff;
  border-radius: 14px;
  padding: 0.6rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

/* FOOTER */
.footer-ipm {
  background: var(--ipm-dark);
  color: #94a3b8;
  padding: 3.5rem 0 1.5rem;
  font-size: 0.95rem;
}
.footer-ipm a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-ipm a:hover {
  color: #fff;
}

/* YAZDIRMA (PRINT) STİLLERİ - SERVİS FİŞİ VE QR ETİKET */
@media print {
  .no-print, .navbar, .sidebar, footer, .btn, .breadcrumb {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
  }
  .print-page {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  .qr-sticker {
    border: 2px dashed #000 !important;
    page-break-inside: avoid;
  }
}

/* QR ETİKET TASARIMI */
.qr-sticker-box {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border: 3px solid #0b2545;
  border-radius: 12px;
  padding: 24px;
  background: #fff;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.qr-sticker-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #0b2545;
  color: #fff;
  padding: 4px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* ========================================================================== */
/* MOBİL & TABLET DUYARLILIK (RESPONSIVE ERP & APP) İYİLEŞTİRMELERİ           */
/* ========================================================================== */

/* Taşmaları Önleme & Viewport Koruması */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* Sayfa Başlıkları & Buton Düzeni */
.admin-page-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .admin-page-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
@media (max-width: 767.98px) {
  .admin-header-actions {
    width: 100%;
  }
  .admin-header-actions .btn {
    flex: 1 1 auto;
    font-size: 0.82rem;
    padding: 0.45rem 0.65rem;
    white-space: nowrap;
    text-align: center;
  }
}

/* Mobilde Alt Hızlı Navigasyon Barı (Mobil Uygulama Hissi) */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #0b2545;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1030;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-bottom-nav-item {
  color: #94a3b8;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 4px 6px;
  flex: 1;
  transition: all 0.2s ease;
  position: relative;
}
.mobile-bottom-nav-item i {
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 2px;
}
.mobile-bottom-nav-item:hover,
.mobile-bottom-nav-item.active {
  color: #00d2d3;
}
.mobile-bottom-nav-item .badge {
  position: absolute;
  top: 2px;
  right: 25%;
  font-size: 0.55rem;
  padding: 2px 4px;
}

/* Mobil Ekran İyileştirmeleri (< 768px) */
@media (max-width: 767.98px) {
  /* Alt bar için alttan boşluk bırak */
  body {
    padding-bottom: 65px;
  }

  /* Ana İçerik Padding */
  main {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
  }

  /* Navbar */
  .navbar-brand {
    font-size: 1rem;
  }

  /* Tablolar */
  .table-responsive {
    border-radius: 8px;
    border: 1px solid var(--ipm-border);
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
  }
  .table {
    font-size: 0.82rem;
  }
  .table:not(.talep-table) {
    white-space: nowrap;
  }
  .table td, .table th {
    padding: 0.5rem 0.6rem;
    vertical-align: middle;
  }
  .talep-table th, .talep-table td {
    white-space: normal !important;
    vertical-align: middle !important;
  }

  /* Tablo İçi Butonlar */
  .btn-group-sm > .btn, .btn-sm {
    padding: 0.28rem 0.45rem;
    font-size: 0.75rem;
  }
  .btn-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
  }

  /* İstatistik Kartları */
  .stat-card {
    padding: 0.85rem 1rem;
  }
  .stat-card h3 {
    font-size: 1.35rem;
  }
  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  /* Filtre ve Arama Çubukları */
  .card-custom.p-3 {
    padding: 0.85rem !important;
  }

  /* Modallar Tam Ekrana Yakın */
  .modal-dialog {
    margin: 0.5rem;
  }
  .modal-header, .modal-footer {
    padding: 0.75rem 1rem;
  }
  .modal-body {
    padding: 1rem;
  }
}

/* Offcanvas Menü Stili */
.offcanvas-admin {
  background-color: #0b2545 !important;
  color: #fff;
  width: 290px !important;
}
.offcanvas-admin .sidebar-heading {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.75rem 1rem 0.25rem;
}
.offcanvas-admin .nav-link {
  color: #94a3b8;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s;
}
.offcanvas-admin .nav-link:hover,
.offcanvas-admin .nav-link.active {
  color: #fff;
  background: #028090;
}

