html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
}

.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%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Related Products Styles */
.product-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border: 1px solid #e9ecef;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-image-container {
  position: relative;
  overflow: hidden;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-card .card-title {
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.product-card .card-text {
  font-size: 0.85rem;
  line-height: 1.4;
}

.product-card .badge {
  font-size: 0.7rem;
}

.product-card small {
  font-size: 0.75rem;
}

/* Add to Cart Button Styles */
.btn-outline-primary.btn-sm {
  border-width: 1px;
  font-size: 0.8rem;
  padding: 0.375rem 0.75rem;
}

.btn-outline-success.btn-sm {
  border-width: 1px;
  font-size: 0.8rem;
  padding: 0.375rem 0.75rem;
}

.btn-outline-primary.btn-sm:hover,
.btn-outline-success.btn-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Login to Add to Cart Button Styles */
.btn-outline-primary.btn-sm[title*="Login"],
.btn-outline-success.btn-sm[title*="Login"] {
  border-color: #6c757d;
  color: #6c757d;
}

.btn-outline-primary.btn-sm[title*="Login"]:hover,
.btn-outline-success.btn-sm[title*="Login"]:hover {
  border-color: #495057;
  background-color: #495057;
  color: white;
}

/* Enhanced Orders Page Styles */
.orders-filters-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
}

.orders-filters-card .card-header {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border-bottom: none;
}

.quick-filter-pills .btn {
    transition: all 0.2s ease-in-out;
    border-radius: 20px;
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
}

.quick-filter-pills .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.orders-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.orders-table thead th {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.orders-table tbody tr {
    transition: background-color 0.2s ease-in-out;
}

.orders-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

.orders-table .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    color: #495057;
    transition: all 0.2s ease-in-out;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.export-refresh-buttons .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.export-refresh-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-summary {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.filter-summary .badge {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .orders-filters-card .row {
        margin: 0;
    }
    
    .orders-filters-card .col-md-2,
    .orders-filters-card .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .quick-filter-pills {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-filter-pills .btn {
        margin-bottom: 0.5rem;
        border-radius: 8px;
    }
}

.badge-hold {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-success-rgb), var(--bs-bg-opacity)) !important;
}

.text-muted {
    color: var(--bs-primary-color) !important;
}

.badge-info {
    background-color: slateblue;
}

.badge-danger {
    background-color: red;
}

.badge-warning {
    background-color: yellowgreen;
}

.badge-success {
    background-color: yellowgreen;
}

.badge-primary {
    background-color: navy;
}
.badge-secondary {
    background-color: darkcyan;
}

.bg-primary {
    background-color: rgb(47 32 112) !important;    
}
