/* ============================================
   MOBILE RESPONSIVE CSS - Zirve Vinç
   ============================================ */

/* ============================================
   GENEL MOBİL STİLLER (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {

  /* Container tam genişlik VE OVERFLOW KONTROLÜ */
  .container,
  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Card overflow kontrolü */
  .card {
    max-width: 100%;
    overflow: hidden;
  }

  .card-body {
    padding: 12px;
    overflow-x: auto;
  }

  /* Logo küçült */
  .dashboard-logo .logo {
    max-width: 150px;
    height: auto;
  }

  /* Sayfa başlığı */
  h1.mb-4 {
    font-size: 1.25rem;
    margin-bottom: 1rem !important;
  }

  /* Kart başlıkları */
  .card-header h4,
  .card-header h5 {
    font-size: 0.95rem;
  }

  /* Touch-friendly butonlar - minimum 44x44px */
  .btn {
    min-height: 44px;
    padding: 10px 16px;
  }

  .btn-sm {
    min-height: 38px;
    min-width: 38px;
    padding: 8px 12px;
  }

  /* ============================================
     İSTATİSTİK KARTLARI
     ============================================ */
  /* Dashboard istatistik kartlarında grid düzeni */
  .card-body .row.text-center .col-3 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 8px;
    margin-bottom: 10px;
  }

  .card-body .row.text-center .col-3 h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
  }

  .card-body .row.text-center .col-3 small {
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .card-body .row.text-center .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 8px;
    margin-bottom: 10px;
  }

  .card-body .row.text-center .col-6 h3 {
    font-size: 1.25rem;
  }

  /* ============================================
     TABLOLAR
     ============================================ */
  /* Tablo container scroll */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -10px;
    padding: 0 10px;
  }

  /* Tablo minimum genişlik */
  .table-responsive table {
    min-width: 600px;
  }

  /* Kompakt tablo hücreleri */
  .table td,
  .table th {
    padding: 8px 6px;
    font-size: 0.85rem;
  }

  /* Tablo içi küçük yazılar */
  .table small {
    font-size: 0.75rem;
  }

  /* İşlem butonları mobilde */
  .table .d-flex.gap-1 {
    flex-wrap: nowrap;
  }

  .table .btn-sm {
    padding: 6px 10px;
    min-width: 36px;
    min-height: 36px;
  }

  /* ============================================
     NAVİGASYON
     ============================================ */
  /* Tab'lar yatay scroll */
  .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-tabs .nav-item {
    flex-shrink: 0;
  }

  .nav-tabs .nav-link {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  /* Navbar mobil düzeni */
  .navbar .d-flex.align-items-center {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
    padding: 10px 0;
  }

  .navbar .text-white.me-3 {
    margin-right: 0 !important;
    font-size: 0.9rem;
  }

  /* ============================================
     FORMLAR
     ============================================ */
  /* Form elemanları tam genişlik */
  .form-control,
  .form-select {
    font-size: 16px;
    /* iOS zoom'u önle */
  }

  /* Arama formu mobil düzeni */
  .card-body .row.g-3>.col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 15px;
  }

  .card-body .row.g-2>div {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 8px;
  }

  /* Buton grupları */
  .d-flex.gap-2 {
    flex-wrap: wrap;
  }

  .d-flex.justify-content-md-end {
    justify-content: flex-start !important;
  }

  /* ============================================
     MODALLER
     ============================================ */
  .modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
  }

  .modal-body {
    padding: 15px;
  }

  /* Modal içi formlar */
  .modal .row .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 10px;
  }

  /* ============================================
     BADGE'LER
     ============================================ */
  .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  /* ============================================
     ACCORDION / CARD HEADERS
     ============================================ */
  .card-header .d-flex.justify-content-between {
    flex-direction: column;
    gap: 10px;
  }

  .card-header .d-flex.justify-content-between>div:last-child {
    align-self: flex-start;
  }
}

/* ============================================
   KÜÇÜK MOBİL (max-width: 576px) - iPhone SE gibi
   ============================================ */
@media (max-width: 576px) {

  .container,
  .container-fluid {
    padding-left: 8px;
    padding-right: 8px;
  }

  h1.mb-4 {
    font-size: 1.1rem;
  }

  .card-header h4,
  .card-header h5 {
    font-size: 0.85rem;
  }

  /* Daha kompakt istatistikler */
  .card-body .row.text-center .col-3 h3 {
    font-size: 1.25rem;
  }

  .card-body .row.text-center .col-3 small {
    font-size: 0.65rem;
  }

  /* Tablo daha kompakt */
  .table td,
  .table th {
    padding: 6px 4px;
    font-size: 0.8rem;
  }

  /* Tab'lar daha küçük */
  .nav-tabs .nav-link {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  /* Action butonları */
  .table .btn-sm {
    padding: 5px 8px;
    min-width: 32px;
    min-height: 32px;
    font-size: 0.75rem;
  }

  /* İşlem hücresi yığılmasın */
  .table .d-flex.gap-1 {
    gap: 2px !important;
  }
}

/* ============================================
   TABLET (max-width: 992px)
   ============================================ */
@media (max-width: 992px) and (min-width: 769px) {

  /* Orta boyut için hafif düzenlemeler */
  .card-body .row.text-center .col-3 {
    padding: 10px;
  }

  .table td,
  .table th {
    padding: 10px 8px;
    font-size: 0.9rem;
  }
}

/* ============================================
   TABLO SCROLL İNDİKATÖRÜ
   ============================================ */
@media (max-width: 768px) {
  .table-responsive::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .table-responsive:not(:hover)::after {
    opacity: 1;
  }

  .table-responsive {
    position: relative;
  }
}

/* ============================================
   UTILITY CLASSES FOR MOBILE
   ============================================ */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .show-mobile {
    display: block !important;
  }

  .text-mobile-center {
    text-align: center !important;
  }

  .mb-mobile-3 {
    margin-bottom: 1rem !important;
  }
}

@media (min-width: 769px) {
  .show-mobile {
    display: none !important;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Notlar alanı için özel scroll stili */
.notes-scroll-area {
  scrollbar-width: thin;
  scrollbar-color: #6c757d #f8f9fa;
}

.notes-scroll-area::-webkit-scrollbar {
  width: 6px;
}

.notes-scroll-area::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 10px;
}

.notes-scroll-area::-webkit-scrollbar-thumb {
  background: #6c757d;
  border-radius: 10px;
}

.notes-scroll-area::-webkit-scrollbar-thumb:hover {
  background: #495057;
}

/* Not kartları için animasyon */
.note-item {
  transition: all 0.3s ease;
}

.note-item:hover {
  transform: translateY(-1px);
}

/* Responsive tasarım için notlar alanı */
@media (max-width: 768px) {
  .notes-container-mobile {
    height: 300px !important;
    position: relative !important;
    top: 0 !important;
  }
} 
