/* Customizing Bootstrap Colors for WP UltimaKit */
/* Primary Color */
.btn-primary,
.badge-primary,
.bg-primary {
  background-color: #6366f1 !important;
  border-color: #6366f1 !important;
}

/* Secondary Color */
.btn-secondary,
.badge-secondary,
.bg-secondary {
  background-color: gray !important;
  border-color: #e2e8f0 !important;
}

/* Highlight/Action Color */
.btn-warning,
.badge-warning,
.bg-warning {
  background-color: #8b5cf6 !important;
  border-color: #8b5cf6 !important;
}

/* Additional Styling for WP UltimaKit Full-Width Navigation */
.navbar {
  font-family: "Arial", sans-serif;
}

.nav-item.nav-link:hover {
  color: #8b5cf6 !important;
}
.nav-item.nav-link:last-child {
  padding: 5px 15px;
  border: 2px solid #8b5cf6;
  border-radius: 20px;
}
.nav-item.nav-link:last-child:hover {
  background-color: #8b5cf6;
  color: #ffffff !important;
}
.nav-item.nav-link.get-pro {
  padding: 5px 15px;
  border: 2px solid #8b5cf6;
  border-radius: 20px;
  background-color: #8b5cf6;
  color: #ffffff;
}
.nav-item.nav-link.get-pro:hover {
  background-color: #6366f1;
  color: #ffffff !important;
}

.module-container {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 20px 0;
  /* border-radius: 15px; */
  background-color: #FFFFFF;
}
.module-container .filters .filter_container {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}
.module-container .filters .filter_container h4 {
  margin-right: 20px;
  color: #6366f1;
  font-size: 22px;
}
.module-container .filters .filter_container select,
.module-container .filters .filter_container input {
  border: 2px solid #6366f1;
  border-radius: 10px;
  padding: 5px;
  margin-top: 0px;
}

.module-box {
  background-color: #FFFFFF;
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  margin: 10px;
  position: relative;
  height: 200px;
  box-sizing: border-box;
}
.module-box:hover {
  border: 2px solid #6366f1;
  box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3), 0 6px 20px rgba(99, 102, 241, 0.25);
}

/* Legacy module styles - only for old layout */
.module-container .module-title {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #6366f1;
  font-size: 1.1rem;
  max-width: 275px;
}

.module-container .module-description {
  position: absolute;
  top: 40px;
  left: 10px;
  font-size: 0.9em;
  color: #666;
  max-width: 90%;
  margin-top: 15px;
}

.module-container .module-switch {
  position: absolute;
  top: 10px;
  right: -30px;
}

/* Legacy learn-more-link styles - replaced by modern design below */



.doc-badge {
  position: absolute;
  bottom: 10px;
  right: 160px;
  color: #6366f1;
  padding: 1px 5px;
  border-radius: 8px;
  font-size: 0.9em;
  cursor: pointer;
}
.doc-badge a {
  text-decoration: none;
  color: #6366f1;
}

.WooCommerce .doc-badge {
  margin-right: 25px;
}

/* Legacy form check styles - only for old layout */
.module-container .form-check-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.module-container .form-check-input:checked + .form-check-label::before {
  background-color: #6366f1;
}
.module-container .form-check-input:checked + .form-check-label::after {
  left: 16px;
}

/* Legacy form check label styles - only for old layout */
.module-container .form-check-label {
  position: relative;
  padding-left: 45px;
  cursor: pointer;
  font-weight: 600;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
}
.module-container .form-check-label::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 30px;
  height: 16px;
  background-color: #ddd;
  border-radius: 8px;
  transition: background-color 0.3s;
}
.module-container .form-check-label::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 2px;
  width: 12px;
  height: 12px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: left 0.3s;
}

/* Tabs */
.nav-tabs {
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 15px;
}
.nav-tabs .nav-item {
  margin-bottom: -2px;
}
.nav-tabs .nav-item .nav-link {
  border-radius: 8px 8px 0 0;
  border: 2px solid transparent;
  color: #6366f1;
  padding: 10px 15px;
  transition: all 0.3s;
  box-shadow: none;
}
.nav-tabs .nav-item .nav-link:hover {
  background-color: #F2F2F2;
  border-color: #e2e8f0;
  box-shadow: none;
}
.nav-tabs .nav-item .nav-link.active {
  background-color: #6366f1;
  color: #FFFFFF;
  border: none;
}

.tab-content {
  border: 2px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 20px;
  margin-top: -17px;
}

/* Legacy Plugin Badge - replaced by modern design below */

/* Module Filters */
.module-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.module-filters .form-select,
.module-filters .form-control {
  width: auto;
}

.search-control {
  width: 20%;
}
.search-control input {
  width: 100% !important;
}
.search-control .form-control {
  width: 200px;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  color: #333;
}
.search-control .form-control:hover {
  border-color: #555;
}
.search-control .form-control:focus {
  border-color: #6366f1;
  outline: none;
  box-shadow: 0 0 5px rgba(99, 102, 241, 0.3);
}

/* Help Content */
.help-container {
  background-color: #f8fafc;
  border-radius: 10px;
  padding: 20px 30px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
}

.help-section {
  margin-bottom: 40px;
}
.help-section h2 {
  border-bottom: 2px solid #e0e2e6;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 1.4em;
}
.help-section a {
  color: #6366f1;
  text-decoration: none;
  transition: color 0.3s;
}
.help-section a:hover {
  color: #4f46e5;
}

.faqs .faq-item {
  margin-bottom: 20px;
  border-left: 4px solid #6366f1;
  padding-left: 15px;
}
.faqs h3 {
  color: #6366f1;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.plugins-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.plugin-item {
  flex: 1;
  max-width: calc(33.33% - 20px);
  background-color: #f8fafc;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.plugin-item h3 {
  font-size: 1.2em;
  color: #6366f1;
  margin-bottom: 10px;
}

.plugin-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.explore-btn {
  background-color: #6366f1;
  color: #ffffff;
  border-radius: 8px;
  padding: 10px 20px;
  text-decoration: none;
  transition: background-color 0.3s;
}
.explore-btn:hover {
  background-color: #4f46e5;
}

/* Plan Comparison */
.ultimakit-plans-comparison-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px;
  background-color: #f8fafc;
}

.ultimakit-plan {
  flex: 1;
  margin: 15px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s;
  background-color: #fff;
}
.ultimakit-plan:hover {
  transform: scale(1.05);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
}
.ultimakit-plan h2 {
  font-size: 24px;
  margin-top: 0;
  color: #6366f1;
}

.ultimakit-price {
  font-size: 30px;
  margin: 15px 0;
  font-weight: bold;
  color: #6366f1;
}

.ultimakit-ul {
  list-style-type: none;
  padding: 0;
}

.ultimakit-li {
  padding: 5px 0;
  color: #333;
}

.ultimakit-unavailable {
  text-decoration: line-through;
  color: #999;
}

.ultimakit-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #6366f1;
  color: #fff;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}
.ultimakit-btn:hover {
  background-color: #4f46e5;
}

/* Toast notifications */
.toast-success {
  background-color: #4CAF50;
  color: #fff;
  border-radius: 10px;
  font-size: 16px;
}

.toast-error {
  background-color: #F44336;
  color: #fff;
  border-radius: 10px;
  font-size: 16px;
}

/* Modal */
.ultimakit_modal .modal-dialog-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100% - 1rem);
  border-radius: 0px;
}
.ultimakit_modal .modal-dialog {
  margin: 0 auto;
}
.ultimakit_modal .modal-header {
  background-color: #6366f1;
  padding: 10px;
  letter-spacing: 0.5px;
  border-radius: 0px;
}
.ultimakit_modal .modal-title {
  color: #ffffff;
  font-weight: 400;
}
.ultimakit_modal ul {
  padding-left: 5px;
  font-size: 0.9em;
}
.ultimakit_modal ul input[type=text],
.ultimakit_modal ul select {
  width: 100%;
  max-width: 350px;
}
.ultimakit_modal .modal-footer {
  padding: 5px;
}
.ultimakit_modal .btn-secondary {
  color: #6366f1;
  text-decoration: none;
  border: 2px solid #6366f1 !important;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.9em;
  background-color: #FFFFFF !important;
  cursor: pointer;
}
.ultimakit_modal .btn-secondary:hover {
  color: #FFFFFF;
  background-color: #6366f1 !important;
}
.ultimakit_modal .btn-primary {
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.9em;
  cursor: pointer;
}
.ultimakit_modal .btn-primary:hover {
  color: #6366f1;
  border: 2px solid #6366f1 !important;
  background-color: #FFFFFF !important;
}

/* Module Settings */
.module_settings ul {
  margin: 0px !important;
  padding: 0px !important;
}
.module_settings input[type=text],
.module_settings input[type=password],
.module_settings input[type=email],
.module_settings input[type=number] {
  width: 100%;
}
.module_settings label {
  font-weight: 500 !important;
}
.module_settings .module-switch {
  position: relative;
  top: auto;
  right: auto;
  margin-left: -40px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.fs-notice.success {
  color: #6366f1;
}

.notice-success,
div.updated {
  border-left-color: #6366f1;
}

.pro-plan {
  background: rgba(99, 102, 241, 0.0588235294);
}

.modal-body {
  padding: 10px 20px;
}
.modal-body select {
  width: 100%;
  max-width: 100%;
  padding: 5px;
}
.modal-body textarea {
  width: 100%;
  min-height: 300px;
  padding: 15px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #2c3e50;
  background-color: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  resize: vertical;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.modal-body textarea:focus {
  outline: none;
  border-color: #6366f1;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.modal-body textarea:hover {
  border-color: #adb5bd;
  background-color: #ffffff;
}

/* Special styling for CSS textarea */
.modal-body textarea[name="custom_css"] {
  background-color: #1e1e1e;
  color: #d4d4d4;
  border-color: #404040;
  font-size: 14px;
  line-height: 1.6;
}

.modal-body textarea[name="custom_css"]:focus {
  border-color: #6366f1;
  background-color: #1e1e1e;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.modal-body textarea[name="custom_css"]:hover {
  border-color: #555555;
  background-color: #1e1e1e;
}

/* CSS syntax highlighting colors for better readability */
.modal-body textarea[name="custom_css"]::placeholder {
  color: #6c757d;
  font-style: italic;
}

/* Add a subtle scrollbar styling for the textarea */
.modal-body textarea::-webkit-scrollbar {
  width: 8px;
}

.modal-body textarea::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-body textarea::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.modal-body textarea::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Dark theme scrollbar for CSS textarea */
.modal-body textarea[name="custom_css"]::-webkit-scrollbar-track {
  background: #2d2d2d;
}

.modal-body textarea[name="custom_css"]::-webkit-scrollbar-thumb {
  background: #555555;
}

.modal-body textarea[name="custom_css"]::-webkit-scrollbar-thumb:hover {
  background: #777777;
}

.not_paying {
  opacity: 0.5;
}

.wpuk-version-info {
  font-size: 8px;
  letter-spacing: 1px;
  float: right;
  position: absolute;
  right: 70px;
  margin-top: 5px;
}

.modal-footer .btn {
  margin-right: 20px;
}

.ultimakit_view_mode a {
  text-decoration: none;
  margin-right: 15px;
}
.ultimakit_view_mode a span {
  font-size: 28px;
  color: #6366f1;
}

#ultimakit_search_module.typing {
  animation: typing 0.3s ease-in-out;
}

@keyframes typing {
  0% {
    background-color: #fff;
  }
  50% {
    background-color: #e0f7fa;
  }
  100% {
    background-color: #fff;
  }
}
#wpukTabs li a span {
  padding: 4px 10px;
  background-color: #6366f1;
  border-radius: 100%;
  color: #ffffff;
  margin-left: 10px;
}

#toast-container > div {
  opacity: 1;
  -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  filter: alpha(opacity=100);
}

/* Legacy pro-module-opacity - replaced by modern design below */

#toast-container.toast-bottom-center > div, #toast-container.toast-top-center > div {
  width: 500px;
}

.ultimakit_hide_settings {
  display: none;
}

#marketplace-modules .card {
  background-color: #FFFFFF;
  border: 2px solid #e2e8f0;
  border-radius: 15px;
}
#marketplace-modules .card:hover {
  border: 2px solid #6366f1;
  box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3), 0 6px 20px rgba(99, 102, 241, 0.25);
}

.copy-code {
  transition: all 0.3s ease;
}

.ultimakit-promo-banner {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.ultimakit-promo-banner .promo-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .ultimakit-promo-banner .promo-content {
    flex-direction: column;
    text-align: center;
  }
}
.ultimakit-promo-banner .promo-badge {
  background: #ff6b6b;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
@media (max-width: 768px) {
  .ultimakit-promo-banner .promo-badge {
    align-self: center;
  }
}
.ultimakit-promo-banner .promo-main {
  flex-grow: 1;
}
.ultimakit-promo-banner .promo-heading {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: bold;
}
.ultimakit-promo-banner .promo-description {
  margin: 0;
  opacity: 0.9;
}
.ultimakit-promo-banner .promo-offer {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
}
.ultimakit-promo-banner .promo-offer a {
  color: inherit;
  text-decoration: inherit;
}
@media (max-width: 768px) {
  .ultimakit-promo-banner .promo-offer {
    width: 100%;
  }
}
.ultimakit-promo-banner .discount-text {
  font-size: 1.8rem;
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}
.ultimakit-promo-banner .promo-code-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.ultimakit-promo-banner .promo-code {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 1.1rem;
}
.ultimakit-promo-banner .copy-code {
  background: #fff;
  color: #6366f1;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}
.ultimakit-promo-banner .copy-code:hover {
  background: #f0f0f0;
}
.ultimakit-promo-banner .valid-until {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

:root {
  --primary-color: #6366f1;
  --primary-color-dark: #4f46e5;
  --secondary-color: #4CAF50;
  --text-color: #2c3e50;
  --light-bg: #f8f9fa;
  --border-radius-lg: 12px;
  --border-radius-md: 6px;
  --border-radius-pill: 20px;
  --sale-color: #e74c3c;
}





/* Style for the labels */
#moduleFilterForm input[type=radio]:checked::before {
  margin: 0.1275rem;
  background-color: #6366f1;
}

/* Modern UltimaKit Dashboard Styles */
.ultimakit-modern-dashboard {
    margin: 0;
    padding: 0;
    background: #f8fafc;
    min-height: 100vh;
}

/* UltimaKit Header */
.ultimakit-header {
    background: #6366f1;
    color: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-brand .logo {
    height: 40px;
    width: auto;
}

.version-info {
    font-size: 12px;
    opacity: 0.8;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.header-actions .btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.header-actions .btn-primary {
    background: #8b5cf6;
    color: #8b5cf6;
    border-color: #8b5cf6;
}

.header-actions .btn-primary:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #8b5cf6;
}

.header-actions .btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.header-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Dashboard Header */
.ultimakit-dashboard-header {
    background: #fff;
    border-bottom: 1px solid #dcdcde;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content h1 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1d2327;
}

.header-content p {
    margin: 0;
    color: #646970;
    font-size: 14px;
}

.dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    min-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 1px #6366f1;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #646970;
    font-size: 18px;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-toggle .btn {
    padding: 8px 12px;
    border: 1px solid #dcdcde;
    background: #fff;
    color: #646970;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle .btn:hover {
    background: #f6f7f7;
    border-color: #6366f1;
    color: #6366f1;
}

.view-toggle .btn.active {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.view-toggle .btn.active:hover {
    background: #4f46e5;
    border-color: #4f46e5;
}

/* Settings Actions */
.settings-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid #dcdcde;
}

.settings-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
}

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

.settings-actions .btn-primary {
    background-color: #6366f1;
    border-color: #6366f1;
    color: #ffffff;
}

.settings-actions .btn-primary:hover {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
}

.settings-actions .btn-secondary {
    background-color: transparent;
    border-color: #6366f1;
    color: #6366f1;
}

.settings-actions .btn-secondary:hover {
    background-color: #f0f0ff;
    border-color: #4f46e5;
    color: #4f46e5;
}

/* Dashboard Layout */
.ultimakit-dashboard-layout {
    display: flex;
    min-height: calc(100vh - 100px);
}

/* Sidebar */
.ultimakit-sidebar {
    width: 240px;
    background: #fff;
    border-right: 1px solid #dcdcde;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}



/* Category List */
.sidebar-categories {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

.sidebar-categories h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.category-item:hover {
    background: #f6f7f7;
    border-color: #dcdcde;
}

.category-item.active {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
}

.category-count {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.category-item:not(.active) .category-count {
    background: #f8fafc;
    color: #646970;
}

/* Search Results Highlighting */
.category-item.has-search-results {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}

.category-item.has-search-results:hover {
    background: #4f46e5;
    border-color: #4f46e5;
}

.category-item.has-search-results .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 700;
}

.category-item.has-search-results.active {
    background: #6366f1;
    border-color: #6366f1;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.category-item.has-search-results.active .category-count {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Main Content */
.ultimakit-main-content {
    flex: 1;
    background: #f8fafc;
    overflow-y: auto;
}

/* Content header removed - modules grid now starts directly */

/* Modules Grid */
.modules-grid {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

/* Modern Module Cards */
.module-block {
    background: #fff;
    border: 1px solid #dcdcde;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.module-block:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.module-block.active {
    border-left: 4px solid #28a745;
}

.module-block.inactive {
    border-left: 4px solid #94a3b8;
}

.module-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 12px 0;
    line-height: 1.3;
    padding-right: 80px; /* Space for switch in top right */
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.module-description {
    font-size: 14px;
    color: #646970;
    margin: 0 0 20px 0; /* Reduced bottom margin since badges are removed */
    line-height: 1.5;
    flex: 1; /* Take remaining space */
    min-height: 60px; /* Minimum height for description */
    transition: all 0.3s ease;
    opacity: 1;
    max-height: 200px;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Module Switch */
.module-block .module-switch {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 !important;
    padding: 0 !important;
}

/* Creative Power Button Switch Design - Only for module listing page */
.ultimakit-modern-dashboard .module-block .form-check.form-switch {
    padding-left: 0;
    margin: 0;
    position: relative;
}

.ultimakit-modern-dashboard .module-block .form-check.form-switch .form-check-input {
    width: 36px !important;
    height: 36px !important;
    margin: 0;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 50% !important;
    cursor: pointer;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.1),
        inset 0 1px 3px rgba(255,255,255,0.8);
}

/* Power symbol */
.ultimakit-modern-dashboard .module-block .form-check.form-switch .form-check-input::before {
    content: '⏻';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
    color: #6c757d;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
}

/* Remove the toggle button since we're using a power symbol */
.ultimakit-modern-dashboard .module-block .form-check.form-switch .form-check-input::after {
    display: none;
}

/* ON state - powered up */
.ultimakit-modern-dashboard .module-block .form-check.form-switch .form-check-input:checked {
    background: linear-gradient(145deg, #6366f1, #4f46e5);
    border-color: #6366f1;
    box-shadow: 
        0 4px 12px rgba(99, 102, 241, 0.3),
        inset 0 1px 3px rgba(255,255,255,0.2);
    transform: none;
}

.ultimakit-modern-dashboard .module-block .form-check.form-switch .form-check-input:checked::before {
    content: '⏻';
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
    /* Ensure proper centering during animation */
    transform: translate(-50%, -50%);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
}

/* Hover effects */
.ultimakit-modern-dashboard .module-block .form-check.form-switch .form-check-input:hover {
    transform: scale(1.05);
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.15),
        inset 0 1px 3px rgba(255,255,255,0.8);
}

.ultimakit-modern-dashboard .module-block .form-check.form-switch .form-check-input:checked:hover {
    transform: scale(1.15);
    box-shadow: 
        0 6px 16px rgba(99, 102, 241, 0.4),
        inset 0 1px 3px rgba(255,255,255,0.2);
}

/* Focus state */
.ultimakit-modern-dashboard .module-block .form-check.form-switch .form-check-input:focus {
    outline: none;
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.1),
        inset 0 1px 3px rgba(255,255,255,0.8),
        0 0 0 3px rgba(99, 102, 241, 0.25);
}

/* Active state - when clicked */
.ultimakit-modern-dashboard .module-block .form-check.form-switch .form-check-input:active {
    transform: scale(0.95);
}

/* Pulse animation for active state */
@keyframes pulse {
    0% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 1;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.05); 
        opacity: 0.95;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 1;
    }
}

/* Hide the label text */
.ultimakit-modern-dashboard .module-block .form-check.form-switch .form-check-label {
    display: none;
}

/* Ensure module settings switches use the original simple design */
.wpuk_modal .form-check.form-switch .form-check-input {
    width: 2em !important;
    height: 1em !important;
    margin: 0;
    background-image: var(--bs-form-switch-bg);
    background-position: left center;
    border-radius: 2em;
    transition: background-position .15s ease-in-out;
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    box-shadow: none;
    border: none;
}

.wpuk_modal .form-check.form-switch .form-check-input::before {
    display: none;
}

.wpuk_modal .form-check.form-switch .form-check-input::after {
    display: none;
}

.wpuk_modal .form-check.form-switch .form-check-input:checked {
    background-position: right center;
    background: var(--bs-form-switch-bg);
    border: none;
    box-shadow: none;
    transform: none;
}

.wpuk_modal .form-check.form-switch .form-check-input:checked::before {
    display: none;
}

.wpuk_modal .form-check.form-switch .form-check-input:hover {
    transform: none;
    box-shadow: none;
}

.wpuk_modal .form-check.form-switch .form-check-input:checked:hover {
    transform: none;
    box-shadow: none;
}

.wpuk_modal .form-check.form-switch .form-check-input:focus {
    outline: none;
    box-shadow: none;
}

.wpuk_modal .form-check.form-switch .form-check-input:active {
    transform: none;
}

.wpuk_modal .form-check.form-switch .form-check-label {
    display: none;
}

.wpuk_modal .form-check.form-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    line-height: 1.5;
}

/* Hide WordPress plugin badge */
.plugin-badge {
    display: none !important;
}

/* Plan-based Module Styling */
.module-block.pro-plan {
    border-left: 4px solid #6366f1;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    position: relative;
}

.module-block.pro-plan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(99, 102, 241, 0.05) 100%);
    pointer-events: none;
    border-radius: inherit;
}

.module-block.free-plan {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #f0fff2 100%);
    position: relative;
}

.module-block.free-plan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.02) 0%, rgba(40, 167, 69, 0.05) 100%);
    pointer-events: none;
    border-radius: inherit;
}

/* Hover effects for plan-based styling */
.module-block.pro-plan:hover {
    border-left-color: #4f46e5;
    background: linear-gradient(135deg, #f0f2ff 0%, #e8ebff 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.module-block.free-plan:hover {
    border-left-color: #218838;
    background: linear-gradient(135deg, #f0fff2 0%, #e8ffeb 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

/* Settings Button - Blue Rectangle Design */
.learn-more-link {
    position: absolute;
    bottom: 0;
    right: 0;
    text-decoration: none;
    cursor: pointer;
    z-index: 5;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    transition: all 0.2s ease;
    background: #6366f1;
    padding: 8px 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Remove pseudo-element, use direct text */
.learn-more-link::before {
    display: none;
}

/* Hover effects */
.learn-more-link:hover {
    background: #4f46e5;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

/* Duplicate hover styles removed */

/* Pro Module Opacity */
.pro-module-opacity {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .modules-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .ultimakit-sidebar {
        width: 220px;
    }
    
    .modules-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .ultimakit-dashboard-layout {
        flex-direction: column;
    }
    
    .ultimakit-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #dcdcde;
    }
    
    .ultimakit-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-brand {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .dashboard-header-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .settings-actions {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #dcdcde;
        padding-top: 15px;
        justify-content: center;
    }
    
    .search-box {
        min-width: auto;
    }
    
    /* Content header removed from mobile layout */
    
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .module-block {
        min-height: 100px;
        padding: 20px;
    }
}

/* Compact View */
.ultimakit-modern-dashboard.compact-view .module-description {
    opacity: 0;
    max-height: 0;
    margin: 0;
    overflow: hidden;
}

.ultimakit-modern-dashboard.compact-view .module-block {
    padding: 20px;
    min-height: 80px;
}

.ultimakit-modern-dashboard.compact-view .module-title {
    margin-bottom: 15px;
    padding-right: 70px;
}

.ultimakit-modern-dashboard.compact-view .module-switch {
    top: 15px;
    right: 15px;
}

.ultimakit-modern-dashboard.compact-view .learn-more-link {
    bottom: 0;
    right: 0;
    font-size: 10px;
    padding: 6px 8px;
}



.ultimakit-modern-dashboard.compact-view .modules-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    padding: 20px;
}

/* Category Content */
.category-content {
    display: none;
}

.category-content.active {
    display: block;
}

/* Loading States */
.modules-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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