/* Root Variables for Blue Admin Theme */
:root {
  /* Blue Admin Theme Colors */
  --forrera-primary: #2575fc;        /* Main blue from admin */
  --forrera-secondary: #4e89e8;      /* Light blue accent */
  --forrera-tertiary: #6a9eff;       /* Lighter blue accent */
  --forrera-dark: #2C3E50;           /* Dark text */
  --forrera-light: #F8F9FA;          /* Light background */
  
  /* Legacy compatibility */
  --primary-color: #2575fc;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  
  /* Updated admin/merchant colors */
  --admin-color: #2575fc;
  --merchant-color: #4e89e8;
  
  --border-radius: 12px;
  --box-shadow: 0 4px 6px rgba(37, 117, 252, 0.1);
  --box-shadow-hover: 0 8px 15px rgba(37, 117, 252, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  background-attachment: fixed;
  color: #2c3e50;
}

/* Hero Section - Blue Theme */
.hero-section {
  background: linear-gradient(135deg, var(--forrera-primary) 0%, var(--forrera-secondary) 100%);
  color: white;
  padding: 4rem 0;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(37, 117, 252, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center no-repeat;
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
}

.hero-content a {
  color: var(--forrera-tertiary);
  transition: var(--transition);
}

.hero-content a:hover {
  color: #fff;
  text-decoration: underline !important;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-delay {
  animation: fadeIn 0.6s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
  animation: fadeIn 0.6s ease-out 0.4s both;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

.animate-slide-up-delay {
  animation: slideUp 0.6s ease-out 0.3s both;
}

/* Card Styles */
.card {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: none;
  background: white;
}

.card:hover {
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-2px);
}

/* Icon Box - Blue Gradient */
.icon-box {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.bg-forrera-gradient {
  background: linear-gradient(135deg, var(--forrera-primary) 0%, var(--forrera-secondary) 100%);
}

/* Access Cards */
.access-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: var(--transition);
  border: 2px solid transparent;
  height: 100%;
}

.access-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(37, 117, 252, 0.15);
}

.admin-card:hover {
  border-color: var(--forrera-primary);
  background: linear-gradient(145deg, #ffffff 0%, #e3f2fd 100%);
}

.merchant-card:hover {
  border-color: var(--forrera-secondary);
  background: linear-gradient(145deg, #ffffff 0%, #e8f4ff 100%);
}

.access-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: #2c3e50;
}

.access-card-header svg {
  color: var(--forrera-primary);
}

.merchant-card .access-card-header svg {
  color: var(--forrera-secondary);
}

.access-card-header h5 {
  font-weight: 600;
  font-size: 1.1rem;
}

.access-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Button Styles - Blue Theme */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  box-shadow: 0 2px 4px rgba(37, 117, 252, 0.15);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(37, 117, 252, 0.25);
}

.btn:active {
  transform: translateY(0);
}

.btn-admin {
  background: linear-gradient(135deg, var(--forrera-primary) 0%, #1e5fd1 100%);
  color: white;
}

.btn-admin:hover {
  background: linear-gradient(135deg, #1e5fd1 0%, var(--forrera-primary) 100%);
  color: white;
}

.btn-outline-admin {
  background: transparent;
  color: var(--forrera-primary);
  border: 2px solid var(--forrera-primary);
  box-shadow: none;
}

.btn-outline-admin:hover {
  background: var(--forrera-primary);
  color: white;
}

.btn-merchant {
  background: linear-gradient(135deg, var(--forrera-secondary) 0%, #3a75d8 100%);
  color: white;
}

.btn-merchant:hover {
  background: linear-gradient(135deg, #3a75d8 0%, var(--forrera-secondary) 100%);
  color: white;
}

.btn-outline-merchant {
  background: transparent;
  color: var(--forrera-secondary);
  border: 2px solid var(--forrera-secondary);
  box-shadow: none;
}

.btn-outline-merchant:hover {
  background: var(--forrera-secondary);
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color) 0%, #218838 100%);
}

.btn-success:hover {
  background: linear-gradient(135deg, #218838 0%, var(--success-color) 100%);
}

/* Form Controls */
.form-control {
  border-radius: 8px;
  border: 2px solid #e0e6ed;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--forrera-primary);
  box-shadow: 0 0 0 0.2rem rgba(37, 117, 252, 0.15);
}

.input-group-lg .form-control {
  font-size: 1.1rem;
}

/* Notification Form */
.notification-form {
  position: relative;
}

.notification-form .input-group {
  box-shadow: 0 4px 12px rgba(37, 117, 252, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.notification-form .form-control {
  border: none;
  border-radius: 12px 0 0 12px;
}

.notification-form .btn {
  border-radius: 0 12px 12px 0;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Footer */
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
  background: white;
  box-shadow: 0 -2px 10px rgba(37, 117, 252, 0.08);
}

/* Navigation - Blue Theme */
.navbar {
  box-shadow: 0 2px 8px rgba(37, 117, 252, 0.1);
  background: white !important;
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--forrera-primary) !important;
  transition: var(--transition);
}

.navbar-brand:hover {
  color: var(--forrera-secondary) !important;
  transform: scale(1.05);
}

.nav-link {
  transition: var(--transition);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--forrera-primary), var(--forrera-secondary));
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--forrera-primary) !important;
}

/* Links */
a {
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  text-decoration: none;
}

/* Alerts */
.alert {
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 117, 252, 0.15);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -100%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Spinner */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

/* Scrollbar Styling - Blue Theme */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--forrera-primary), var(--forrera-secondary));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--forrera-secondary), var(--forrera-primary));
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .access-card {
    margin-bottom: 1rem;
  }

  .icon-box {
    width: 40px;
    height: 40px;
  }
}

/* Loading State */
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Focus Visible for Accessibility */
*:focus-visible {
  outline: 2px solid var(--forrera-primary);
  outline-offset: 2px;
}

/* Privacy Page Enhancements */
.privacy-section h3 {
  color: #2c3e50;
  border-bottom: 2px solid var(--forrera-primary);
  padding-bottom: 0.75rem;
}

.privacy-section ul li {
  padding-left: 0.5rem;
}

.privacy-content p {
  line-height: 1.8;
  color: #555;
}
