.light-style {
  --poolms-menu-accent: #407aed;
  --poolms-menu-accent-soft: rgba(64, 122, 237, 0.12);
}

.light-style .menu .app-brand.demo {
  height: 64px;
}

.dark-style .menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo {
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  display: -ms-flexbox;
  display: flex;
  width: 34px;
  height: 24px;
}

.app-brand-logo.demo svg {
  width: 35px;
  height: 24px;
}

.app-brand-text.demo {
  font-size: 1.375rem;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 78px !important;
}
/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 254px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

.layout-menu-toggle {
  color: #333; 
  text-decoration: none; 
}


button.btn.btn-primary {
  background-color: #407aed !important;
}

button.btn.btn-primary:hover,
.btn.btn-primary:hover {
  background-color: #3366cc !important;
  border-color: #3366cc !important;
}

button.btn.btn-primary:focus,
.btn.btn-primary:focus,
button.btn.btn-primary:active,
.btn.btn-primary:active {
  background-color: #2952a3 !important;
  border-color: #2952a3 !important;
}

.btn-blue {
  background-color: #407aed !important;
  color: white !important;
}

.btn-blue:hover {
  background-color: #3366cc !important;
  color: white !important;
}

.btn-blue:focus,
.btn-blue:active {
  background-color: #2952a3 !important;
  color: white !important;
}

/* Modern button enhancements */
.btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #407aed 0%, #3366cc 100%);
  border: none;
}

.btn-outline-primary {
  border: 2px solid #407aed;
  color: #407aed;
  background: transparent;
}

.btn-outline-primary:hover {
  background: #407aed;
  border-color: #407aed;
  color: white;
}

/* Modern card styling */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Modern form styling */
.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: #407aed;
  box-shadow: 0 0 0 0.2rem rgba(64, 122, 237, 0.25);
}

.light-style #technicianFilter + .select2-container .select2-selection--multiple .select2-selection__choice,
.dark-style #technicianFilter + .select2-container .select2-selection--multiple .select2-selection__choice {
  background-color: #407aed !important;
  border-color: #407aed !important;
}

/* Modern navbar styling */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Modern sidebar styling */
.layout-menu {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9) !important;
}

input[type='radio']:checked {
  background-color: #407aed !important;
}

.custom-checkbox .form-check-input:checked {
  background-color: #407aed !important;
  border-color: #407aed !important;
}

.custom-checkbox .form-check-input:focus {
  border-color: #407aed !important;
}

.logo-image {
  width: 100%;       
  max-width: 400px;   
  height: auto;       
}

.flash-message-center {
  text-align: center; 
}

.notes-view-toggle-group {
  overflow: visible;
}

@media (max-width: 1199.98px) {
  .bg-menu-theme.menu-vertical .menu-item.active > .menu-link:not(.menu-toggle),
  .bg-menu-theme .menu-inner .menu-item.active > .menu-link.menu-toggle,
  .bg-menu-theme .menu-inner .menu-item.open > .menu-link.menu-toggle {
    background: var(--poolms-menu-accent-soft) !important;
    box-shadow: none !important;
    color: var(--poolms-menu-accent) !important;
  }

  .bg-menu-theme.menu-vertical .menu-item.active > .menu-link:not(.menu-toggle) .menu-icon,
  .bg-menu-theme .menu-inner .menu-item.active > .menu-link.menu-toggle .menu-icon,
  .bg-menu-theme .menu-inner .menu-item.open > .menu-link.menu-toggle .menu-icon {
    color: var(--poolms-menu-accent) !important;
  }
}

.notes-view-toggle-btn {
  position: relative;
  overflow: visible !important;
  z-index: 1;
}

.notes-view-toggle-btn .notes-count-badge {
  position: absolute;
  top: -0.85rem;
  right: -0.65rem;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.15rem 0.35rem;
  font-size: 0.65rem;
  line-height: 1;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 0 0 2px #fff;
}

.notes-view-toggle-btn .notes-count-badge[data-notes-count-target="my"] {
  right: auto;
  left: -0.65rem;
}

/* Custom mint styling for Personal calendar events */
.bg-mint {
  background-color: #a7f3d0 !important;
  color: #0f5132 !important;
}

.badge.bg-mint {
  background-color: #a7f3d0 !important;
  color: #0f5132 !important;
}

.form-check-mint .form-check-input:checked {
  background-color: #34d399;
  border-color: #34d399;
}

.form-check-mint .form-check-input:focus {
  border-color: #34d399;
  box-shadow: 0 0 0 0.2rem rgba(52, 211, 153, 0.25);
}

.fc .fc-event-mint:not(.fc-list-event) {
  background-color: #a7f3d0;
  border-color: #34d399;
  color: #0f5132;
}

.fc .fc-event-mint.fc-list-event .fc-list-event-dot {
  border-color: #34d399;
}

/* On-call calendar styling (brighter yellow) */
.bg-oncall {
  background-color: #ffe066 !important;
  color: #7a5b00 !important;
}

.badge.bg-oncall {
  background-color: #ffe066 !important;
  color: #7a5b00 !important;
}

.form-check-oncall .form-check-input:checked {
  background-color: #ffd43b;
  border-color: #ffd43b;
}

.form-check-oncall .form-check-input:focus {
  border-color: #ffd43b;
  box-shadow: 0 0 0 0.2rem rgba(255, 212, 59, 0.25);
}

.fc .fc-event-oncall:not(.fc-list-event) {
  background-color: #ffe066;
  border-color: #ffd43b;
  color: #7a5b00;
}

.fc .fc-event-oncall.fc-list-event .fc-list-event-dot {
  border-color: #ffd43b;
}
