/* Custom styles for Aps-TradeTr */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --info-color: #0dcaf0;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}

body {
  background-color: #f5f7fb;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.3s ease-in-out;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-radius: 10px 10px 0 0 !important;
}

.btn {
  border-radius: 6px;
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
}

.table {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.table th {
  font-weight: 600;
  background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.form-control, .form-select {
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}

.form-control:focus, .form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.alert {
  border-radius: 8px;
}

.pagination .page-link {
  border-radius: 6px;
  margin: 0 2px;
  color: var(--primary-color);
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.sidebar {
  background-color: #fff;
  border-right: 1px solid #e9ecef;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  z-index: 1000;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  padding-top: 56px;
}

.main-content {
  margin-left: 250px;
  padding-top: 56px;
}

.nav-pills .nav-link {
  color: var(--secondary-color);
  border-radius: 0;
  padding: 0.75rem 1.5rem;
  margin: 0;
}

.nav-pills .nav-link.active {
  background-color: var(--primary-color);
  color: #fff;
}

.stat-card {
  border-left: 4px solid var(--primary-color);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

.quick-action-btn {
  transition: all 0.3s ease;
}

.quick-action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-bar {
  background-color: #f1f3f9;
  border: none;
  border-radius: 30px;
  padding: 0.5rem 1rem;
}

.search-bar:focus {
  background-color: #fff;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .sidebar {
    width: 70px;
  }
  
  .sidebar .nav-link span {
    display: none;
  }
  
  .sidebar .nav-link i {
    margin-right: 0;
  }
  
  .main-content {
    margin-left: 70px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 0;
    overflow: hidden;
  }
  
  .main-content {
    margin-left: 0;
  }
}