/* PDF Viewer Section Styles */
.pdf-viewer-section {
  width: 100%;
  max-width: calc(100% - 100px);
  margin: 0 auto;
  padding: 0px 20px 0px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }
  .cs-form-container.security{
    margin: 50px 70px;
  }
  .section-header.security{
    margin: 50px 50px 30px;
  }
  .pdf-viewer-container {
    display: flex;
    gap: 20px;
    border-radius: 9px;
    margin: 30px auto;
    min-height: 700px;
  }
  
  /* Left Menu Panel (1/3) */
  .pdf-menu-panel {
    flex: 0 0 33.333%;
    background: white !important;
    display: flex;
    border-radius: 9px;
    box-shadow: 0px 4px 10px 0px #00000033;
    flex-direction: column;
  }
  
  .pdf-menu-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: #fff;
  }
  
  .pdf-menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
  }
  
  .pdf-menu-content {
    border-radius: 9px;
    flex: 1;
    overflow-y: auto;
    padding: 0;
  }
  
  .pdf-menu-list {
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
    justify-content: space-between;
  }
  
  /*.pdf-menu-item {*/
  /*  border-bottom: 1px solid #e9ecef;*/
  /*}*/
.menu-toggle.pdf {
  display: block;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}
  .pdf-menu-item.level-0 > .pdf-menu-title {
    padding: 15px 20px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #333;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    line-height:1.5rem;
    letter-spacing: 0;
  }
  
  /*.pdf-menu-item.level-0 > .pdf-menu-title:hover {*/
  /*  background: #f8f9fa;*/
  /*  color: #ff6b35;*/
  /*}*/
  
  /*.pdf-menu-item.level-0.active > .pdf-menu-title {*/
  /*  background: #ff6b35;*/
  /*  color: #fff;*/
  /*}*/
  
  .pdf-menu-item.level-0.active .menu-toggle i {
    transform: rotate(45deg);
    color: #fff;
  }
  
  .menu-toggle {
    transition: transform 0.3s ease;
  }
  
  .menu-toggle i {
    font-size: 15px;
    color: #666;
    transition: all 0.3s ease;
  }
  
  .pdf-submenu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    display: none;
  }
  
  .pdf-submenu-list.expanded {
    display: block;
  }
  
  .pdf-menu-item.level-1 {
    padding: 15px;
    cursor: pointer;
    color: #666;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 0.817rem;
    line-height: 0.63875rem;
    letter-spacing: 0;
    transition: all 0.3s ease;
  }
  
  .pdf-menu-item.level-1:hover {
    background: #e9ecef;
    color: #ff6b35;
  }
  
  .pdf-menu-item.level-1.active {
    color: black;
    font-family: 'Roboto', sans-serif;
    font-weight: 700; /* 700 tương ứng với Bold */
    font-style: normal; /* "Bold" là font-weight, font-style vẫn là normal */
    font-size: 0.82rem; /* 13.07px ÷ 16 = ~0.82rem */
    line-height: 1.125rem; /* 18px ÷ 16 = 1.125rem */
    letter-spacing: 0;

  }
  
  .pdf-menu-item.level-1:last-child {
    border-bottom: none;
  }
  
  /* Right Content Panel (2/3) */
  .pdf-content-panel {
    flex: 0 0 66.666%;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 9px;
    box-shadow: 0px 4px 10px 0px #00000033;
  }
  
  .pdf-content-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .pdf-main-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
  }
  
  .pdf-actions {
    display: flex;
    gap: 10px;
  }
  
  .pdf-action-btn {
    padding: 8px 16px;
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
  }
  
  .pdf-action-btn:hover {
    background: #e55a2b;
  }
  
  .pdf-action-btn i {
    font-size: 12px;
  }
  
  .pdf-content-body {
    flex: 1;
    padding: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  
  .pdf-category-title h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #ff6b35;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b35;
  }
  
  .pdf-viewer-container-inner {
    flex: 1;
    min-height: 500px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
  }
  
  .pdf-embed-viewer {
    width: 100%;
    height: 100%;
    border: none;
  }
  
  /* Adobe PDF Embed Container */
  #adobe-dc-view {
    width: 100%;
    height: 100%;
  }
  
  /* Placeholder and Loading States */
  .pdf-placeholder,
  .pdf-loading,
  .pdf-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #999;
  }
  
  .pdf-placeholder-icon,
  .error-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ddd;
  }
  
  .error-icon {
    color: #dc3545;
  }
  
  .pdf-placeholder p,
  .pdf-error p {
    font-size: 16px;
    margin: 0;
  }
  
  .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
  }
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  /* PDF Document Info */
  .pdf-document-info {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
  }
  
  .pdf-document-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
  }
  
  .pdf-document-description {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
  }
  
  .pdf-document-description p {
    margin-bottom: 10px;
  }
  
  .pdf-document-description p:last-child {
    margin-bottom: 0;
  }
  
  /* Featured Document Styling */
  .pdf-document-info.featured {
    background: #fff5f2;
    border-left: 4px solid #ff4500;
  }
  
  .pdf-document-info.featured .pdf-document-title {
    color: #ff4500;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .pdf-viewer-container {
      flex-direction: column;
      min-height: auto;
    }
  
    .pdf-menu-panel,
    .pdf-content-panel {
      flex: none;
    }
  
    .pdf-viewer-container-inner {
      min-height: 400px;
    }
  
    .pdf-content-header {
      flex-direction: column;
      gap: 15px;
      align-items: stretch;
    }
  
    .pdf-actions {
      justify-content: center;
    }
  
    .pdf-main-title {
      text-align: center;
    }
  }
  
  @media (max-width: 480px) {
    .pdf-viewer-section {
      padding: 10px;
    }
  
    .pdf-viewer-container {
      gap: 0;
    }
  
    .pdf-menu-header,
    .pdf-content-header,
    .pdf-content-body {
      padding: 15px;
    }
  
    .pdf-viewer-container-inner {
      min-height: 300px;
    }
  
    .pdf-action-btn {
      padding: 6px 12px;
      font-size: 13px;
    }
  }
  
  /* Scrollbar Styling */
  .pdf-menu-content::-webkit-scrollbar {
    width: 6px;
  }
  
  .pdf-menu-content::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  
  .pdf-menu-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
  }
  
  .pdf-menu-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }
  
  /* Fullscreen Mode */
  .pdf-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
  }
  
  .pdf-fullscreen .pdf-viewer-container-inner {
    height: calc(100vh - 80px);
    border: none;
    border-radius: 0;
  }
  
  .pdf-fullscreen .pdf-content-body {
    padding: 0;
  }
  
  .pdf-fullscreen .pdf-category-title {
    display: none;
  }
  