/* Mobile Optimizations for Dashboards and General Pages */

/* Dashboard Mobile Improvements */
@media (max-width: 768px) {
  /* Card padding reduction */
  .card-body {
    padding: 1rem !important;
  }
  
  /* Chart containers */
  canvas {
    max-height: 200px !important;
  }
  
  /* Statistics cards - stack vertically */
  .dashboard-stats .col-lg-3 {
    margin-bottom: 1rem;
  }
  
  /* Table responsive wrapper */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Button groups - full width on mobile */
  .btn-group-mobile {
    flex-direction: column;
  }
  
  .btn-group-mobile .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  /* Form inputs - better spacing */
  .form-control,
  .form-select {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Modal improvements */
  .modal-dialog {
    margin: 0.5rem;
  }
  
  .modal-content {
    border-radius: 0.5rem;
  }
  
  /* Navigation improvements */
  .navbar-collapse {
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
  
  /* Dashboard charts container */
  .chart-container {
    position: relative;
    height: 250px;
    width: 100%;
  }
  
  /* Hızlı erişim butonları */
  .quick-access .col-md-3 {
    margin-bottom: 0.75rem;
  }
  
  /* List items - better spacing */
  .list-group-item {
    padding: 0.75rem 0.5rem;
  }
  
  /* Card headers */
  .card-header h5 {
    font-size: 1rem;
  }
  
  /* Statistics numbers */
  .card-body h2 {
    font-size: 1.75rem;
  }
  
  /* Dark mode toggle button */
  .theme-toggle-btn {
    width: 38px !important;
    height: 38px !important;
  }
}

/* Tablet improvements */
@media (min-width: 769px) and (max-width: 992px) {
  .chart-container {
    height: 300px;
  }
  
  .card-body h2 {
    font-size: 2rem;
  }
}

/* Small mobile devices */
@media (max-width: 576px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .card-body {
    padding: 0.75rem !important;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Statistics cards */
  .card-body h2 {
    font-size: 1.5rem;
  }
  
  .card-body h6 {
    font-size: 0.85rem;
  }
  
  /* Chart containers */
  .chart-container {
    height: 200px;
  }
  
  /* Tables - scroll on small screens */
  .table {
    font-size: 0.85rem;
  }
  
  .table th,
  .table td {
    padding: 0.5rem 0.25rem;
  }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn,
  .nav-link,
  .dropdown-item {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Remove hover effects on touch devices */
  .card:hover {
    transform: none;
  }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .chart-container {
    height: 200px;
  }
  
  .navbar {
    min-height: 70px;
  }
  
  .logo-img {
    height: 70px;
    width: 70px;
  }
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  .dropdown,
  footer {
    display: none !important;
  }
  
  .card {
    page-break-inside: avoid;
  }
}

