/* Professional Light Theme - SceneIQ Rewards App */

:root {
  --primary-color: #0d6efd;
  --primary-light: #e6f0ff;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --light-bg: #f8f9fa;
  --lightest-bg: #ffffff;
  --dark-text: #212529;
  --medium-text: #495057;
  --light-text: #6c757d;
  --border-light: #dee2e6;
  --border-medium: #ced4da;
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.1);
}

/* Base styles */
body {
  background-color: #f5f7fa;
  color: var(--dark-text);
}

/* Header & Navigation */
header {
  box-shadow: var(--shadow-sm);
}

.navbar {
  background-color: var(--lightest-bg) !important;
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  color: var(--dark-text) !important;
  font-weight: 600;
}

.nav-link {
  color: var(--medium-text) !important;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.dropdown-menu {
  box-shadow: var(--shadow-md);
  border: none;
}

/* Sections */
section {
  padding: 4rem 0;
}

/* Cards */
.card {
  background-color: var(--lightest-bg) !important;
  border: none !important;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  background-color: var(--lightest-bg) !important;
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
  color: var(--dark-text) !important;
}

.card-title {
  color: var(--dark-text);
  font-weight: 600;
}

.card-body {
  color: var(--medium-text);
}

/* Tables */
table {
  background-color: var(--lightest-bg) !important;
  color: var(--dark-text) !important;
}

.table thead th {
  background-color: var(--light-bg) !important;
  color: var(--dark-text) !important;
  font-weight: 600;
  border-bottom-width: 1px !important;
}

.table td {
  vertical-align: middle !important;
  color: var(--medium-text) !important;
}

.table-light {
  --bs-table-bg: var(--lightest-bg);
  --bs-table-striped-bg: var(--light-bg);
  --bs-table-striped-color: var(--dark-text);
  --bs-table-active-bg: var(--light-bg);
  --bs-table-active-color: var(--dark-text);
  --bs-table-hover-bg: #f5f7fa;
  --bs-table-hover-color: var(--dark-text);
}

/* Forms */
.form-control, .form-select {
  border: 1px solid var(--border-medium);
  color: var(--dark-text);
  background-color: var(--lightest-bg);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
  background-color: var(--lightest-bg) !important;
  color: var(--dark-text) !important;
}

.form-label {
  font-weight: 500;
  color: var(--medium-text);
}

/* Buttons */
.btn {
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--lightest-bg);
}

.btn-light {
  background-color: var(--lightest-bg);
  border-color: var(--border-light);
  color: var(--medium-text);
}

/* Custom badges and indicators */
.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
}

/* Footer */
footer {
  background-color: var(--light-bg) !important;
  color: var(--medium-text) !important;
  border-top: 1px solid var(--border-light);
}

footer h5 {
  color: var(--dark-text);
  font-weight: 600;
}

/* Hero section */
.hero-section {
  background-color: var(--lightest-bg) !important;
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(233, 236, 239, 0.4) 0%, rgba(233, 236, 239, 0) 100%);
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

/* Stats and metrics */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  color: var(--dark-text);
  font-weight: 700;
}

/* Icons */
.bi, .fas, .far, .fab {
  line-height: 1;
}

/* Membership tier styles */
.text-bronze {
  color: #cd7f32;
  font-weight: 600;
}

.text-silver {
  color: #a8a9ad;
  font-weight: 600;
}

.text-gold {
  color: #d4af37;
  font-weight: 600;
}

.text-platinum {
  color: #8f9190;
  font-weight: 600;
}

/* Status badges */
.badge.bg-success {
  background-color: var(--success-color) !important;
}

/* Alerts */
.alert {
  border: none;
  box-shadow: var(--shadow-sm);
}

/* QR code container */
#qr-reader {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Custom accent sections */
.bg-primary-subtle {
  background-color: var(--primary-light) !important;
}

/* Chart backgrounds */
canvas {
  background-color: var(--lightest-bg) !important;
}

/* List groups */
.list-group-item {
  border-color: var(--border-light) !important;
  background-color: var(--lightest-bg) !important;
  color: var(--medium-text) !important;
}

/* Text emphasis */
.text-primary {
  color: var(--primary-color) !important;
}

.text-muted {
  color: var(--light-text) !important;
}

/* Special sections */
.feature-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Utility classes */
.rounded-4 {
  border-radius: 1rem !important;
}

.border-0 {
  border: none !important;
}

/* Fix any dark text on dark backgrounds */
.bg-primary .text-dark {
  color: var(--lightest-bg) !important;
}

.bg-success .text-dark {
  color: var(--lightest-bg) !important;
}

/* Analytics dashboard custom styles */
.analytics-dashboard .card {
  margin-bottom: 1.5rem;
}

.analytics-dashboard .card-header {
  padding: 1.25rem;
}

/* Campaign cards */
.campaign-card {
  transition: transform 0.2s ease;
}

.campaign-card:hover {
  transform: translateY(-5px);
}

/* Progress bars */
.progress {
  background-color: var(--light-bg);
  height: 0.5rem;
  border-radius: 1rem;
}

.progress-bar {
  background-color: var(--primary-color);
}

/* Make sure form backgrounds are white */
form {
  background-color: var(--lightest-bg) !important;
}

/* Make sure QR code display has white background */
#qr-code-display {
  background-color: var(--lightest-bg) !important;
}

/* Profile and user data cards */
.profile-card {
  background-color: var(--lightest-bg);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Data visualizations container */
.chart-container {
  background-color: var(--lightest-bg);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
}

/* Recommendations dashboard */
.recommendation-item {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
  background-color: var(--secondary-color);
  border-radius: 10px;
}

/* Back to top button */
#back-to-top {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-md);
}

/* Input groups */
.input-group-text {
  background-color: var(--light-bg);
  border-color: var(--border-medium);
  color: var(--medium-text);
}

/* Fix dark text on primary buttons */
.btn-primary {
  color: white !important;
}

/* Modal styling */
.modal-content {
  border: none;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--border-light);
}

.modal-footer {
  border-top: 1px solid var(--border-light);
}