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;
  cursor: pointer;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Form Layout Styles */
.form-label {
    display: inline-block;
    width: 150px;
    font-weight: 500;
    margin-right: 15px;
    margin-bottom: 0.5rem;
    vertical-align: top;
}

.mb-3 {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem !important;
    flex-wrap: wrap;
    gap: 0 15px;
}

.mb-3 > .form-control,
.mb-3 > .form-select,
.mb-3 > select {
    flex: 1;
    min-width: 250px;
}

.mb-3 > .form-check {
    margin-left: 165px;
    margin-bottom: 0;
}

/* Custom input width classes */
.input-half-width {
    max-width: 50%;
}

.input-quarter-width {
    max-width: 25%;
}

.input-full-width {
    max-width: 100%;
}

.input-half-width > .form-control,
.input-half-width > .form-select,
.input-half-width > select {
    min-width: 200px;
}

.input-quarter-width > .form-control,
.input-quarter-width > .form-select,
.input-quarter-width > select {
    min-width: 100px;
}

.input-full-width > .form-control,
.input-full-width > .form-select,
.input-full-width > select {
    flex: 1;
}

/* Aligned form groups with labels on left */
.form-group-horizontal {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 15px;
}

.form-group-horizontal .form-label {
    margin: 0 0 0.5rem 0;
    min-width: 150px;
}

.form-group-horizontal .form-control,
.form-group-horizontal .form-select,
.form-group-horizontal select {
    flex: 1;
    min-width: 250px;
}

/* Form validation messages */
.text-danger {
    display: block;
    margin-left: 165px;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.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;
}

:root{
  --primary: #0b5ed7;        /* main blue */
  --primary-600: #094fb0;    /* darker for hover */
  --accent: #67a7ff;         /* lighter accent */
  --bg: #f5f9ff;             /* page background */
  --card-bg: #ffffff;
  --muted: #6c757d;
  --border: rgba(11,94,215,0.12);
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,0.04);
}

/* Photo Card Hover Overlay Styles */
.photo-card {
    position: relative;
}

.photo-container {
    position: relative;
    overflow: hidden;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-buttons {
    display: flex;
    gap: 8px;
}

.photo-buttons .btn {
    padding: 6px 10px;
    font-size: 14px;
    border: none;
    pointer-events: auto;
}

.photo-buttons .btn-light {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
}

.photo-buttons .btn-light:hover {
    background-color: #ffffff;
}

.photo-buttons .btn-danger {
    background-color: rgba(220, 53, 69, 0.9);
    color: #ffffff;
}

.photo-buttons .btn-danger:hover {
    background-color: #dc3545;
}

/* Photo Modal Styles */
.photo-modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-modal-content {
  position: relative;
  background-color: transparent;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
}

.photo-modal-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.photo-modal-close {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 32px;
  font-weight: bold;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.photo-modal-close:hover {
  color: #d0d0d0;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}