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 #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #f8f9fa;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

/* Custom styles for Track4Me */
.navbar-brand {
  font-weight: bold;
}

.navbar-brand i {
  margin-right: 0.5rem;
}

.card {
  border-radius: 0.75rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
  border-radius: 0.75rem 0.75rem 0 0 !important;
  font-weight: 600;
}

.btn {
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

.form-control {
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.table {
  border-radius: 0.5rem;
  overflow: hidden;
}

.table th {
  background-color: #f8f9fa;
  border-top: none;
  font-weight: 600;
}

.badge {
  font-size: 0.75em;
  padding: 0.35em 0.65em;
}

.alert {
  border-radius: 0.5rem;
  border: none;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
}

.alert-info i {
  color: #0c5460;
}

/* Hero section styling */
.display-4 {
  font-weight: 700;
  color: #2c3e50;
}

.lead {
  color: #6c757d;
  font-size: 1.1rem;
}

/* Feature icons */
.fa-3x {
  margin-bottom: 1rem;
}

/* Tracker cards */
.tracker-card {
  transition: transform 0.2s ease-in-out;
}

.tracker-card:hover {
  transform: translateY(-5px);
}

/* Dashboard stats */
.stats-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.stats-card .card-body {
  padding: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
}

/* Welcome title responsive sizing */
.welcome-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
}

@media (min-width: 768px) {
  .welcome-title {
    font-size: 3rem;
  }
}

@media (min-width: 992px) {
  .welcome-title {
    font-size: 3.5rem;
  }
}

/* Custom color scheme */
.text-primary {
  color: #3498db !important;
}

.bg-primary {
  background-color: #3498db !important;
}

.btn-primary {
  background-color: #3498db;
  border-color: #3498db;
}

.btn-primary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

.btn-outline-primary {
  color: #3498db;
  border-color: #3498db;
}

.btn-outline-primary:hover {
  background-color: #3498db;
  border-color: #3498db;
}

/* Animation for loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Success/error message styling */
.message-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.message-error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}