html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .dropdown-menu.show {
    min-width: 200px;
  }
}

.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;
}

#form-container {
    padding-bottom: 20px;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error message styling */
#errorMessage {display:none;}
#errorMessage.error {display: block;}




.pagination-container {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 15px;
}

.badge.Active { background-color: green !important;}
.badge.Inactive { background-color: red !important;}

.card {
    --vz-card-cap-padding-x: 0.6rem;
    --vz-card-cap-padding-y: 0.7rem;
    --vz-card-spacer-x: 0.5rem;
    --vz-card-spacer-y: 0.5rem;
}

.edit-part {
    display: none;
}

.edit-mode .edit-part {
    display: block;
}

.edit-mode .view-part {
    display: none !important;
}

input[readonly], input[readonly]:focus {
    background-color: #f1f1f1;
    box-shadow:unset;
}

div[data-rel=section] .card-body {padding:0;}
div[data-rel=item]:hover {
    background-color: #f1f1f1;
}

.admin-item-photo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 360px;
    max-height: 360px;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
}

.admin-item-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 576px) {
    .admin-item-photo-frame {
        height: 260px;
        max-height: 260px;
    }
}