/* 
 * HelpPanel Control Styles
 */

.help-panel-container {
    line-height: 28px;
    border: none;
    border-radius: 8px;
    background-color: rgba(20, 20, 40, 0.85);
    color: white;
}

.help-panel-button {
    background-color: rgba(0,0,0,0);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 3px;
    margin: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.help-panel-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.help-panel-button .material-symbols-outlined {
    font-size: 22px;
    color: white;
}

/* 
 * Help Modal Content Styles
 */

.help-modal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.help-modal-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 3px solid #4CAF50;
    margin-bottom: 30px;
}

.help-modal-header h1 {
    margin: 0;
    font-size: 28px;
    color: #2c3e50;
    font-weight: 600;
}

.help-modal-content {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom scrollbar for webkit browsers */
.help-modal-content::-webkit-scrollbar {
    width: 8px;
}

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

.help-modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.help-modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Help Sections */
.help-section {
    margin-bottom: 35px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.help-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-section h2 .material-symbols-outlined {
    font-size: 28px;
    color: #4CAF50;
}

.help-section h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
    color: #34495e;
    font-weight: 600;
}

.help-section p {
    margin: 10px 0;
}

.help-section ul,
.help-section ol {
    margin: 10px 0;
    padding-left: 30px;
}

.help-section li {
    margin: 8px 0;
}

.help-section li strong {
    color: #2c3e50;
}

.help-section ul ul {
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Special note styling */
.help-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 14px;
}

.help-note strong {
    color: #856404;
}

/* Icon styling within help content */
.help-section .material-symbols-outlined {
    font-size: 18px;
    vertical-align: middle;
    color: #4CAF50;
}

/* Responsive design */
@media (max-width: 768px) {
    .help-modal-container {
        padding: 15px;
    }
    
    .help-modal-header h1 {
        font-size: 24px;
    }
    
    .help-section {
        padding: 15px;
    }
    
    .help-section h2 {
        font-size: 20px;
    }
    
    .help-section h3 {
        font-size: 16px;
    }
    
    .help-modal-content {
        max-height: 60vh;
    }
}

/* Make modal wider for help content */
.modal.help-modal-active {
    max-width: 95%;
}

/* Ensure good spacing in lists */
.help-section li {
    line-height: 1.7;
}

/* Style for inline code or technical terms */
.help-section code {
    background: #e8e8e8;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}
