/* ===== Labels Universal Styles ===== */
/* Shared styles used across all labels pages */

/* ===== Section Headers ===== */
.section-header {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

html.dark-mode .section-title {
  color: #ecf0f1;
}

.section-subtitle {
  font-size: 1rem;
  color: #546e7a;
  margin: 0;
  font-weight: 400;
}

html.dark-mode .section-subtitle {
  color: #95a5a6;
}

/* ===== Navigation Tabs ===== */
.inner-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

html.dark-mode .inner-tabs {
  background: #2a2a2a;
}

/* Tab Button - Flat color secondary UI control */
.tab-button {
  flex: 1;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Sora', system-ui, sans-serif;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-button:hover {
  background: white;
  color: #4a6e1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-button.active {
  background: linear-gradient(135deg, #8bc34a, #7ab82d);
  color: white;
  box-shadow: 0 3px 10px rgba(139, 195, 74, 0.3);
  transform: translateY(-1px);
}

.tab-button.active:hover {
  box-shadow: 0 4px 12px rgba(139, 195, 74, 0.4);
}

html.dark-mode .tab-button {
  background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
  color: #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html.dark-mode .tab-button:hover {
  background: #1a1a1a;
  color: #a5d461;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

html.dark-mode .tab-button.active {
  background: linear-gradient(135deg, #8bc34a, #7ab82d);
  color: white;
  box-shadow: 0 3px 10px rgba(139, 195, 74, 0.3);
}

html.dark-mode .tab-button.active:hover {
  box-shadow: 0 4px 12px rgba(139, 195, 74, 0.4);
}

/* ===== Sales Data Error Card ===== */
.sales-data-error {
  margin: 2rem 0;
  display: none;
}

.error-card {
  background: #fef2f2;
  border: 2px solid #fecaca;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

html.dark-mode .error-card {
  background: #2a1f1f;
  border-color: #7f1d1d;
}

.error-header {
  margin-bottom: 1rem;
}

.error-header i {
  font-size: 3rem;
  color: #ef4444;
  margin-bottom: 0.5rem;
}

.error-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #dc2626;
  margin: 0;
}

html.dark-mode .error-header h3 {
  color: #f87171;
}

.error-body p {
  color: #6b7280;
  font-size: 1rem;
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
}

html.dark-mode .error-body p {
  color: #9ca3af;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.error-actions .action-btn {
  min-width: 140px;
}

/* ===== Region Selection ===== */
.region-toggle {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.region-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.85rem 1.25rem;
  background: white;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  transition: all 0.2s ease;
  flex: 1;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.region-option:hover {
  background: #f9fafb;
  border-color: #8bc34a;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(139, 195, 74, 0.15);
}

.region-option:active {
  transform: scale(0.98);
}

.region-option:has(input:checked) {
  background: linear-gradient(135deg, #8bc34a, #7ab82d);
  color: white;
  border-color: #7ab82d;
  box-shadow: 0 4px 12px rgba(139, 195, 74, 0.4);
  transform: translateY(0);
}

.region-option:has(input:checked) .region-label {
  font-weight: 700;
}

html.dark-mode .region-option {
  background: #1e1e1e;
  border-color: #4b5563;
  color: #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

html.dark-mode .region-option:hover {
  background: #2a2a2a;
  border-color: #8bc34a;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(139, 195, 74, 0.2);
}

html.dark-mode .region-option:has(input:checked) {
  background: linear-gradient(135deg, #8bc34a, #7ab82d);
  color: white;
  border-color: #8bc34a;
  box-shadow: 0 4px 12px rgba(139, 195, 74, 0.5);
  transform: translateY(0);
}

.region-radio {
  display: none;
}

.region-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
  user-select: none;
}

.region-label i {
  font-size: 1.1rem;
}

.region-help {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-style: italic;
}

html.dark-mode .region-help {
  color: #9ca3af;
}
/* ===== C-Select System (from modern-ui.css for JS compatibility) ===== */
.c-select { position: relative; display: inline-block; width: 100%; }

/* Modern table styles are now in components/table.css */

/* ===== Status Badges (for JS-generated status indicators) ===== */
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.status-badge.warning {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.2);
}

.status-badge.danger {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* ===== Button Groups and Icons (for JS-generated action buttons) ===== */
.btn-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-icon {
    padding: 6px 8px;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon.primary {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.btn-icon.primary:hover {
    background: rgba(52, 152, 219, 0.2);
}

.btn-icon.info {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.btn-icon.info:hover {
    background: rgba(52, 152, 219, 0.2);
}

.btn-icon.danger {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.btn-icon.danger:hover {
    background: rgba(231, 76, 60, 0.2);
}

/* ===== Pagination (for JS-generated pagination controls) ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.page-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.page-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.page-ellipsis {
    padding: 8px 4px;
    color: #6c757d;
}

html.dark-mode .page-btn {
    background: #2e2e2e;
    color: #ecf0f1;
    border-color: #495057;
}

html.dark-mode .page-btn:hover {
    background: #3b3b3b;
    border-color: #6c757d;
}

html.dark-mode .page-btn.active {
    background: #007bff;
}
