/* ============================================
   MODERN HOME DASHBOARD STYLES
   ============================================ */

/* Dashboard Grid Layout */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Modern Card Design */
.modern-stat-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Modern Card Header with Gradient */
.modern-card-header {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  padding: 1.25rem 1.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.modern-card-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

  0%,
  100% {
    transform: translate(-50%, -50%);
  }

  50% {
    transform: translate(-30%, -30%);
  }
}

.modern-card-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

/* Card Body */
.modern-card-body {
  padding: 1.5rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1rem;
}

/* Individual Stat Item */
.stat-item {
  text-align: center;
  padding: 0.75rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.stat-item:hover::before {
  opacity: 1;
}

/* Stat Value */
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, currentColor 0%, currentColor 100%);
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
}

/* Currency Values - smaller font for better fit */
.stat-value.currency-value {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Stat Label */
.stat-label {
  font-size: 0.7rem;
  color: #6c757d;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* Color Variants for Stats */
.stat-item.stat-success .stat-value {
  color: #198754;
}

.stat-item.stat-warning .stat-value {
  color: #ffc107;
}

.stat-item.stat-info .stat-value {
  color: #0dcaf0;
}

.stat-item.stat-danger .stat-value {
  color: #dc3545;
}

.stat-item.stat-primary .stat-value {
  color: #0d6efd;
}

/* Two Column Stats (for cards with 2 stats) */
.stats-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Three Column Stats */
.stats-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Single Column Stats (full width) */
.stats-grid-single {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.stat-item-large {
  text-align: center;
  padding: 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  transition: all 0.3s ease;
}

.stat-item-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-item-large .stat-value {
  font-size: 1.25rem;
  white-space: nowrap;
}

.stat-item-large .stat-value.currency-value {
  font-size: 1rem;
  font-weight: 700;
}

.stat-item-large .stat-label {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-value.currency-value {
    font-size: 0.95rem;
  }

  .stat-item-large .stat-value {
    font-size: 1.1rem;
  }

  .stat-item-large .stat-value.currency-value {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-value {
    font-size: 1.1rem;
  }

  .stat-value.currency-value {
    font-size: 0.85rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

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

  .modern-card-body {
    padding: 1rem;
  }

  .stat-item {
    padding: 0.5rem;
  }

  .stat-item-large .stat-value {
    font-size: 0.95rem;
  }

  .stat-item-large .stat-value.currency-value {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .stats-grid-2col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stats-grid-3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* Icon Styling */
.stat-icon {
  font-size: 0.85rem;
  margin-right: 0.25rem;
  opacity: 0.8;
}

/* Page Title */
.dashboard-page-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #212529;
  letter-spacing: -0.5px;
}

.dashboard-page-title small {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 400;
  display: block;
  margin-top: 0.25rem;
}

/* Logo Styling */
.dashboard-logo {
  margin-bottom: 2rem;
  padding: 1rem;
}

.dashboard-logo img {
  max-width: 200px;
  height: auto;
  transition: transform 0.3s ease;
}

.dashboard-logo img:hover {
  transform: scale(1.05);
}
/* ============================================
   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;
  }
}

/* ============================================
   MODAL Z-INDEX DÜZELTMELERİ
   ============================================ */
/* Modal'ın her zaman karartının üstünde görünmesini sağla */
.modal {
  z-index: 1060 !important;
}

.modal-backdrop {
  z-index: 1050 !important;
}

.modal-dialog {
  z-index: 1065 !important;
  position: relative;
}

/* Modal açıkken overflow kısıtlamalarını kaldır */
body.modal-open .card,
body.modal-open .table-responsive {
  overflow: visible !important;
}

/* Modal içeriğinin mobilde düzgün görünmesi */
@media (max-width: 768px) {
  .modal-content {
    margin: 10px;
  }

  /* Modal'ın tam ekran merkezde görünmesi için */
  .modal-dialog-centered {
    min-height: calc(100% - 20px);
  }
}
/*
 * 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);
}

@media (max-width: 768px) {
  .notes-container-mobile {
    height: 300px !important;
    position: relative !important;
    top: 0 !important;
  }
}

/* ============================================
   DESKTOP TAM GENİŞLİK STİLLERİ
   ============================================ */

/* Tüm container'ları tam genişlik yap */
.container-fluid {
  max-width: 100% !important;
  width: 100% !important;
}

/* Kartları tam genişlik yap */
.card {
  width: 100%;
}

/* Tabloları dinamik genişlik yap */
.table-responsive {
  width: 100%;
}

.table-responsive .table {
  width: 100%;
}

/* Desktop için tablo ayarları */
@media (min-width: 1200px) {
  .container-fluid {
    padding-left: 30px;
    padding-right: 30px;
  }

  /* Tablo hücreleri yeterli alan kaplasın */
  .table th,
  .table td {
    white-space: nowrap;
  }

  /* Uzun içerik olan hücreler wrap yapabilir */
  .table td.text-wrap {
    white-space: normal;
    word-break: break-word;
  }
}

/* Orta ekran boyutları */
@media (min-width: 992px) and (max-width: 1199px) {
  .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Tablet için */
@media (min-width: 769px) and (max-width: 991px) {
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
}
