.sidebar {
  min-height: 100vh;
  background-color: #f8f9fa;
}

.nav-link.active {
  font-weight: bold;
  color: #0d6efd !important;
}

.card {
  margin-bottom: 20px;
}

.discount-badge {
  font-size: 0.8rem;
}

.content-section {
  display: none;
}


.file-input-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.file-input-wrapper input[type=file] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.import-export-buttons {
  display: flex;
  gap: 10px;
}

.text-success {
  color: #83e299 !important;
  font-weight: bold;
}

.text-danger {
  color: #dc3545 !important;
  font-weight: bold;
}

.bg-orange {
  background-color: #ff9800 !important;
}

.status-badge {
  padding: 0.5em 1em;
  border-radius: 1em;
  font-weight: 500;
}

#auth-container {
  background-color: #f8f9fa;
  display: none;
}

#auth-container .card {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.input-group-text {
  cursor: pointer;
}

/* Стили для поля ввода кода */
#verification-code {
  letter-spacing: 10px;
  font-size: 1.5rem;
  text-align: center;
  padding: 10px;
}

#auth-container,
#main-app-container {
  transition: opacity 0.5s ease;
}


/* 

*/

/* Стили для уровней скидок */
.discount-level-item {
  border-left: 4px solid #4154f1;
}

.discount-level-item .card-body {
  padding: 1rem;
}

.discount-level-item .form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.discount-level-item .form-control:read-only {
  background-color: #f8f9fa;
  border-color: #e9ecef;
}

/* Анимации */
.discount-level-item {
  transition: all 0.3s ease;
}

.discount-level-item:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Кнопки действий */
.discount-level-item .btn {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
}


/* 

*/
.metric-card {
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.metric-label {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 0;
}

.metric-change {
  font-size: 0.8rem;
  font-weight: 500;
}

.change-positive {
  color: #28a745;
}

.change-negative {
  color: #dc3545;
}

.chart-container {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  height: 300px;
}

.top-products-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 400px;
  overflow-y: auto;
}

.product-item {
  display: flex;
  justify-content: between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e9ecef;
}

.product-item:last-child {
  border-bottom: none;
}

.product-name {
  flex: 1;
  font-weight: 500;
}

.product-value {
  font-weight: 700;
  color: #495057;
}

.loading-spinner {
  display: none;
  text-align: center;
  padding: 40px;
}

.period-selector {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.card-header-custom {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px 10px 0 0 !important;
  padding: 15px 20px;
}