/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Apply Poppins font to text elements only */
body,
p, h1, h2, h3, h4, h5, h6,
span, div, a, button, input, textarea, select,
.s-sidebar-link-text, .s-sidebar-header-title {
  font-family: 'Poppins', sans-serif !important;
}

/* Remove Font Awesome override to let icons display naturally */

/* Grid container styling */
.grid-container.slick-container,
.slick-container,
[class*="sleekgrid"] {
  padding: 20px !important;
  border: 2px solid #f5f5f5 !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(152, 151, 151, 0.1) !important;
  margin: 10px 0 !important;
  width: 100% !important;
  max-width: none !important;
}

/* WalletTransactions specific grid styling */
#WalletTransactionsGrid .slick-viewport,
#WalletTransactionsGrid .slick-grid {
  width: 100% !important;
  max-width: none !important;
}

/* Ensure grid columns take full width */
#WalletTransactionsGrid .slick-header-columns,
#WalletTransactionsGrid .slick-column {
  width: auto !important;
}

/* Make the grid responsive and full-width */
.slick-grid {
  width: 100% !important;
  max-width: none !important;
}

.slick-viewport {
  width: 100% !important;
  overflow-x: auto !important;
}

/* Form styling */
.s-Form {
  padding: 20px !important;
  border: 2px solid #f5f5f5 !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(152, 151, 151, 0.1) !important;
  margin: 10px 0 !important;
}

/* Change Password Form Styling */
.s-FormTitle {
  margin-bottom: 20px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #e9ecef !important;
}

.s-FormTitle h2 {
  color: #b11b21 !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

.s-Field {
  margin-bottom: 20px !important;
}

.s-Label {
  display: block !important;
  margin-bottom: 5px !important;
  font-weight: 500 !important;
  color: #333 !important;
}

.s-Input {
  width: 100% !important;
  padding: 10px 12px !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  transition: border-color 0.3s ease !important;
}

.s-Input:focus {
  outline: none !important;
  border-color: #b11b21 !important;
  box-shadow: 0 0 0 2px rgba(177, 27, 33, 0.1) !important;
}

.s-HelpText {
  font-size: 12px !important;
  color: #666 !important;
  margin-top: 5px !important;
}

.s-FormActions {
  margin-top: 30px !important;
  padding-top: 20px !important;
  border-top: 1px solid #e9ecef !important;
  display: flex !important;
  gap: 10px !important;
}

.s-Button {
  padding: 10px 20px !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.s-Button-Primary {
  background-color: #b11b21 !important;
  color: white !important;
}

.s-Button-Primary:hover {
  background-color: #d32f2f !important;
}

.s-Button:not(.s-Button-Primary) {
  background-color: #6c757d !important;
  color: white !important;
}

.s-Button:not(.s-Button-Primary):hover {
  background-color: #5a6268 !important;
}

.s-site-logo-img {
  content: url(../site/images/raajshree_logo.png);
  height: 36px;
  width: auto;
  object-fit: contain;
}

.s-sidebar-header-logo {
  margin-right: 10px;
}

.s-form-title-logo {
  margin-bottom: 10px;
}

.navbar.sticky-top.s-sidebar-header {
  background: linear-gradient(135deg, #b11b21 0%, #d32f2f 100%) !important;
  box-shadow: 0 2px 10px rgba(177, 27, 33, 0.3) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 12px 20px !important;
}

.navbar.sticky-top.s-sidebar-header .s-sidebar-header-title,
.navbar.sticky-top.s-sidebar-header .s-sidebar-toggler,
.navbar.sticky-top.s-sidebar-header .s-sidebar-header-link {
  color: white;
}

.s-sidebar-toggler {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 6px !important;
  padding: 8px 10px !important;
  color: white !important;
}

.s-sidebar-toggler:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.s-sidebar-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.s-sidebar-header-branding {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.s-sidebar-header-title {
  font-weight: 600 !important;
  font-size: 16px !important;
  color: white !important;
}

/* Enhanced User Profile Menu */
.s-sidebar-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin-left: auto !important;
  gap: 10px !important;
}

.s-sidebar-header-link {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 6px !important;
  padding: 8px 10px !important;
  color: white !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
}

.s-sidebar-header-link:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  text-decoration: none !important;
}

/* Wallet Balance Styling */
.s-wallet-balance {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  color: white !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  min-width: 120px !important;
  justify-content: center !important;
}

.s-wallet-balance i {
  color: #28a745 !important;
  font-size: 16px !important;
}

.balance-amount {
  color: white !important;
  font-weight: 600 !important;
}

/* Enhanced Dropdown Menus */
.s-user-profile-menu {
  background: white !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
  padding: 8px 0 !important;
  margin-top: 8px !important;
}

.s-user-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  border-radius: 6px !important;
  margin: 8px !important;
  padding: 16px !important;
}

.s-user-avatar {
  color: #b11b21 !important;
  font-size: 2rem !important;
}

.s-user-info {
  color: #011227 !important;
  font-weight: 500 !important;
  margin: 8px 0 0 0 !important;
}

.dropdown-item {
  padding: 10px 16px !important;
  color: #011227 !important;
  border-radius: 4px !important;
  margin: 2px 8px !important;
}

.dropdown-item:hover {
  background: transparent !important;
  color: #011227 !important;
}

.dropdown-item .icon {
  color: #b11b21 !important;
  margin-right: 8px !important;
  width: 16px !important;
  text-align: center !important;
}

/* Responsive Sidebar */
@media (max-width: 768px) {
  .s-sidebar {
    width: 260px !important;
  }
  
  .s-sidebar-link {
    padding: 10px 14px !important;
  }
  
  .s-sidebar-link-text {
    font-size: 13px !important;
  }
}

/* Enhanced Sidebar Styling */
body .s-sidebar,
body .s-sidebar .s-sidebar-pane,
aside.s-sidebar {
  background: #00122f !important; /* Off-white */
  box-shadow: none !important;
  border-right: 0.5px solid #e0e0e0 !important;
}

/* Enhanced Sidebar Search */
.s-sidebar-search {
  padding: 20px 0px 15px 0px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin-bottom: 10px !important;
  margin-top: 50px !important;
}

.s-sidebar-search-icon {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 14px !important;
  margin-top: 29px !important;
  margin-left: 19px !important;
}

.s-sidebar-search-input {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  color: white !important;
  padding: 9px 12px 9px 50px !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
}

.s-sidebar-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

.s-sidebar-search-input:focus {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
  outline: none !important;
}

/* Enhanced Sidebar Menu Items */
.s-sidebar-item {
  margin: 2px 0 !important;
  border-radius: 0 !important;
  position: relative !important;
  border: none !important;
  background: transparent !important;
}

.s-sidebar-item:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.s-sidebar-item.active {
  background: rgba(177,27,33,0.10) !important;
  box-shadow: none !important;
  border: 1.5px solid #b11b21 !important;
  border-radius: 8px !important;
  margin: 2px 4px !important;
  position: relative !important;
  overflow: visible !important;
  backdrop-filter: blur(6px) !important;
}

.s-sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 29px;
  background: #b11b21;
  border-radius: 0 5px 5px 0;
  z-index: 2;
  display: block !important;
  box-shadow: none;
}

/* Enhanced Sidebar Links */
.s-sidebar-link {
  display: flex !important;
  align-items: center !important;
  padding: 12px 16px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  border-radius: 6px !important;
  position: relative !important;
  overflow: hidden !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
}

.s-sidebar-link:hover {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.s-sidebar-item.active .s-sidebar-link {
  color: white !important;
  font-weight: 500 !important;
}

/* Enhanced Sidebar Icons */
.s-sidebar-icon {
  width: 23px !important;
  height: 23px !important;
  margin-right: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  color: #fff !important;
}

.s-sidebar-item.active .s-sidebar-icon {
  color: #fff !important;
}

.s-sidebar-item:hover .s-sidebar-icon {
  color: #fff !important;
}

/* Enhanced Sidebar Link Text */
.s-sidebar-link-text {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  flex: 1 !important;
}

.s-sidebar-item.active .s-sidebar-link-text {
  color: white !important;
  font-weight: 500 !important;
}

.s-sidebar-item:hover .s-sidebar-link-text {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Enhanced Dropdown Toggle Arrow */
.s-sidebar-menu-toggle {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 12px !important;
  margin-left: auto !important;
  width: 16px !important;
  height: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: static !important;
  vertical-align: middle !important;
}

.s-sidebar-item.active .s-sidebar-menu-toggle {
  color: rgba(255, 255, 255, 0.8) !important;
}

.s-sidebar-item:hover .s-sidebar-menu-toggle {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Enhanced Submenu Styling */
.s-sidebar-menu .s-sidebar-menu {
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 4px 0 4px 20px !important;
  border-left: none !important;
  overflow: hidden !important;
  background: transparent !important;
}

.s-sidebar-menu .s-sidebar-menu .s-sidebar-item,
.s-sidebar-menu .s-sidebar-menu .s-sidebar-item:hover {
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  margin: 0 !important;
}

.s-sidebar-menu .s-sidebar-menu .s-sidebar-link {
  padding: 10px 14px !important;
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border-radius: 4px !important;
  border: none !important;
  background: transparent !important;
  position: relative !important;
  margin: 0 !important;
}

.s-sidebar-menu .s-sidebar-menu .s-sidebar-item.active {
  background: rgba(177,27,33,0.10) !important;
  border: 1.5px solid #b11b21 !important;
  border-radius: 8px !important;
  margin: 2px 4px !important;
  box-shadow: none !important;
  position: relative !important;
  overflow: visible !important;
  backdrop-filter: blur(6px) !important;
}

.s-sidebar-menu .s-sidebar-menu .s-sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 31px;
  background: #b11b21;
  border-radius: 0 5px 5px 0;
  z-index: 2;
  display: block !important;
  box-shadow: none;
}

.s-sidebar-menu .s-sidebar-menu .s-sidebar-item:hover {
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.s-sidebar-menu .s-sidebar-menu .s-sidebar-item:hover .s-sidebar-link {
  color: rgba(255, 255, 255, 0.75) !important;
  border-radius: 0 !important;
  border: none !important;
  background: transparent !important;
}

.s-sidebar-menu .s-sidebar-menu .s-sidebar-item:active {
  background: transparent !important;
}

.s-sidebar-menu .s-sidebar-menu .s-sidebar-item:active .s-sidebar-link {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Add bottom spacing for last child item when parent is active */
.s-sidebar-menu.collapse.show .s-sidebar-item:last-child {
  margin-bottom: 15px !important;
}

.s-sidebar-menu.collapse.show .s-sidebar-item:last-child .s-sidebar-link {
  margin-bottom: 0 !important;
}

/* Collapse Animation - Removed */
.s-sidebar-menu.collapse {
}

.s-sidebar-menu.collapse.show {
}

/* Remove slideDown animation */
@keyframes slideDown {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Dashboard Card Colors */
.db-card-orders {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.db-card-closed {
    background: linear-gradient(135deg, #38d670 0%, #00b38f 100%);
}

.db-card-customers {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}

.db-card-products {
    background: linear-gradient(135deg, #ff8c42 0%, #ffc42e 100%);
}

.s-dashboard-card-sm .card-body,
.s-dashboard-card-sm .icon,
.s-dashboard-card-sm p {
    color: #fff !important;
}

/* --- Enhanced Dashboard Card Styles --- */
.s-dashboard-card-sm {
    border-radius: 9px !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    position: relative;
}

.s-dashboard-card-sm:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.s-dashboard-card-sm .icon {
    transition: all 0.3s ease-in-out;
}

/* Add spacing between sidebar links when collapsed */
.s-sidebar-link {
  margin-bottom: 10px;
  margin-top: 10px;
}

.s-sidebar-link:last-child {
  margin-bottom: 0;
}

.s-TranslationGrid input.custom-text {
  width: 100%;
  height: 23px;
  padding: 0 3px;
}

.s-PermissionCheckEditor {
  min-height: 450px;
}

/* Make sidebar fixed and add scrolling */
.s-sidebar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  height: 100vh !important;
  z-index: 1000 !important;
  overflow: hidden !important;
  width: 285px !important;
}

.s-sidebar .s-sidebar-pane {
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-bottom: 20px !important;
  padding-left: 20px !important;
  padding-right: 10px !important;
}

/* Enhanced Custom Scrollbar for sidebar */
.s-sidebar .s-sidebar-pane::-webkit-scrollbar {
  width: 4px;
}

.s-sidebar .s-sidebar-pane::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.s-sidebar .s-sidebar-pane::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.s-sidebar .s-sidebar-pane::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Login Page Styling */
.s-full-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #b11b21 0%, #011227 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.s-full-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.s-container-tight {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

#LoginPanel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#LoginPanel .s-Panel {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#LoginPanel h5 {
  color: #011227;
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 30px !important;
}

#LoginPanel .px-field {
  margin-bottom: 7px;
}

#LoginPanel .px-field input {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
}

#LoginPanel .px-field input:focus {
  border-color: #b11b21;
  box-shadow: 0 0 0 3px rgba(177, 27, 33, 0.1);
  outline: none;
}

#LoginPanel .px-field label {
  color: #011227;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

#LoginPanel .btn-primary {
  background: linear-gradient(135deg, #b11b21 0%, #d32f2f 100%);
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(177, 27, 33, 0.3);
}

#LoginPanel .btn-primary:hover {
  background: linear-gradient(135deg, #a01515 0%, #c62828 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(177, 27, 33, 0.4);
}

#LoginPanel .btn-primary:active {
  transform: translateY(0);
}

#LoginPanel a {
  color: #b11b21;
  font-weight: 500;
  transition: color 0.3s ease;
}

#LoginPanel a:hover {
  color: #011227;
  text-decoration: none;
}

#LoginPanel .text-center a {
  color: #011227;
  font-weight: 400;
  padding: 0px 0px;
  display: inline-block;
  transition: all 0.3s ease;
}

/* Alert styling for login page */
#LoginPanel .alert {
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #011227;
  border-left: 4px solid #2196f3;
}

/* Responsive design */
@media (max-width: 480px) {
  #LoginPanel {
    padding: 30px 20px;
    margin: 10px;
  }
  
  .s-full-page {
    padding: 10px;
  }
}

/* Username caption width */
.caption[for="LoginPanel0_Username"] {
  width: 74px !important;
}

/* Password caption width */
.field.Password .caption {
  width: 74px !important;
}

/* String editor padding */
.editor.s-Serenity-StringEditor.s-StringEditor.required,
.editor.s-Serenity-StringEditor.s-StringEditor {
  padding: 10px !important;
}

/* Password editor padding */
.editor.s-Serenity-PasswordEditor.s-PasswordEditor.required,
.editor.s-Serenity-PasswordEditor.s-PasswordEditor {
  padding: 10px !important;
}

/* Login page logo styling */
#LoginPanel .s-form-title-logo {
  height: 50px !important;
  width: auto !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  border-radius: 5px !important;
  background-color:#b11b21
}

.p-4 {
  padding: 1.5rem !important;
}

/* Toggle Switch Styles */
.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  width: 50px;
  height: 24px;
  background-color: #ccc;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  user-select: none;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
}

.toggle-switch.toggle-on {
  background-color: #28a745;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch.toggle-off {
  background-color: #dc3545;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch:hover {
  transform: scale(1.05);
}

.toggle-switch.toggle-on:hover {
  background-color: #218838;
}

.toggle-switch.toggle-off:hover {
  background-color: #c82333;
}

.toggle-switch:active {
  transform: scale(0.95);
}

.toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.toggle-switch.toggle-on .toggle-slider {
  transform: translateX(26px);
}

.toggle-switch.toggle-off .toggle-slider {
  transform: translateX(0);
}

.toggle-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 1;
  white-space: nowrap;
}

.toggle-switch.toggle-on .toggle-text {
  left: 6px;
  content: "ON";
}

.toggle-switch.toggle-off .toggle-text {
  right: 6px;
  content: "OFF";
}

/* Animation for toggle state change */
.toggle-switch {
  animation: togglePulse 0.2s ease-in-out;
}

@keyframes togglePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Ensure proper alignment in grid cells */
.slick-cell .toggle-switch {
  margin: 0 auto;
  display: inline-flex;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .toggle-switch {
    width: 45px;
    height: 22px;
  }
  
  .toggle-slider {
    width: 18px;
    height: 18px;
    top: 2px;
  }
  
  .toggle-switch.toggle-on .toggle-slider {
    transform: translateX(23px);
  }
  
  .toggle-text {
    font-size: 7px;
  }
}

.s-sidebar-item.active.has-children {
  background: rgba(177,27,33,0.13) !important;
  border-left: 3px solid #b11b21 !important;
  border-top: none !important;
  border-bottom: none !important;
  border-right: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  backdrop-filter: blur(6px) !important;
}

.s-sidebar-item.active.has-children::before {
  display: none !important;
}

.s-sidebar-item.active:not(.has-children) .s-sidebar-link {
  background: rgba(177,27,33,0.10) !important;
  backdrop-filter: blur(6px) !important;
}

/* Responsive, collapsible sidebar */
.s-sidebar {
  width: 260px;
  transition: width 0.3s cubic-bezier(.4,0,.2,1);
  background: #00122f !important;
  overflow: hidden;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 1000;
}
.s-sidebar.collapsed {
  width: 70px !important;
}

/* Hamburger Menu Button */
.s-sidebar-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: 12px;
  display: none; /* Hidden by default, shown at ≤1199px */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

.s-sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.s-sidebar-toggle-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.s-sidebar-toggle-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.s-sidebar-toggle-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Sidebar collapse behavior - collapses at 1199px and below */
@media (max-width: 1199px) {
  .s-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  }
  
  .s-sidebar.mobile-open {
    transform: translateX(0);
  }
  
  /* Show hamburger button in navbar when sidebar is collapsed */
  .s-sidebar-toggle-btn {
    display: flex !important;
  }
  
  /* Add overlay for collapsed sidebar */
  .s-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .s-sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
  }
}

@media (min-width: 1200px) {
  .s-sidebar-toggle-btn {
    display: none;
  }
}

/* Adjust main content when sidebar is open */
@media (max-width: 1199px) {
  .s-main {
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  }
  
  body.sidebar-mobile-open .s-main {
    transform: translateX(260px);
  }
}

/* Sidebar content adjustments */
.s-sidebar .s-sidebar-link-text {
  transition: opacity 0.3s ease-in-out, width 0.3s ease-in-out;
  opacity: 1;
  white-space: nowrap;
  overflow: hidden;
}

.s-sidebar.collapsed .s-sidebar-link-text {
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  max-width: 0 !important;
  overflow: hidden !important;
  display: inline-block !important;
}

/* Sidebar links and items in collapsed state */
.s-sidebar.collapsed .s-sidebar-link {
  padding: 12px 8px !important;
  justify-content: center !important;
  text-align: center !important;
}

.s-sidebar.collapsed .s-sidebar-item {
  margin: 2px 4px !important;
}

/* Hide dropdown arrows in collapsed state */
.s-sidebar.collapsed .s-sidebar-menu-toggle {
  display: none !important;
}

/* Center icons in collapsed state */
.s-sidebar.collapsed .s-sidebar-icon {
  margin: 0 !important;
  text-align: center !important;
  display: block !important;
}

/* Adjust header branding in collapsed state */
.s-sidebar.collapsed .s-sidebar-header-branding .s-sidebar-header-title {
  display: none !important;
}

.s-sidebar.collapsed .s-sidebar-header-branding .s-sidebar-header-logo {
  margin-right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Hide child menus in collapsed state */
.s-sidebar.collapsed .s-sidebar-menu .s-sidebar-menu {
  display: none !important;
}
/* Hamburger toggle button removed */

/* Ensure sidebar content adjusts when collapsed */
.s-sidebar.collapsed .s-sidebar-pane {
  width: 70px !important;
  overflow: hidden !important;
}

.s-sidebar.collapsed .s-sidebar-search {
  padding: 15px 8px !important;
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.s-sidebar.collapsed .s-sidebar-search-input {
  display: none !important;
}

.s-sidebar.collapsed .s-sidebar-search-icon {
  margin: 0 !important;
  font-size: 18px !important;
  color: #666 !important;
}

/* Main menu adjustments */
.s-sidebar.collapsed .s-sidebar-menu {
  padding: 0 4px !important;
}

/* Ensure proper spacing for all elements */
.s-sidebar.collapsed .s-sidebar-item {
  width: 100% !important;
  margin-bottom: 4px !important;
}

.s-sidebar.collapsed .s-sidebar-item .s-sidebar-link {
  width: 100% !important;
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
@media (max-width: 768px) {
  .s-sidebar {
    left: -260px;
    transition: left 0.3s cubic-bezier(.4,0,.2,1);
  }
  .s-sidebar.open {
    left: 0;
  }
  .s-sidebar.collapsed {
    left: -70px;
  }
}