input[type="checkbox"],
.k-checkbox {
  accent-color: #0d6efd !important;
}
/* Help System - CSS Styles */

/* Help button in the top toolbar */
.window-top-right-toolbar .btn-help {
  background-color: #6b8e23 !important;
  border: 2px solid #6b8e23 !important;
  border-radius: 6px !important;
  width: 26px !important;
  height: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 4px rgba(107, 142, 35, 0.3) !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

.window-top-right-toolbar .btn-help:hover {
  background-color: #556b2f !important;
  border-color: #556b2f !important;
  box-shadow: 0 4px 8px rgba(107, 142, 35, 0.4) !important;
  transform: scale(1.05) !important;
}

.window-top-right-toolbar .btn-help:active {
  transform: scale(0.95) !important;
  background-color: #4a5e1a !important;
  border-color: #4a5e1a !important;
}

.window-top-right-toolbar .btn-help:focus {
  outline: 2px solid #ffffff !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 3px rgba(107, 142, 35, 0.3) !important;
}

.window-top-right-toolbar .btn-help .help-question-mark {
  color: white !important;
  font-size: 15px !important;
  font-weight: bold !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.window-top-right-toolbar .btn-help:hover .help-question-mark {
  color: white !important;
}

.window-top-right-toolbar .btn-help:active .help-question-mark {
  color: white !important;
}

.window-top-right-toolbar .btn-help:focus .help-question-mark {
  color: white !important;
}

/* Window controls group */
.window-top-right-toolbar .window-controls {
  gap: 2px;
}

.window-top-right-toolbar .window-controls .btn {
  min-width: auto;
  flex-shrink: 0;
}

/* Toolbar layout */
.window-top-right-toolbar {
  position: relative;
  z-index: 1000;
}

.window-top-right-toolbar > div {
  gap: 8px;
}

/* Help modal */
.help-modal .modal-header {
  border-bottom: 2px solid #dee2e6;
}

.help-modal-header {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
}

.help-modal .modal-title {
  font-size: 2rem;
  font-weight: 700;
}

.help-modal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
  font-size: 1.15rem;
}

/* Custom alert with green tones */
.alert-success-custom {
  --bs-alert-color: #155724 !important;
  --bs-alert-bg: #f8fff4 !important;
  --bs-alert-border-color: #d4edda !important;
  --bs-alert-link-color: #155724 !important;
  color: #155724 !important;
  background-color: #f8fff4 !important;
  border: 1px solid #d4edda !important;
  border-radius: 0.375rem !important;
  padding: 0.75rem 1rem !important;
  display: flex !important;
  align-items: center !important;
}

.alert-success-custom i {
  color: #155724 !important;
}

/* Help accordion */
.help-accordion .accordion-item {
  border: 1px solid #e9ecef;
  margin-bottom: 10px;
  border-radius: 8px !important;
  overflow: hidden;
}

.help-accordion .accordion-header button {
  font-weight: 600;
  color: #495057;
  background-color: #f8f9fa;
  border: none;
  padding: 15px 20px;
  font-size: 1.3rem;
}

.help-accordion .accordion-header button:hover {
  background-color: #e9ecef;
}

.help-accordion .accordion-header button:not(.collapsed) {
  background-color: #f8f9fa;
  color: #6b8e23;
  box-shadow: none;
  border-left: 4px solid #6b8e23;
}

.help-accordion .accordion-body {
  padding: 20px;
  background-color: white;
  font-size: 1.1rem;
}

/* Floating help button */
.help-button-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: none;
  background: #6b8e23;
}

.help-button-fixed:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  background: #556b2f;
}

.help-button-fixed:active {
  transform: scale(0.95);
}

/* Steps list */
.help-steps {
  background-color: #f8f9fa;
  border-left: 4px solid #6b8e23;
  padding: 15px;
  margin: 15px 0;
  border-radius: 0 5px 5px 0;
}

.help-steps h6 {
  color: #6b8e23;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.help-steps ol {
  margin-bottom: 0;
  padding-left: 20px;
}

.help-steps li {
  margin-bottom: 8px;
  line-height: 1.5;
  font-size: 1.15rem;
}

/* Tips list */
.help-tips {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin: 15px 0;
  border-radius: 0 5px 5px 0;
}

.help-tips h6 {
  color: #856404;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.help-tips ul {
  margin-bottom: 0;
  list-style: none;
  padding-left: 0;
}

.help-tips li {
  margin-bottom: 8px;
  line-height: 1.5;
  position: relative;
  padding-left: 25px;
  font-size: 1.08rem;
}

.help-tips li::before {
  content: "💡";
  position: absolute;
  left: 0;
  top: 0;
}

/* Information section */
.help-info-section {
  background-color: #f8fff4;
  border: 1px solid #d4edda;
  border-radius: 5px;
  padding: 15px;
  margin: 15px 0;
}

.help-info-section p {
  margin-bottom: 0;
  color: #155724;
  font-size: 1.12rem;
}

/* Help dropdown */
.help-dropdown .dropdown-toggle::after {
  margin-left: 8px;
}

.help-dropdown .dropdown-menu {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 200px;
}

.help-dropdown .dropdown-item {
  padding: 10px 16px;
  font-size: 14px;
  color: #495057;
  border-radius: 0;
  transition: all 0.2s ease;
}

.help-dropdown .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #6b8e23;
  transform: translateX(4px);
}

.help-dropdown .dropdown-item i {
  width: 16px;
  text-align: center;
}

.help-dropdown .dropdown-divider {
  margin: 8px 16px;
  border-color: #e9ecef;
}

/* Custom tooltips */
.help-tooltip {
  font-size: 12px;
  max-width: 200px;
}

/* Keyboard shortcuts */
.help-keyboard-shortcuts {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  padding: 10px;
  margin-top: 15px;
  font-size: 12px;
  color: #6c757d;
}

.help-keyboard-shortcuts kbd {
  background-color: #495057;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  margin: 0 2px;
}

/* Animations */
@keyframes helpSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.help-modal .modal-content {
  animation: helpSlideIn 0.3s ease-out;
}

@keyframes helpPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}

.help-button-pulse {
  animation: helpPulse 2s infinite;
}

/* External help window - styles embedded in generated HTML */

/* Fix for radio button colors - ensure they stay blue instead of purple */
input[type="radio"] {
  accent-color: #0d6efd !important; /* Bootstrap blue */
}

.form-check-input[type="radio"] {
  accent-color: #0d6efd !important; /* Bootstrap blue */
}

/* Specific fix for radio buttons that might be affected by global styles */
input[type="radio"]:checked {
  accent-color: #0d6efd !important; /* Bootstrap blue */
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
}

.page-dashboard input[type="radio"] {
  accent-color: #0d6efd !important; /* Bootstrap blue */
}

.page-dashboard input[type="radio"]:checked {
  accent-color: #0d6efd !important; /* Bootstrap blue */
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
}

/* Additional fixes for Home page radio buttons */
.page-dashboard .radio-buttons input[type="radio"] {
  accent-color: #0d6efd !important; /* Bootstrap blue */
  background-color: transparent !important;
}

.page-dashboard .radio-buttons input[type="radio"]:checked {
  accent-color: #0d6efd !important; /* Bootstrap blue */
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
}

/* Force blue color on all radio buttons across the app */
body input[type="radio"] {
  accent-color: #0d6efd !important; /* Bootstrap blue */
}

body input[type="radio"]:checked {
  accent-color: #0d6efd !important; /* Bootstrap blue */
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
}

/* Responsive */
@media (max-width: 768px) {
  .help-button-fixed {
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
  
  .help-modal .modal-dialog {
    margin: 10px;
  }
  
  .help-modal .modal-body {
    max-height: 60vh;
    padding: 15px;
  }
  
  .help-accordion .accordion-body {
    padding: 15px;
  }
  
  .help-steps, .help-tips {
    padding: 12px;
    margin: 10px 0;
  }
  
  /* Make images larger on mobile for better visibility */
  .help-section-image {
    width: 120px;
    max-width: 70%;
  }
}

@media (max-width: 480px) {
  .help-section-image {
    width: 90px;
    max-width: 70%;
  }
}

/* Loading states */
.help-loading {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.help-loading i {
  font-size: 2rem;
  margin-bottom: 15px;
  animation: spin 1s linear infinite;
}

/* Image support for help sections */
.help-image-container {
  text-align: center;
  margin: 20px 0;
}

.help-section-image {
  max-width: 43%;
  height: auto;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.help-section-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.help-image-caption {
  font-style: italic;
  text-align: center;
  margin-top: 8px;
  font-size: 0.9em;
}

/* Image modal for fullscreen view */
.help-image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.help-image-modal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Error states */
.help-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 15px;
  border-radius: 5px;
  margin: 15px 0;
}

.help-error i {
  margin-right: 8px;
}

/* Badge customization */
.help-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
}

/* Accessibility improvements */
.help-button-fixed:focus,
.help-dropdown .dropdown-toggle:focus {
  outline: 2px solid #6b8e23;
  outline-offset: 2px;
}

.help-modal .modal-content:focus {
  outline: none;
}

/* Help system navigation styles */
.main-nav-link {
  position: relative;
  padding: 10px 15px;
  color: #495057;
  text-decoration: none;
  transition: all 0.3s ease;
}

.main-nav-link.active {
  background-color: #6b8e23;
  color: white;
  font-weight: 600;
  border-radius: 4px;
  margin: 0 5px;
}

/* Estilos para la flecha del submenu */
.submenu-toggle {
  transition: transform 0.3s ease;
}

.submenu-toggle.expanded {
  transform: rotate(90deg);
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .help-button-fixed {
    border: 2px solid #000;
  }
  
  .help-accordion .accordion-header button:not(.collapsed) {
    background-color: #000;
    color: #fff;
  }
  
  .help-steps {
    border-left-color: #000;
  }
  
  .help-tips {
    border-left-color: #000;
  }
}

/* Reduced motion for sensitive users */
@media (prefers-reduced-motion: reduce) {
  .help-button-fixed {
    transition: none;
  }
  
  .help-button-fixed:hover {
    transform: none;
  }
  
  .help-modal .modal-content {
    animation: none;
  }
  
  .help-button-pulse {
    animation: none;
  }
  
  .help-loading i {
    animation: none;
  }
}
