/* Custom styles for Bootstrap transition */

/* Loader styles */
#loader {
  z-index: 2048;
  border: 25px solid red;
  background-color: #fff;
  color: black;
  margin: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
}

/* Custom color scheme override */
html {
  color-scheme: light only;
}

/* Override Bootstrap container padding for body */
body {
  margin: 5px;
  /* padding-top: 70px; /* Account for fixed navbar */
}

/* Navbar customization */
.navbar {
  border-bottom: 2px solid #333;
}

.navbar-brand {
  font-weight: bold;
  color: black !important;
}

.navbar-nav .nav-link {
  color: black !important;
  font-weight: 500;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.dropdown-menu {
  border: 2px solid black;
  border-radius: 10px;
}

.dropdown-item {
  color: black;
}

.dropdown-item:hover {
  background-color: #e0e0e0;
  color: black;
}

/* Legacy button styling for compatibility - only applies to .btn without Bootstrap variants */
.btn:not(.btn-primary):not(.btn-secondary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-light):not(.btn-dark):not(.btn-outline-primary):not(.btn-outline-secondary):not(.btn-outline-success):not(.btn-outline-danger):not(.btn-outline-warning):not(.btn-outline-info):not(.btn-outline-light):not(.btn-outline-dark) {
  display: inline-block;
  padding: 10px 15px;
  background: linear-gradient(#7191b3, #446e9b 50%, #3f658f);
  color: white !important;
  border-radius: 15px;
  border: 1px solid #36587c;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
}

.btn.danger:not(.btn-primary):not(.btn-secondary):not(.btn-success):not(.btn-warning):not(.btn-info):not(.btn-light):not(.btn-dark):not(.btn-outline-primary):not(.btn-outline-secondary):not(.btn-outline-success):not(.btn-outline-danger):not(.btn-outline-warning):not(.btn-outline-info):not(.btn-outline-light):not(.btn-outline-dark) {
    background: linear-gradient(#d93f3d, #cd0200 50%, #bd0200) !important;
}

.btn.success:not(.btn-primary):not(.btn-secondary):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-light):not(.btn-dark):not(.btn-outline-primary):not(.btn-outline-secondary):not(.btn-outline-success):not(.btn-outline-danger):not(.btn-outline-warning):not(.btn-outline-info):not(.btn-outline-light):not(.btn-outline-dark) {
    background: linear-gradient(#6bc756, #3cb521 50%, #37a71e) !important;
}

.btn.warning:not(.btn-primary):not(.btn-secondary):not(.btn-success):not(.btn-danger):not(.btn-info):not(.btn-light):not(.btn-dark):not(.btn-outline-primary):not(.btn-outline-secondary):not(.btn-outline-success):not(.btn-outline-danger):not(.btn-outline-info):not(.btn-outline-light):not(.btn-outline-dark) {
    background: linear-gradient(#de963d, #d47500 50%, #c36c00) !important;
}

.btn.info:not(.btn-primary):not(.btn-secondary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-light):not(.btn-dark):not(.btn-outline-primary):not(.btn-outline-secondary):not(.btn-outline-success):not(.btn-outline-danger):not(.btn-outline-warning):not(.btn-outline-light):not(.btn-outline-dark) {
    background: linear-gradient(#64b1f6, #3399f3 50%, #2f8de0) !important;
}

.btn.secundary:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-light):not(.btn-dark):not(.btn-outline-primary):not(.btn-outline-secondary):not(.btn-outline-success):not(.btn-outline-danger):not(.btn-outline-warning):not(.btn-outline-info):not(.btn-outline-light):not(.btn-outline-dark) {
    background: linear-gradient(#b1b1b1, #999 50%, #8d8d8d) !important;
}

/* Bootstrap table row customizations */
.table .red, 
.table .red th, 
.table .red td {
  background-color: darkred !important;
  color: white !important;
}

.table .orange, 
.table .orange th, 
.table .orange td {
  background-color: lightsalmon !important;
  color: black !important;
}

.table .goldrow, 
.table .goldrow th, 
.table .goldrow td {
  background-color: gold !important;
  color: black !important;
}

.table .odd.goldrow, 
.table .odd.goldrow th, 
.table .odd.goldrow td {
  background-color: rgba(255, 215, 0, 0.5) !important;
  color: black !important;
}

/* CCTV camera styling */
.cctv-cam {
  display: inline-block;
  border: 2px ridge grey;
  border-radius: 5px;
  text-align: center;
}

/* Override Bootstrap form control styling for custom yellow background */
.form-control,
.form-select {
  background-color: palegoldenrod !important;
  color: black !important;
  border: 2px solid black !important;
  border-radius: 5px !important;
}

.form-control:focus,
.form-select:focus {
  background-color: palegoldenrod !important;
  color: black !important;
  border-color: #495057 !important;
  box-shadow: 0 0 0 0.2rem rgba(73, 80, 87, 0.25) !important;
}

/* Cursor pointer for clickable links */
a[onclick] {
  cursor: pointer;
}

/* Full height utility class */
.full {
  height: calc(100vh - 100px); /* Account for navbar */
  min-height: 100px;
  width: 100%;
}

/* Hide on small screens utility */
@media (max-width: 768px) {
  .hide_small_screens {
    display: none !important;
  }
  
  #homepage_2ndc {
    width: 100% !important;
    margin-left: 0 !important;
  }
}

/* Photo gallery details marker removal */
.photo-gallery summary::-webkit-details-marker,
.photo-gallery summary::marker {
  display: none;
  content: "";
}

.photo-gallery summary {
  margin: 0;
  padding: 0;
}
