/*
 * Globals
 */

 .bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
  }

  /* @media (min-width: 768px) {
    .bd-placeholder-img-lg {
      font-size: 3.5rem;
    }
  } */

  @media only screen and (min-width:300px){
    .container {
        max-width: 100%;
        margin: 0 auto;
    }
}

@media only screen and (min-width:600px){
    .container {
        max-width: 580px;
        margin: 0 auto;
    }
    .third {
        float: left;
        width: 47.5%;
        margin-left: 5%;
    }
    .third:first-child {
        margin-left: 0;
    }
    .third:last-child {
        display: block;
        width: 100%;
        margin-left: 0;
    }
}

@media only screen and (min-width:960px){
    .container {
        max-width: 940px;
    }
    .third {
        float: left;
        width: 30%;
        margin-left: 2.5%;
        margin-right: 2.5%;
    }
    .third:first-child {
        margin-left: 0;
    }
    .third:last-child {
        margin-right: 0;
    }
}
@media only screen and (min-width:1140px){
    .container {
        max-width: 1120px;
    }
}
@media only screen and (min-width:1360px){
    .container {
        max-width: 1300px;
    }
}


/* Custom default button for Bootstrap 5 */
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus {
  color: #333;
  text-shadow: none;
}

.wrapper{ width: 360px; padding: 80px; }

/*
 * Base structure
 */

body {
  font: 14px sans-serif;
  padding:10px;
  padding-bottom:60px;
}

.table_pad {
	padding:20px;
}

form {
	padding:20px;
}

footer {
   position:relative;
   left:0px;
   bottom:0px;
   height:60px;
   width:100%;
   background: var(--bs-secondary-bg, #d3dce1);
}


.cover-container {
  max-width: 100em;
}


/*
 * Header
 */

.nav-masthead .nav-link {
  padding: .25rem 0;
  font-weight: 700;
  color: rgba(255, 255, 255, .5);
  background-color: transparent;
  border-bottom: .25rem solid transparent;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
  border-bottom-color: rgba(255, 255, 255, .25);
}

.nav-masthead .nav-link + .nav-link {
  margin-left: 1rem;
}

.nav-masthead .active {
  color: #fff;
  border-bottom-color: #fff;
}

.ui-datepicker-calendar {
  display: none;
  }

  .member-dashboard {
    padding: 40px;
    background: #D2EDD5;
    color: #555;
    border-radius: 4px;
    display: inline-block;
  }
  .member-dashboard a {
    color: #09F;
    text-decoration:none;
  }
  #validation-message {
    text-align:center;
    color:#FF0000;
  }
  .success_message {
    text-align:center;
    color: #07AB61;
  }

  /* Left sidebar navigation styles */
.left-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: #222;
  color: #fff;
  z-index: 1040;
  padding-top: 60px;
  box-shadow: 2px 0 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.left-sidebar .navbar-brand {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem 1rem 1.5rem;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
}
.left-sidebar .navbar-nav {
  flex-direction: column;
  width: 100%;
}
.left-sidebar .nav-item {
  width: 100%;
}
.left-sidebar .nav-link, .left-sidebar .dropdown-toggle {
  color: #fff;
  padding: 0.75rem 1.5rem;
  width: 100%;
  text-align: left;
}
.left-sidebar .nav-link.active, .left-sidebar .nav-link:hover, .left-sidebar .dropdown-toggle:hover {
  background: #444;
  color: #ffd700;
}
.left-sidebar .dropdown-menu {
  position: static;
  float: none;
  background: #333;
  border: none;
  box-shadow: none;
  margin: 0 0 0 1.5rem;
}
.left-sidebar .dropdown-item {
  color: #fff;
  padding: 0.5rem 1.5rem;
}
.left-sidebar .dropdown-item:hover {
  background: #444;
  color: #ffd700;
}
.left-sidebar .btn {
  margin: 1rem 1.5rem;
  width: auto;
  min-width: 0;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
}
.left-sidebar .nav-link.text-danger {
  color: #ff4d4f !important;
}
.left-sidebar .nav-link.text-danger:hover {
  background: #550000;
  color: #fff !important;
}
@media (max-width: 991px) {
  .left-sidebar {
    position: fixed;
    width: 220px;
    height: 100vh;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 2px 0 8px rgba(0,0,0,0.08);
    padding-top: 60px;
    transition: transform 0.3s ease;
  }
  .left-sidebar.open {
    transform: translateX(0);
  }
  body.with-sidebar {
    margin-left: 0;
  }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 1039;
  }
  .sidebar-backdrop.active {
    display: block;
  }
}
.menu-toggle-btn {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1050;
  background: #222;
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 4px;
  padding: 4px 10px;
}
@media (max-width: 991px) {
  .menu-toggle-btn {
    display: block;
  }
}
body.with-sidebar {
  margin-left: 220px;
}
@media (max-width: 991px) {
  body.with-sidebar {
    margin-left: 0;
  }
}

/* Modal themed header for dark theme consistency */
.modal-themed-header {
  background: #222;
  color: #ffd700;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
  border-bottom: 2px solid #ffd700;
}
.text-gold {
  color: #ffd700 !important;
}

/* Themed search filter card */
.search-filter-card {
  background: #23272b;
  color: #fff;
  border-radius: 1rem;
  border: none;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.12);
}
.search-filter-card .card-body {
  background: transparent;
}
.search-filter-card label,
.search-filter-card .form-label {
  color: #fff;
  font-weight: 600;
}
.search-filter-card .input-group-text {
  background: #23272b;
  color: #fff;
  border: 1px solid #444;
}
.search-filter-card .form-control,
.search-filter-card .form-floating > .form-control {
  background: #181a1b;
  color: #fff;
  border: 1px solid #444;
}
.search-filter-card .form-control:focus {
  border-color: #888;
  box-shadow: 0 0 0 0.2rem rgba(136,136,136,.15);
}
.search-filter-card .btn-outline-primary,
.search-filter-card .btn-outline-success,
.search-filter-card .btn-outline-secondary {
  color: #fff;
  border-color: #888;
  background: transparent;
}
.search-filter-card .btn-outline-primary.active,
.search-filter-card .btn-outline-primary:active,
.search-filter-card .btn-outline-primary:focus,
.search-filter-card .btn-outline-primary:hover {
  background: #444;
  color: #fff;
  border-color: #888;
}
.search-filter-card .btn-primary {
  background: #444;
  color: #fff;
  border: none;
}
.search-filter-card .btn-primary:hover,
.search-filter-card .btn-primary:focus {
  background: #666;
  color: #fff;
}

/* Flatpickr dark theme override for app consistency */
[data-bs-theme="dark"] .flatpickr-calendar {
  background: #23272b !important;
  color: #fff !important;
  border-radius: 1rem !important;
  border: 1px solid #444 !important;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.18) !important;
}
[data-bs-theme="dark"] .flatpickr-months .flatpickr-month {
  background: #181a1b !important;
  color: #ffd700 !important;
}
[data-bs-theme="dark"] .flatpickr-months .flatpickr-prev-month,
[data-bs-theme="dark"] .flatpickr-months .flatpickr-next-month,
[data-bs-theme="dark"] .flatpickr-months .flatpickr-current-month,
[data-bs-theme="dark"] .flatpickr-months .flatpickr-monthDropdown-months,
[data-bs-theme="dark"] .flatpickr-months .flatpickr-monthDropdown-month {
  color: #fff !important;
}
[data-bs-theme="dark"] .flatpickr-weekdays,
[data-bs-theme="dark"] .flatpickr-days {
  background: #23272b !important;
}
[data-bs-theme="dark"] .flatpickr-day {
  color: #fff !important;
  border-radius: 0.5rem !important;
}
[data-bs-theme="dark"] .flatpickr-day.today {
  background: #ffd700 !important;
  color: #23272b !important;
}
[data-bs-theme="dark"] .flatpickr-day.selected,
[data-bs-theme="dark"] .flatpickr-day.startRange,
[data-bs-theme="dark"] .flatpickr-day.endRange {
  background: #ffd700 !important;
  color: #23272b !important;
}
[data-bs-theme="dark"] .flatpickr-input[readonly] {
  background: #181a1b !important;
  color: #fff !important;
  border: 1px solid #444 !important;
}

/* Remove gold and keep dark/light theme for requests listing table */
.requests-listing-table {
  border: 2px solid #444;
  border-radius: 0.75rem;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
  overflow: hidden;
}

.requests-listing-table thead th {
  background: #23272b;
  color: #fff;
  border-bottom: 2px solid #444;
}

/* Responsive Dashboard & Chart Styles */
.card-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: 220px;
}
.card-body canvas {
  width: 100% !important;
  height: 300px !important;
  max-width: 100%;
  max-height: 350px;
  aspect-ratio: 2/1;
}
@media (max-width: 991.98px) {
  .card-body canvas {
    height: 220px !important;
    aspect-ratio: 1.5/1;
  }
}
@media (max-width: 767.98px) {
  .card-body canvas {
    height: 180px !important;
    aspect-ratio: 1.2/1;
  }
  .card-header h6, .card-header a {
    font-size: 1rem !important;
  }
  h1 {
    font-size: 1.3rem !important;
  }
}
@media (max-width: 575.98px) {
  .card-body canvas {
    height: 140px !important;
    aspect-ratio: 1/1;
  }
  .card {
    margin-bottom: 1rem;
  }
  h1 {
    font-size: 1.1rem !important;
  }
}

/* Ensure footer stays at bottom for all layouts */
body, html {
  min-height: 100vh;
  position: relative;
}
.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 100;
}