html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgb(47,109,201);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Custom Primary Color Override */
:root {
  --bs-primary: rgb(47,109,201);
  --bs-primary-rgb: 47, 109, 201;
}

/* Landing Page Styles */
.hero-section {
    background: linear-gradient(135deg, rgb(47,109,201) 0%, rgb(35, 85, 165) 100%);
    min-height: 70vh;
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.benefit-item {
    transition: transform 0.2s ease;
}

.benefit-item:hover {
    transform: translateX(10px);
}

.hero-image-placeholder,
.benefits-image-placeholder {
    transition: transform 0.3s ease;
}

.hero-image-placeholder:hover,
.benefits-image-placeholder:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

.btn-primary {
  background-color: rgb(47,109,201);
  border-color: rgb(47,109,201);
}

.btn-primary:hover {
  background-color: rgb(35, 85, 165);
  border-color: rgb(35, 85, 165);
}

.btn-primary:focus {
  background-color: rgb(35, 85, 165);
  border-color: rgb(35, 85, 165);
  box-shadow: 0 0 0 0.2rem rgba(47, 109, 201, 0.5);
}

.btn-primary:active {
  background-color: rgb(35, 85, 165);
  border-color: rgb(35, 85, 165);
}

.bg-primary {
  background-color: rgb(47,109,201) !important;
}

.text-primary {
  color: rgb(47,109,201) !important;
}

.border-primary {
  border-color: rgb(47,109,201) !important;
}

.badge.bg-primary {
  background-color: rgb(47,109,201) !important;
}

.alert-primary {
  color: #084298;
  background-color: rgba(47, 109, 201, 0.1);
  border-color: rgba(47, 109, 201, 0.2);
}

.navbar-brand {
  color: rgb(47,109,201) !important;
}

.nav-link.active {
  color: rgb(47,109,201) !important;
}

.nav-link:hover {
  color: rgb(47,109,201) !important;
}

/* Changelog Modal Styles */
#changelogModal .modal-dialog {
  max-width: 800px;
}

.changelog-section {
  border-left: 3px solid #dee2e6;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.changelog-section h5 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.changelog-section ul li {
  padding: 0.25rem 0;
  border-bottom: 1px solid #f8f9fa;
}

.changelog-section ul li:last-child {
  border-bottom: none;
}

.version-header {
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 1rem;
}

.version-header h4 {
  font-weight: 700;
}

#version:hover {
  color: rgb(47,109,201) !important;
  transition: color 0.2s ease;
}

/* Complete Changelog Styles */
.changelog-history {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.version-entry {
  position: relative;
  padding: 1.5rem;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.version-entry:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.version-entry.current-version {
  border-color: rgb(47,109,201);
  background: linear-gradient(135deg, rgba(47,109,201,0.05) 0%, rgba(47,109,201,0.02) 100%);
  box-shadow: 0 4px 12px rgba(47,109,201,0.2);
}

.version-entry.current-version .version-header {
  border-bottom-color: rgb(47,109,201);
}

.version-entry:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 1rem;
  background: linear-gradient(to bottom, #dee2e6, transparent);
}

.changelog-history::-webkit-scrollbar {
  width: 6px;
}

.changelog-history::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.changelog-history::-webkit-scrollbar-thumb {
  background: rgb(47,109,201);
  border-radius: 3px;
}

.changelog-history::-webkit-scrollbar-thumb:hover {
  background: rgba(47,109,201,0.8);
}