body {
  font-family: "Poppins", sans-serif;
  background: #f8f9fa;
  font-size: 12px;
  margin: 0px 15px;
}

.in_progress { color: #0d6efd; }
.open { color: #28a745; }
.resolved { color: #fd7e14; }
.closed { color: #dc3545; }

.status {
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  margin-top: 5px;
}

.status-menu-container {
  position: relative;
  display: inline-block;
}

.status-dots-btn {
  font-size: 15px;
  cursor: pointer;
  font-weight: bold;
  background: #fff;
  border-radius: 100px;
  color: #495057;
  font-weight: bold;
  border: 1px solid #ddd;
}

.status-options {
  position: absolute;
  top: 24px;
  right: 0;
  background: white;
  border: 1px solid #ced4da;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 100;
  min-width: 120px;
  padding: 5px;
}

.message-time {
  font-size: 10px;
  margin-top: 5px;
}

.status-option {
  padding: 5px 12px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s;
  font-weight: 400;
  border-radius: 4px;
}

.status-option:hover { background-color: #f1f1f1; }

.chat-container {
  display: flex;
  height: 84vh;
  overflow: hidden;
  padding: 2px;
}

.support-list {
  width: 35%;
  background: #fff;
  border: 1px solid #ced4da;
  overflow-y: auto;
  margin-right: 20px;
  border-radius: 6px;
}

.support-list ul {
  list-style: none;
  padding: 15px;
  margin: 0;
}

.support-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  transition: 0.2s;
}

.support_priority {
  background: #dee2e6;
  border-radius: 100px;
  font-size: 11px;
  padding: 2px 5px;
  font-weight: 500;
}

.support-item:hover, .support-item.active {
  background: #f7fbfa;
  border-color: #0d9a63;
}

.left-block { display: flex; align-items: center; }
.subject { font-weight: 600; }
.date { font-size: 10px; color: #666; }
.right-block { text-align: right; }

.chat-window {
  width: 65%;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 10px 15px;
  background: #e9ecef;
  border-bottom: 1px solid #f8f9fa;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  font-weight: 600;
  font-size: 14px;
}

.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #fff;
}

.message-row {
  display: flex;
  margin-bottom: 15px;
}

.message-row.left { justify-content: flex-start; }
.message-row.right { justify-content: flex-end; }

.message-bubble {
  max-width: 70%;
  background: #e2ffe7;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 400;
  border-radius: 1.25rem;
  border-bottom-left-radius: 0;
}

.message-bubble.admin {
  background: #d1e7ff;
  border-radius: 1.25rem;
  border-bottom-right-radius: 0;
}

.you-label, .user-label {
  background: #dee2e6;
  color: #495057;
  padding: 2px 6px;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  font-size: 8px;
  font-weight: bold;
  margin-top: 12px;
}

.you-label { margin-left: 5px; }
.user-label { margin-right: 5px; }

.chat-form {
  background: #fff;
  padding: 10px;
  margin-bottom: 0px;
  border-radius: 5px;
  padding-top: 0px;
}

.chat-input-wrapper {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 25px;
  border: 1px solid #ced4da;
  font-size: 12px;
  padding: 4px 0px;
  padding-left: 5px;
}

.chat-input-wrapper textarea {
  flex: 1;
  border: none;
  resize: none;
  background: transparent;
  padding: 5px 6px;
  max-height: 150px;
  outline: none;
  font-size: 12px;
}

.icon-btn {
  background: #e9ecef;
  border: 1px solid #e9ecef;
  width: 25px;
  height: 25px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.send-btn {
  font-size: 20px;
  color: #fff;
  background: #108474;
  width: 28px;
  height: 28px;
}

.file-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px 10px;
}

.file-preview-box {
  position: relative;
  background: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 5px;
  padding: 5px;
  font-size: 11px;
  max-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-img {
  width: 70px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
}

.remove-file-btn {
  position: absolute;
  top: -1px;
  right: -2px;
  background: red;
  color: white;
  font-size: 13px;
  border: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-img {
  max-width: 180px;
  max-height: 180px;
  border-radius: 10px;
  margin-top: 0px;
  cursor: pointer;
  border: 1px solid #ccc;
}

#chatMessages {
  scrollbar-width: thin;
  scrollbar-color: #bcbcbc transparent;
}

#chatMessages::-webkit-scrollbar { width: 6px; }
#chatMessages::-webkit-scrollbar-track { background: transparent; }
#chatMessages::-webkit-scrollbar-thumb {
  background: #bcbcbc;
  border-radius: 10px;
}
#chatMessages::-webkit-scrollbar-thumb:hover { background: #888; }

#statusDropdown {
  font-size: 12px;
  border: 1px solid #ddd;
  background: #fff;
  padding: 5px 8px;
  border-radius: 5px;
}
.status-option {
  padding: 6px 10px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.status-option:hover:not(.disabled) {
  background-color: #f5f5f5;
}
.status-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.status-option.current-status {
  color: #007bff;
  font-weight: bold;
}
.support-list .btn-group .btn.active {
  background-color: #108474;
  color: white;
  border-color: #108474;
}
.btn-group-sm .btn {
  padding: 2px 8px;
  font-size: 0.8rem;
}
/* 🎯 PRIORITY — small pill style (background + text color) */
.support_priority {
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.72rem;
  text-transform: capitalize;
  display: inline-block;
  line-height: 1.2;
}

.support_priority.low {
  background-color: #e7f1ff;  /* light blue */
  color: #0d6efd;             /* blue */
}

.support_priority.medium {
  background-color: #fff3cd;  /* light yellow */
  color: #997404;             /* dark yellow/brown */
}

.support_priority.high {
  background-color: #fde2e1;  /* light red */
  color: #b02a37;             /* dark red */
}

/* 📋 STATUS — small, no background, just color */
.status {
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: capitalize;
  line-height: 1.2;
}

.status.open {
  color: #198754;  /* green */
}

.status.in_progress {
  color: #fd7e14;  /* orange */
}

.status.resolved {
  color: #0d6efd;  /* blue */
}

.status.closed {
  color: #6c757d;  /* gray */
}

.ticket-filters .btn {
  padding: 0.25rem 0.5rem;   /* vertical + horizontal */
  font-size: 0.75rem;        /* slightly smaller text */
  border-radius: 0.25rem;    /* small rounded corners */
  min-width: 50px;           /* ensure readability */
  white-space: nowrap;
}
.ticket-filters .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  white-space: nowrap;
}

.filter-menu-container {
  position: relative;
  display: inline-block;
}

.filter-menu-options {
  position: absolute;
  top: 110%;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}

.d-none {
  display: none;
}
.form-control:focus{
  border-color: #dee2e6;
  outline: 0;
  box-shadow: none;
}
#ticketSearch {
  border-radius: 50px;
  padding-left: 4px;
  font-size: 0.85rem;
}

.btn.btn-success.rounded-pill {
  background-color: #108474;
  border: none;
  font-size: 0.85rem;
}

.btn.btn-success.rounded-pill:hover {
  background-color: #0c6d5f;
}

.live_chat_main_section{
  .chat-wrapper {
    width: 100%;
    height: 88vh;
    display: flex;
    justify-content: center;
    padding: 2px;
  }

  .chat-box {
    width: 100%;
    max-width: 1150px;
    height: 100%;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    border: 1px solid #e2e8f0;
  }

  /* LEFT — Sessions */
  .session-list {
    width: 30%;
    background: #fafbfc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
  }

  .session-header {
    padding: 7px 3px 7px 31px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    font-size: 18px;
    font-weight: 600;
  }

  .session-item {
    padding: 16px 18px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: 0.22s;
  }

  .session-item:hover {
    background: #edf2ff;
  }

  .session-item.active {
    background: #dbeafe;
    border-left: 4px solid #2563eb;
  }

  /* RIGHT — Chat */
  .chat-window {
    width: 70%;
    display: flex;
    flex-direction: column;
  }

  .chat-header {
    padding: 18px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    font-size: 16px;
    font-weight: 600;
  }

  #chatMessages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: #f8fafc;
    scroll-behavior: smooth;
  }

  /* Message bubbles */
  .bubble-row {
    display: flex;
    margin-bottom: 14px;
    align-items: flex-end;
  }

  .bubble-user {
    justify-content: flex-start;
  }

  .bubble-admin {
    justify-content: flex-end;
  }

  .bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.45;
    box-shadow: 0 3px 6px rgba(0,0,0,0.06);
    word-break: break-word;
    position: relative;
  }

  .bubble-user .bubble {
    background: white;
    border: 1px solid #e2e8f0;
  }

  .bubble-admin .bubble {
    background: #108474;
    color: white;
  }

  .msg-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
  }

  /* Attachments */
  .attachment-link {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #1d4ed8;
    text-decoration: underline;
  }

  /* Input form */
  #chatForm {
    background: white;
    padding: 14px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  #chatMessage {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 15px;
    transition: 0.2s;
  }

  #chatMessage:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
    outline: none;
  }

  .send-btn {
    background: #2563eb;
    padding: 10px 26px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    font-size: 15px;
    transition: 0.18s;
  }

  .send-btn:hover {
    background: #1e4ed8;
  }

  .file-label {
    cursor: pointer;
    font-size: 20px;
  }

  .file-label:hover {
    color: #2563eb;
  }
  .chat-input-box {
    background: white;
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  /* Attachment button */
  .attach-btn {
    cursor: pointer;
    font-size: 21px;
    opacity: 0.8;
    transition: 0.25s;
    line-height: 1;
    padding: 6px;
    border-radius: 8px;
  }
  .attach-btn:hover {
    background: #f3f4f6;
    opacity: 1;
  }

  /* Input Box */
  #chatMessage {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 15px;
    transition: .22s;
  }
  #chatMessage:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.18);
    outline: none;
  }

  /* Send Button */
  .send-btn {
    background: #2563eb;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.25s;
  }
  .send-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
  }
  .send-btn:active {
    transform: scale(0.92);
  }
  .session-item {
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: 0.2s;
  }

  .session-item:hover {
    background: #f1f5f9;
  }

  /* Selected chat */
  .session-item.active {
    background: #dbeafe;
    border-left: 4px solid #2563eb;
    padding-left: 14px; /* Adjust because of left border */
  }

  .session-item.active .font-semibold {
    color: #1e3a8a;
  }

  .session-item.active .text-gray-600 {
    color: #1e40af;
  }
  #previewContainer {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
  }
  
  .preview-img-box {
    position: relative;
    width: 60px;
    height: 60px;
  }
  
  .preview-img-box img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #d1d5db;
  }
  
  .preview-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .preview-remove:hover {
    background: #b91c1c;
  }
  .disabled-chat {
    opacity: 0.55;
    pointer-events: none; /* prevents typing, clicking, uploading */
  }
  .chat-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 5px;
    color: #fff;
  }
  .chat-badge.open {
    background: #16a34a; /* Tailwind green-600 */
  }
  .chat-badge.closed {
    background: #dc2626; /* Tailwind red-600 */
  }

  .unread-count-badge {
    position: absolute;
    top: 8px;       /* distance from top of session item */
    right: 12px;    /* distance from right */
    min-width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.65rem; /* small font */
    font-weight: 600;
    color: white;
    background-color: #dc2626; /* red background */
    border-radius: 9999px;     /* fully rounded */
    padding: 0 6px;
    line-height: 1;
  }
  .session-item {
    position: relative; /* required for absolute badge */
  }
  .filter-btn {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: white;
    cursor: pointer;
    transition: 0.2s;
  }

  .filter-btn:hover {
    background: #f3f4f6;
  }

  .filter-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
  }
}
/* ===============================
   HELP MAIN SECTION
=============================== */
.help_main_section {
  display: flex;
  gap: 16px;

  /* Sidebar */
  .sidebar-menu {
    width: 30%;
    max-width: 320px;
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  }

  .menu-list,
  .submenu,
  .innermenu {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }

  .menu-item {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef2f6;
  }

  .menu-title,
  .submenu-title {
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    border-radius: 6px;
  }

  .menu-title:hover,
  .submenu-title:hover { background: #f8fdf7; }

  .arrow { transition: transform 0.2s ease; }
  .rotate-90 { transform: rotate(90deg); }

  .submenu { padding-left: 12px; }
  .innermenu { padding-left: 12px; }

  .inner-item {
    padding: 6px 8px;
    border-left: 3px solid #c7f08a;
    margin: 4px 0;
    border-radius: 4px;
  }

  .inner-item:hover { background: #fafafa; cursor: pointer; }

  /* Right panel */
  #help-detail-panel {
    background: #fff;
    border-radius: 8px;
    padding: 18px;
    min-height: 400px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    width: 70%;
  }

  /* Buttons */
  .btn { display: inline-block; padding: 8px 12px; border-radius: 6px; border: none; cursor: pointer; }
  .btn-success { background: #16a34a; color: #fff; }
  .btn-secondary { background: #9ca3af; color: #fff; }

  /* Modal Animation */
  .modal.fade .modal-dialog {
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform: translateY(-6px);
  }

  .modal.show .modal-dialog { transform: translateY(0); }

  .hidden { display: none !important; }

  #rp-edit {
    background: linear-gradient(135deg, #2563eb, #1d4ed8); /* Blue gradient */
    color: #fff;
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition:
      background 0.25s ease,
      transform 0.15s ease,
      box-shadow 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  
  #rp-edit:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    transform: translateY(-1px);
  }
  
  #rp-edit:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  }  

  #helpModal .modal-header {
    padding: 10px 10px !important;
    background: #16a34a;
    color: #fff;
    border-bottom: none;
  }
  
  #helpModal .modal-header h2 {
    font-size: 18px !important;
    font-weight: 600;
    margin: 0;
    padding: 0;
  }
  
  #helpModal .modal-header .btn-close {
    filter: invert(1);       /* white close icon */
    width: 22px;
    height: 22px;
    opacity: 0.9;
  }
  
  #helpModal .modal-header .btn-close:hover {
    opacity: 1;
  }
  
  #helpModal .modal-content {
    border-radius: 10px;
  }

  button.btn.btn-sm.btn-primary.add-sub-section-btn, button.btn.btn-sm.btn-danger.remove-section, button.btn.btn-sm.btn-danger.remove-sub, button.btn.btn-sm.btn-danger.remove-inner {
    font-size: 8px;
    padding: 5px;
  }

  button.btn.btn-sm.btn-secondary.add-inner-sub-section-btn {
    font-size: 8px;
    padding: 5px;
  }

  /* Highlight active menu item */
  /* ACTIVE HIGHLIGHT FOR ALL LEVELS */
  .menu-list li.active > .menu-title,
  .menu-list li.active > .submenu-title,
  .menu-list li.active > .inner-item {
    background-color: #e0f7fa !important;
    border-left: 4px solid #00bcd4 !important;
    color: #007c91 !important;
  }

  /* ACTIVE CHILD UL ALSO HIGHLIGHT BORDER */
  .menu-list li.active > ul {
    border-left: 2px solid #00bcd4;
  }

  /* ACTIVE INNER <li> */
  .menu-list li.active {
    background-color: #f6ffff;
  }

  /* ACTIVE HOVER EDGE: FEELS SMOOTH */
  .menu-list li.active:hover > .menu-title,
  .menu-list li.active:hover > .submenu-title,
  .menu-list li.active:hover > .inner-item {
    background-color: #d7f3f6;
  }

  /* HOVER FOR ALL LEVELS */
  .menu-list li:hover > .menu-title,
  .menu-list li:hover > .submenu-title,
  .menu-list li:hover > .inner-item {
    background-color: #f0f0f0;
  }

  /* INDENTATION LINES FOR CHILDREN */
  .submenu,
  .innermenu {
    padding-left: 14px;
    border-left: 1px dashed #cdd;
  }

  /* SMOOTH TRANSITIONS */
  .menu-title,
  .submenu-title,
  .inner-item {
    transition: all 0.2s ease;
  }

  /* ARROW ROTATION FOR ACTIVE */
  .menu-title.active .arrow,
  .submenu-title.active .arrow {
    transform: rotate(90deg);
  }

  /* EXPANDED STATE */
  ul.submenu:not(.hidden),
  ul.innermenu:not(.hidden) {
    background-color: #fafefe;
  }

  /* ACTIVE SCROLLBAR COLOR */
  .menu-list:hover::-webkit-scrollbar-thumb {
    background: #00bcd4;
  }

  .w-20{
    width: 320px;
  }

  .menu-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px; /* avoid text hide behind scrollbar */
  }
  
  /* Scrollbar style (Chrome/Edge) */
  .menu-list::-webkit-scrollbar {
    width: 6px;
  }
  
  .menu-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
  }
  
  .menu-list::-webkit-scrollbar-thumb:hover {
    background: #999;
  }
  
  .menu-list::-webkit-scrollbar-track {
    background: transparent;
  }  

  /* Buttons container initially hidden for all levels */
  .menu-actions {
    display: none;
    width: 100%; /* full width of li */
    position: relative;
  }

  /* Show only when LI is active */
  .menu-item.active > .menu-actions,
  .submenu-item.active > .menu-actions,
  .inner-item.active > .menu-actions {
    display: flex;
    justify-content: space-between; /* left/right buttons */
    margin-top: 4px;
  }

  /* Left button */
  .menu-actions .btn-add,
  .menu-actions .add-inner-sub-section-btn {
    order: 1; /* left */
  }

  /* Right button */
  .menu-actions .btn-delete,
  .menu-actions .remove-sub,
  .menu-actions .remove-inner {
    order: 2; /* right */
  }

  /* Optional: make buttons small and visible */
  .menu-actions button {
    font-size: 10px;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
  }

  /* Hover effects */
  .menu-actions .btn-add,
  .menu-actions .add-inner-sub-section-btn {
    background-color: #16a34a;
    color: white;
    transition: 0.2s;
  }
  .menu-actions .btn-add:hover,
  .menu-actions .add-inner-sub-section-btn:hover {
    background-color: #0d8b3f;
  }

  .menu-actions .btn-delete,
  .menu-actions .remove-sub,
  .menu-actions .remove-inner {
    background-color: #dc2626;
    color: white;
    transition: 0.2s;
  }
  .menu-actions .btn-delete:hover,
  .menu-actions .remove-sub:hover,
  .menu-actions .remove-inner:hover {
    background-color: #b91c1c;
  }

  /* Inner item flex alignment */
  .inner-item {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    gap: 8px; /* spacing between text and buttons */
  }

  /* Text on the left: 70% */
  .inner-item > span {
    flex: 0 0 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Buttons container: push to right */
  .inner-item .menu-actions {
    margin-left: auto; /* push to far right */
    display: none; /* hidden by default */
    gap: 6px; /* space between buttons */
  }

  /* Show buttons when active */
  .inner-item.active > .menu-actions {
    display: flex;
    justify-content: flex-end; /* optional, just to be sure */
  }

  /* Buttons styling */
  .inner-item .menu-actions button {
    font-size: 10px;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
  }

  /* Hover colors */
  .inner-item .menu-actions .btn-delete:hover { 
    background-color: #dc2626; 
    color: white; 
  }
  .inner-item .menu-actions .btn-add:hover { 
    background-color: #0d6efd; 
    color: white; 
  }

  #help-detail-panel {
    max-height: 500px; /* or whatever height you want */
    overflow-y: auto;   /* enable vertical scrolling */
    padding-right: 8px; /* optional: avoid content hiding behind scrollbar */
    scrollbar-width: thin;        /* Firefox */
    scrollbar-color: #00bcd4 transparent; /* Firefox */
  }
  
  /* Chrome, Edge, Safari */
  #help-detail-panel::-webkit-scrollbar {
    width: 6px; /* width of the scrollbar */
  }
  
  #help-detail-panel::-webkit-scrollbar-track {
    background: transparent; /* track background */
  }
  
  #help-detail-panel::-webkit-scrollbar-thumb {
    background-color: #00bcd4; /* scrollbar color */
    border-radius: 10px;        /* rounded corners */
  }
  
  #help-detail-panel::-webkit-scrollbar-thumb:hover {
    background-color: #007c91; /* darker on hover */
  }

  #add-section-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* space between icon and text */
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #16a34a, #059669); /* nice green gradient */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  #add-section-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
  }
  
  #add-section-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }  
  
  @media (max-width: 900px) {
    flex-direction: column;

    .sidebar-menu { width: 100%; max-width: none; }
    #help-detail-panel { width: 100%; margin-top: 12px; }
  }
}

/* ===============================
   END HELP MAIN SECTION
