/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
  /* Ensure content doesn't overlap with fixed navbar */
  padding-top: 90px;
}

.navbar {
  min-height: 90px;
  background-color: #37424f;
}

.navbar-brand {
  padding: 0 15px;
  height: 90px;
  line-height: 90px;
}

.navbar-toggle {
  /* (80px - button height 34px) / 2 = 23px */
  margin-top: 23px;
  padding: 9px 10px !important;
}

@media (min-width: 768px) {
  .navbar-nav > li > a {
    /* (80px - line-height of 27px) / 2 = 26.5px */
    padding-top: 26.5px;
    padding-bottom: 26.5px;
    line-height: 27px;
  }
}

.navbar-custom {
  line-height: 90px; /* Vertically center the text there */
}

.footer {
  /* position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  min-height: 40px;
  max-height: 40px;
  line-height: 40px; /* Vertically center the text there */
  /*background-color: rgba(26, 39, 53, 0.87);*/
}

.brand-img {
  max-height: 60px;
}

.text-white {
  color: #fff !important;
}

.modal-dialog.full-screen {
  position: fixed;
  width: auto; /* uncomment to make the width based on the left/right attributes.*/
  margin: auto;
  left: 0px;
  right: 0px;
  top: 0px;
  bottom: 0px;
}

.modal-dialog.full-screen .modal-content {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  bottom: 10px;
}

.modal-dialog.full-screen .modal-content .modal-header {
  height: 55px;
}

.modal-dialog.full-screen .modal-content .modal-body {
  overflow-y: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: 55px; /* .modal-header height */
  margin-bottom: 80px; /* .modal-footer height */
}

.modal-dialog.full-screen .modal-content .modal-footer {
  height: 80px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.btn-primary {
  color: #fff;
  background-color: #37424f;
  border-color: #2e6da4;
}
.btn-primary:focus,
.btn-primary.focus {
  color: #fff;
  background-color: #286090;
  border-color: #122b40;
}
.btn-primary:hover {
  color: #fff;
  background-color: #286090;
  border-color: #204d74;
}
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
  color: #fff;
  background-color: #286090;
  border-color: #204d74;
}
.btn-primary:active:hover,
.btn-primary.active:hover,
.open > .dropdown-toggle.btn-primary:hover,
.btn-primary:active:focus,
.btn-primary.active:focus,
.open > .dropdown-toggle.btn-primary:focus,
.btn-primary:active.focus,
.btn-primary.active.focus,
.open > .dropdown-toggle.btn-primary.focus {
  color: #fff;
  background-color: #204d74;
  border-color: #122b40;
}
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
  background-image: none;
}
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus,
.btn-primary[disabled]:focus,
fieldset[disabled] .btn-primary:focus,
.btn-primary.disabled.focus,
.btn-primary[disabled].focus,
fieldset[disabled] .btn-primary.focus {
  background-color: #37424f;
  border-color: #2e6da4;
}
.btn-primary .badge {
  color: #37424f;
  background-color: #fff;
}

/* Start by setting display:none to make this hidden.
   Then we position it in relation to the viewport window
   with position:fixed. Width, height, top and left speak
   for themselves. Background we set to 80% white with
   our animation centered, and no-repeating */
.loading {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.8) url("/public/img/ajax-loader.gif") 50%
    50% no-repeat;
}

/* When the body has the loading class, we turn
   the scrollbar off with overflow:hidden */
body.loading {
  overflow: hidden;
}

/* Anytime the body has the loading class, our
   modal element will be visible */
body.loading .loading {
  display: block;
}

/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */

body > .container {
  padding: 15px 15px 0;
}

/* Ensure consistent padding on all screen sizes */
.container {
  padding-left: 15px;
  padding-right: 15px;
}

/* Force container padding on mobile - override Bootstrap defaults */
@media (max-width: 768px) {
  .container {
    width: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Fix for navbar brand alignment */
.navbar-brand {
  padding: 15px;
  height: auto;
  line-height: normal;
}

.navbar-brand img {
  height: 60px;
  width: auto;
}

/* User info styling in navbar */
.navbar-nav > li.navbar-text {
  padding: 15px;
  margin: 0;
  line-height: 20px;
}

/* Inline logout button within navbar text */
.navbar-text a.logout-btn {
  color: #fff !important;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.navbar-text a.logout-btn:hover {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

/* Ensure navbar items are properly aligned */
.navbar-right {
  float: right !important;
}

.navbar-nav {
  margin: 0;
}

/* Alert positioning fix */
.alert {
  margin-top: 15px;
  margin-bottom: 15px;
}

/* Responsive navbar text */
@media (max-width: 767px) {
  .navbar-nav .navbar-text {
    padding: 10px 15px;
    margin: 0;
    text-align: center;
  }

  /* Add proper padding for collapsed navbar content */
  .navbar-collapse {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Stack user info and logout button vertically on mobile */
  .navbar-text a.logout-btn {
    display: block;
    margin: 10px auto 0;
    text-align: center;
    width: auto;
    max-width: 120px;
  }

  /* Ensure main content has proper padding on mobile */
  body > .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Additional padding for container content */
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Ensure form elements don't touch edges */
  .form-group {
    padding-left: 0;
    padding-right: 0;
  }

  /* Fix for Bootstrap responsive utilities */
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Additional mobile fixes for very small screens */
@media (max-width: 480px) {
  body > .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Ensure form elements have proper spacing */
  .form-group {
    margin-left: 0;
    margin-right: 0;
  }

  .row {
    margin-left: -5px;
    margin-right: -5px;
  }

  .row > [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
  }

  /* Adjust date field spacing for mobile */
  .main-page .row .form-group.col-md-4:not(:last-child) {
    margin-right: 0 !important;
    margin-bottom: 1rem;
  }

  /* Ensure all date fields have same width on mobile */
  .main-page .row .form-group.col-md-4 {
    margin-right: 0 !important;
  }
}

/* Bootstrap md breakpoint - when col-md-* elements stack */
@media (max-width: 991.98px) {
  /* Reset all horizontal margins for date fields when they stack */
  .main-page .row .form-group.col-md-4 {
    margin-right: 0 !important;
    margin-bottom: 1rem;
  }
}

.footer > .container {
  padding-right: 15px;
  padding-left: 15px;
}

code {
  font-size: 80%;
}

/* Login page specific styles */
.login-page {
  background: #f8f9fa;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: calc(100vh - 120px);
  /* Subtract navbar (~50px) and footer (~50px) heights plus buffer */
  display: flex;
  flex-direction: column;
}

/* Main content wrapper for vertical centering on login page */
.login-page .main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 20px 70px 20px;
  /* Account for fixed navbar and footer */
}

.login-page .container {
  margin: 0 auto;
  max-width: 600px;
  width: 90%;
}

.login-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 40px;
  margin: 0 auto;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.login-title {
  color: #333;
  font-weight: 300;
  margin-bottom: 10px;
}

/* Login form container */
.login-form-container {
  max-width: 400px;
  margin: 0 auto;
}

/* Login form input styling */
.login-email-input {
  font-size: 16px;
  padding: 12px;
}

/* Login error message */
.login-error-message {
  max-width: 400px;
  margin: 20px auto 0;
}

/* Alert styles for hiding/showing - removed since jQuery show/hide works better */

/* Logout button margin */
.logout-btn-margin {
  margin-left: 10px;
}

/* Input group minimum widths */
.input-group-employees,
.input-group-salaries,
.input-group-excluded-salaries {
  min-width: 300px;
}

/* Select elements full width */
.select-full-width {
  width: 100%;
}

/* Additional login page form styles */
.form-control-lg {
  border-radius: 8px;
  border: 2px solid #e1e5e9;
  transition: all 0.3s ease;
}

.form-control-lg:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Enhanced button styles for login page */
.login-page .btn-primary {
  background: rgb(55, 66, 79);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.login-page .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Login page navbar and footer styling */
.login-page .navbar-custom {
  background: rgb(55, 66, 79);
  color: white;
  backdrop-filter: blur(10px);
}

.login-page .footer {
  background: rgb(55, 66, 79);
  color: white;
  backdrop-filter: blur(10px);
}

.login-page .footer .text-muted {
  color: #fff !important;
  font-weight: 500;
}

/* Admin tab content height fix */
.tab-content .tab-pane {
  min-height: auto !important;
  height: auto !important;
}

.tab-content .tab-pane:not(.active) {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
}

.tab-content .tab-pane.active {
  display: block !important;
  height: auto !important;
  min-height: auto !important;
}

/* Ensure card bodies in admin tabs have proper spacing */
#adminTabContent .card-body {
  padding: 15px !important;
}

/* Mobile responsive styles for login page */
@media (max-width: 768px) {
  .login-page .main-content {
    padding: 60px 10px 60px 10px;
    /* Reduced padding for mobile */
    align-items: flex-start;
    /* Don't center vertically on mobile for better usability */
  }

  .login-page .container {
    width: 95%;
  }

  .login-page .login-container {
    padding: 30px 25px;
    margin-top: 20px;
    /* Add some top margin on mobile */
  }
}

/* Main page theme - clean and minimal */
.main-page {
  background: #f8f9fa;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: calc(100vh - 120px);
  /* Subtract navbar (~50px) and footer (~50px) heights plus some buffer */
  display: flex;
  flex-direction: column;
}

/* Main content wrapper for vertical centering on main page */
.main-page .main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 0 70px 0;
  /* Account for fixed navbar and footer */
}

/* Container styling for main page */
.main-page .container {
  background: #ffffff;
  border-radius: 8px;
  padding: 40px 50px;
  margin: 0 auto;
  max-width: 1200px;
  width: 90%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

/* Form content spacing */
.main-page .container .row {
  margin-left: 0;
  margin-right: 0;
}

.main-page .container .form-group {
  padding-left: 15px;
  padding-right: 15px;
}

/* Page heading with better spacing */
.main-page .container h1 {
  padding-left: 15px;
  margin-bottom: 10px;
}

.main-page .container .lead {
  padding-left: 15px;
  margin-bottom: 30px;
}

/* Mobile responsive styles for main page */
@media (max-width: 768px) {
  .main-page .main-content {
    padding: 60px 0 60px 0;
    /* Reduced padding for mobile */
    align-items: flex-start;
    /* Don't center vertically on mobile for better usability */
  }

  .main-page .container {
    width: 95%;
    margin: 20px auto;
    padding: 30px 25px;
  }

  .main-page .container .form-group {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Adjust date field spacing for tablet screens */
  .main-page .row .form-group.col-md-4:not(:last-child) {
    margin-right: 1rem;
  }

  /* Reset margins when fields stack vertically on tablet */
  .main-page .row .form-group.col-md-4 {
    margin-right: 0 !important;
  }

  .main-page .container h1,
  .main-page .container .lead {
    padding-left: 10px;
  }
}

/* Enhanced form controls */
.main-page .form-control {
  border-radius: 8px;
  border: 2px solid #e1e5e9;
  transition: all 0.3s ease;
}

.main-page .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Enhanced buttons for main page */
.main-page .btn-primary {
  background: rgb(55, 66, 79);
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.main-page .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 39, 53, 0.82);
}

.main-page .btn-info {
  background: rgb(91, 192, 222);
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.main-page .btn-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 39, 53, 0.82);
}

.main-page .btn-secondary {
  background: rgb(55, 66, 79);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.main-page .btn-secondary:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 39, 53, 0.82);
}

/* Clean navbar for main page */
.main-page .navbar-custom {
  background: rgb(55, 66, 79);
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Navbar text styling */
.main-page .navbar-custom .navbar-text {
  color: #fff !important;
}

.main-page .navbar-custom .navbar-text strong {
  color: #fff !important;
}

.main-page .navbar-custom .logout-btn {
  text-decoration: none;
  transition: all 0.2s ease;
  background-color: rgba(55, 66, 79, 0.419);
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  font-weight: 500;
}

.main-page .navbar-custom .logout-btn:hover {
  text-decoration: none;
  border-color: #adb5bd;
}

.main-page .navbar-custom .logout-btn:focus {
  border-color: #adb5bd;
  box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

/* Clean footer for main page */
.main-page .footer {
  background: rgb(55, 66, 79);
  border-top: 1px solid #e9ecef;
}

.main-page .footer .text-muted {
  color: #fff !important;
  font-weight: 400;
}

/* Clean button styling for main page */
.main-page .btn-outline-primary {
  color: #6c757d !important;
  border-color: #dee2e6 !important;
  background-color: transparent;
  padding: 6px 12px;
  transition: all 0.2s ease;
}

.main-page .btn-outline-primary:hover {
  color: #495057 !important;
  background-color: #f8f9fa !important;
  border-color: #adb5bd !important;
}

.main-page .btn-outline-primary:focus,
.main-page .btn-outline-primary:active {
  color: #495057 !important;
  background-color: #f8f9fa !important;
  border-color: #adb5bd !important;
  box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

/* Page heading styling for main page */
.main-page h1 {
  color: #333;
  font-weight: 300;
  margin-bottom: 20px;
}

.main-page .lead {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* Enhanced alerts for main page */
.main-page .alert {
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Form Data Management Modal Styles */
.form-data-management .card {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
  border-radius: 8px;
}

.form-data-management .card.border-primary {
  border-width: 2px;
  border-color: #667eea !important;
}

.form-data-management .form-data-item {
  padding: 1.25rem;
  background-color: rgba(248, 249, 250, 0.8);
  border-radius: 8px;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(5px);
}

.form-data-management .info-item {
  margin-bottom: 1rem;
}

.form-data-management .info-item strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.form-data-management .info-item .text-muted {
  font-size: 1.05rem;
  line-height: 1.4;
  color: #495057 !important;
}

.form-data-management .btn {
  min-width: 140px;
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  border-radius: 8px;
  font-weight: 500;
}

.form-data-management .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-data-management .btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: none;
}

.form-data-management .btn-danger:hover {
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.form-data-management .btn-outline-danger {
  color: #dc3545;
  border-color: #dc3545;
  background-color: transparent;
  border-radius: 8px;
}

.form-data-management .btn-outline-danger:hover {
  color: white;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border-color: #dc3545;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.form-data-management .card-header h6 {
  padding: 0.5rem 1rem;
  font-size: 2rem;
  font-weight: 600;
}

.bg-primary {
  background: #495057 !important;
}

.form-data-management .badge {
  font-size: 0.8rem;
}

/* Enhanced modal styling */
.modal-content {
  border-radius: 10px;
  border: none;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

#formDataModal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgb(51, 51, 51);
  border-radius: 10px 10px 0 0;
  color: white;
}

#formDataModal .modal-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  text-align: left;
  color: white;
}

#formDataModal .close {
  opacity: 0.8;
  font-size: 1.8rem;
  line-height: 1;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.3s ease;
}

#formDataModal .close:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Report modal styling */
#report .modal-content {
  border-radius: 10px;
  border: none;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

#report .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgb(51, 51, 51);
  border-radius: 10px 10px 0 0;
  color: white;
}

#report .modal-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  text-align: left;
  color: white;
}

#report .modal-header .close {
  opacity: 0.8;
  font-size: 1.8rem;
  line-height: 1;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.3s ease;
}

#report .modal-header .close:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Responsive adjustments for form data management */
@media (max-width: 768px) {
  .form-data-management .btn {
    min-width: 120px;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .form-data-management .info-item strong {
    font-size: 1rem;
  }

  .form-data-management .info-item .text-muted {
    font-size: 0.95rem;
  }

  .form-data-management .form-data-item {
    padding: 1rem;
  }

  #formDataModal .modal-title {
    font-size: 1.1rem;
  }

  #formDataModal .modal-header {
    padding: 0.75rem 1rem;
  }
}

/* Enhanced loading animation - override existing */
.main-page .loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(55, 66, 79, 0.651);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}

.main-page .loading::before {
  content: "";
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.main-page .loading::after {
  content: "Laster...";
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Enhanced input groups */
.main-page .input-group-addon {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #e1e5e9;
  border-left: none;
  border-radius: 0 8px 8px 0;
}

.main-page .input-group .form-control:first-child {
  border-radius: 8px 0 0 8px;
}

/* Date fields spacing */
.main-page .form-group[class*="col-md-4"] {
  margin-bottom: 1.5rem;
}

/* Add spacing between date fields in the same row */
.main-page .row .form-group.col-md-4:not(:last-child) {
  margin-right: 2rem;
}

/* Checkbox and label spacing */
.main-page .form-check-input {
  margin-right: 0.75rem;
}

.main-page .input-group .form-check-input {
  margin-right: 0.75rem;
  margin-top: 0.125rem; /* Slight vertical alignment adjustment */
}

/* Export format help text - prevent unnecessary wrapping on larger screens */
@media (min-width: 992px) {
  /* Improve text flow for export format help text */
  #exportFormatGroup + .form-text {
    line-height: 1.4;
    word-break: normal;
    hyphens: none;
  }
}

.main-page .form-check-label {
  margin-left: 0.25rem;
  line-height: 1.5;
}

/* Datepicker dropdown fixes */
.datepicker-dropdown {
  z-index: 9999 !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  background-color: #fff;
  width: 350px !important;
  min-width: 350px;
  padding: 4px !important;
  height: auto !important;
  max-height: none !important;
}

/* Ensure datepicker has enough space and proper positioning */
.datepicker {
  z-index: 9999 !important;
  max-height: none !important;
  overflow: visible !important;
  height: auto !important;
  padding-bottom: 10px !important;
}

/* Fix for datepicker table spacing */
.datepicker table {
  width: 100%;
  margin-bottom: 10px !important;
}

/* Ensure today button is fully visible with more space */
.datepicker tfoot tr th {
  padding: 10px 12px !important;
  text-align: center;
  border-top: 1px solid #ddd;
  background-color: #f5f5f5;
  height: auto !important;
  line-height: 1.4 !important;
}

/* Force the datepicker footer to be visible */
.datepicker tfoot {
  display: table-footer-group !important;
}

/* Additional spacing for the entire datepicker content */
.datepicker > div {
  padding-bottom: 5px !important;
}

/* Fix container overflow issues that might clip the datepicker */
.main-page .container,
.main-page .form-group,
.main-page .input-group {
  overflow: visible !important;
}

/* Enhanced select2 styling */
.main-page .select2-container--default .select2-selection--single,
.main-page .select2-container--default .select2-selection--multiple {
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.main-page
  .select2-container--default.select2-container--focus
  .select2-selection--single,
.main-page
  .select2-container--default.select2-container--focus
  .select2-selection--multiple {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Custom dropdown styling for user menu */
.navbar .dropdown-toggle.text-white:hover,
.navbar .dropdown-toggle.text-white:focus,
.navbar .dropdown-toggle.text-white:active,
.navbar .dropdown.open .dropdown-toggle.text-white {
  background-color: transparent !important;
  color: #ffffff !important;
  text-decoration: none;
}

/* Ensure dropdown menu has proper styling */
.navbar .dropdown-menu {
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  background-color: #ffffff;
}

.navbar .dropdown-menu > li > a {
  color: #333;
  padding: 8px 20px;
}

.navbar .dropdown-menu > li > a:hover,
.navbar .dropdown-menu > li > a:focus {
  background-color: #f5f5f5;
  color: #262626;
}

/* Divider styling */
.navbar .dropdown-menu .divider {
  height: 1px;
  margin: 9px 0;
  overflow: hidden;
  background-color: #e5e5e5;
}
