html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Mobile-specific improvements */
@media (max-width: 767.98px) {
  /* Better touch targets */
  .btn {
    min-height: 44px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .btn-sm {
    min-height: 36px;
    padding: 0.375rem 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Form inputs */
  .form-control, .form-select {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Cards on mobile */
  .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
  }
  
  /* Better spacing */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Modal improvements */
  .modal-fullscreen-sm-down .modal-header {
    padding: 1rem;
  }
  
  .modal-fullscreen-sm-down .modal-body {
    padding: 1rem;
  }
  
  .modal-fullscreen-sm-down .modal-footer {
    padding: 1rem;
  }
  
  /* Card text improvements */
  .text-break {
    word-break: break-word;
  }
}

/* Utility classes */
.gap-2 {
  gap: 0.5rem!important;
}

/* Improved footer spacing on mobile */
@media (max-width: 575.98px) {
  body {
    margin-bottom: 80px;
  }
  
  .footer {
    padding: 1rem 0;
  }
}

.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;
}

/* Lighter placeholder text */
.form-control::placeholder {
  color: #b0b0b0;
  opacity: 0.7;
}

/* Enhanced border for form controls */
.form-control.border-2 {
  border-width: 2px !important;
  border-color: #b1b4b8 !important;
}

.form-control.border-2:focus {
  border-color: #86b7fe !important;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Delete button styling */
.delete-btn {
  padding: 0.25rem 0.5rem;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s, border-color 0.2s;
}

.delete-btn:hover {
  opacity: 1;
  color: var(--bs-danger);
  border-color: var(--bs-danger);
}

/* Ensure cards have relative positioning for absolute delete button */
.card {
  position: relative;
}

/* Mobile-specific delete button adjustments */
@media (max-width: 767.98px) {
  .delete-btn {
    min-height: 36px;
    min-width: 36px;
  }
  
  /* Ensure card title doesn't overlap with delete button */
  .card .card-title {
    padding-right: 3rem !important;
  }
}

/* Date and time display styling */
.utc-time {
  display: inline-block;
  white-space: nowrap;
}

/* Desktop table view - date and time on separate lines */
table .date-line {
  display: block;
  line-height: 1.2;
}

table .time-line {
  display: block;
  font-size: 0.875em;
  color: #6c757d;
  line-height: 1.2;
  margin-top: 0.5rem;
}