/* shortcuts-manager.css */
.shortcuts-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    max-width: 90vw;
    max-height: 80vh; /* Limit height to 80% of viewport */
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Important: hide overflow for the container */
  }
  
  .shortcuts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: #0d4a86;
    color: white;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .shortcuts-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
  }
  
  .shortcuts-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }
  
  .shortcuts-close:hover {
    background-color: rgba(255,255,255,0.1);
  }
  
  .shortcuts-content {
    padding: 10px 20px 20px;
    overflow-y: auto; /* Enable vertical scrolling */
    flex: 1; /* Allow content to take remaining space */
    max-height: calc(80vh - 60px); /* Account for header height */
  }
  
  .shortcuts-section {
    margin-bottom: 20px;
  }
  
  .shortcuts-section h3 {
    font-size: 16px;
    margin: 15px 0 10px;
    color: #333;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
  }
  
  .shortcuts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .shortcut-item {
    display: flex;
    align-items: center;
    padding: 6px 0;
  }
  
  .shortcut-key {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 4px 8px;
    font-family: monospace;
    font-weight: bold;
    color: #333;
    margin-right: 15px;
    min-width: 180px;
    white-space: nowrap;
  }
  
  .shortcut-description {
    color: #555;
    flex: 1;
  }
  
  /* Style for the shortcuts button */
  #shortcutsButton {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
  }
  
  #shortcutsButton:hover {
    background-color: #f8f9fa;
  }
  
  @media (max-width: 600px) {
    .shortcuts-popup {
      width: 95vw;
      max-height: 85vh;
    }
    
    .shortcut-item {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .shortcut-key {
      margin-bottom: 5px;
      margin-right: 0;
    }
  }