/* Everse Inventory Management - Custom Styles */

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Performance optimizations */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* KPI Cards */
.kpi-card {
  background: var(--primary-gradient);
  color: white;
  padding: 25px;
  border-radius: 12px;
  margin: 10px 0;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  will-change: transform;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.kpi-card:active {
  transform: translateY(-1px);
}

.kpi-card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 10px 0;
}

.kpi-card p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

.kpi-card.alert-low {
  background: var(--danger-gradient);
}

.kpi-card.success {
  background: var(--success-gradient);
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table tbody tr {
  transition: background-color 0.15s ease;
}

.table th {
  background-color: #667eea;
  color: white;
  font-weight: 600;
  padding: 12px;
  text-align: left;
  border: none;
}

.table td {
  padding: 12px;
  border-bottom: 1px solid #e9ecef;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* Warehouse Select */
.warehouse-select {
  margin: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* Forms */
.form-control, .form-select {
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 10px;
  transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn {
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Charts Container */
.chart-container {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Loading Spinner */
.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
}

/* Badges */
.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 500;
}

/* Search/Filter Bar */
.filter-bar {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Card */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.card-header {
  background: var(--primary-gradient);
  color: white;
  font-weight: 600;
  border-radius: 12px 12px 0 0 !important;
  border: none;
  padding: 15px 20px;
}

/* Pagination */
.pagination {
  margin-top: 20px;
}

.page-link {
  color: #667eea;
  border-color: #ddd;
}

.page-link:hover {
  background-color: #667eea;
  border-color: #667eea;
  color: white;
}

.page-item.active .page-link {
  background-color: #667eea;
  border-color: #667eea;
}

/* Status Badges */
.status-processing {
  background-color: #ffc107;
  color: #000;
}

.status-fulfilled {
  background-color: #28a745;
  color: white;
}

.status-canceled {
  background-color: #dc3545;
  color: white;
}

/* Quick navigation improvements */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
  transition: background-color 0.2s ease, color 0.2s ease;
  border-radius: 4px;
  margin: 0 2px;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Loading states */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Card improvements */
.card {
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Button improvements */
.btn {
  transition: all 0.2s ease;
  will-change: transform;
}

.btn:active {
  transform: scale(0.98);
}

/* Form improvements */
.form-control:focus, .form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
  .kpi-card h3 {
    font-size: 2rem;
  }
  
  .table {
    font-size: 0.875rem;
  }
  
  .table th, .table td {
    padding: 8px;
  }
  
  .filter-bar .row {
    margin-bottom: 10px;
  }
}

/* Toast Container */
.toast-container {
  z-index: 9999;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

