/* Optimized Font Sizes - Smaller and more readable */
html {
  font-size: 13px; /* Reduced from 14px */
}

@media (min-width: 768px) {
  html {
    font-size: 14px; /* Reduced from 16px */
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 15px; /* Maximum font size for large screens */
  }
}

/* Body text optimization */
body {
  font-size: 0.9rem; /* Slightly smaller body text */
  line-height: 1.5; /* Better readability */
}

/* Heading optimizations */
h1 {
  font-size: 1.8rem; /* Reduced from default 2.5rem */
}

h2 {
  font-size: 1.5rem; /* Reduced from default 2rem */
}

h3 {
  font-size: 1.3rem; /* Reduced from default 1.75rem */
}

h4 {
  font-size: 1.15rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.9rem;
}

/* Card title optimization */
.card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Table text optimization */
.table {
  font-size: 0.875rem; /* 14px equivalent */
}

.table th {
  font-weight: 600;
}

/* Button text */
.btn {
  font-size: 0.875rem;
}

.btn-lg {
  font-size: 1rem;
}

.btn-sm {
  font-size: 0.8rem;
}

/* Badge optimization */
.badge {
  font-size: 0.75rem;
  font-weight: 500;
}

/* Navigation optimization */
.navbar {
  font-size: 0.9rem;
}

/* Form labels */
.form-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.form-control, .form-select {
  font-size: 0.875rem;
}

.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;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}