html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Mobile-friendly styles for Sevkiyat page */
@media (max-width: 767.98px) {
  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .card-header h5 {
    font-size: 1.1rem;
  }
  
  .table-responsive {
    font-size: 0.9rem;
  }
  
  .btn-group-vertical .btn {
    margin-bottom: 2px;
  }
  
  .pagination {
    font-size: 0.9rem;
  }
  
  .pagination .page-link {
    padding: 0.375rem 0.5rem;
  }
  
  .badge {
    font-size: 0.75rem;
  }
  
  .form-label {
    font-size: 0.9rem;
    font-weight: 600;
  }
  
  .form-control, .form-select {
    font-size: 0.9rem;
  }
}

/* Responsive table improvements */
@media (max-width: 575.98px) {
  .table th, .table td {
    padding: 0.5rem 0.25rem;
  }
  
  .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .card-body {
    padding: 1rem 0.75rem;
  }
  
  .card-header {
    padding: 0.75rem;
  }
}

/* Quick photo modal mobile improvements */
@media (max-width: 767.98px) {
  .quick-photo-card {
    margin-bottom: 1rem;
  }
  
  .quick-photo-content {
    padding: 1rem;
  }
  
  .quick-photo-title {
    font-size: 1rem;
  }
  
  .quick-photo-icon {
    font-size: 2rem;
  }
}

/* Pagination mobile improvements */
@media (max-width: 575.98px) {
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .pagination .page-item {
    margin: 2px;
  }
  
  .pagination .page-link {
    min-width: 40px;
    text-align: center;
  }
}

/* Search form mobile improvements */
@media (max-width: 767.98px) {
  .search-form .col-12 {
    margin-bottom: 1rem;
  }
  
  .search-form .btn {
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* Table header mobile improvements */
@media (max-width: 767.98px) {
  .table thead th {
    font-size: 0.8rem;
    padding: 0.5rem 0.25rem;
  }
  
  .table tbody td {
    font-size: 0.85rem;
    padding: 0.5rem 0.25rem;
  }
}

/* Button group mobile improvements */
@media (max-width: 767.98px) {
  .btn-group-vertical {
    width: 100%;
  }
  
  .btn-group-vertical .btn {
    width: 100%;
    margin-bottom: 0.25rem;
  }
}

/* Card mobile improvements */
@media (max-width: 767.98px) {
  .card {
    margin-bottom: 1rem;
  }
  
  .card-header {
    padding: 0.75rem;
  }
  
  .card-body {
    padding: 1rem 0.75rem;
  }
}

/* Quick photo card styles */
.quick-photo-card {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.quick-photo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.quick-photo-card:active {
  transform: translateY(-2px);
}

.quick-photo-content {
  z-index: 2;
  position: relative;
}

.quick-photo-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.quick-photo-title {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Mobile quick photo card improvements */
@media (max-width: 767.98px) {
  .quick-photo-card {
    min-height: 120px;
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .quick-photo-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }
  
  .quick-photo-title {
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .quick-photo-card {
    min-height: 100px;
    padding: 0.75rem;
  }
  
  .quick-photo-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .quick-photo-title {
    font-size: 0.9rem;
  }
}

/* Photo taken badge styles */
.photo-taken-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #28a745;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive modal improvements */
@media (max-width: 767.98px) {
  .modal-dialog {
    margin: 0.5rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .modal-footer {
    padding: 0.75rem;
  }
  
  .modal-footer .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

/* Table mobile improvements */
@media (max-width: 767.98px) {
  .table-responsive {
    border: none;
  }
  
  .table {
    margin-bottom: 0;
  }
  
  .table thead {
    display: none;
  }
  
  .table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .table tbody td {
    display: block;
    text-align: left;
    padding: 0.5rem 0;
    border: none;
    position: relative;
    padding-left: 50%;
  }
  
  .table tbody td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 45%;
    font-weight: 600;
    color: #495057;
    font-size: 0.8rem;
  }
  
  .table tbody td:first-child {
    padding-top: 0;
  }
  
  .table tbody td:last-child {
    padding-bottom: 0;
  }
}