/* Help button styling */
.help-button-container {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    vertical-align: middle;
    position: relative;
    top: -2px; /* Fine-tune vertical alignment with the title */
}

.help-button {
    margin-left: 5px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
    line-height: 20px; /* Better vertical text alignment */
}

.help-button:hover {
    background-color: #0056b3;
}

/* Help modal styling */
.help-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.help-modal-content {
    background-color: white;
    width: 80%;
    max-width: 700px;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.help-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.help-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.help-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.help-modal-close:hover {
    color: #333;
}

.help-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    line-height: 1.5;
}

.help-modal-body p {
    margin-bottom: 15px;
}

.help-modal-body ul {
    margin-bottom: 15px;
    padding-left: 20px;
}
