/* Hook Display Styles */
.view-hook-position {
    position: relative;
    padding: 0.2rem 10px;
    margin: 5px;
    background-color: #fffbd3;
    border: solid 1px #fab000;
    color: #363a41;
    border-radius: 8px;
    text-align: center;
}

/* Action Hooks Console */
#cx-action-hooks-console {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: rgba(33, 33, 33, 0.95);
    color: #00ff00;
    font-family: monospace;
    font-size: 12px;
    padding: 30px 10px 10px 10px;
    z-index: 99999;
    border-top: 2px solid #00ff00;
    display: none;
    /* Hidden by default */
}

#cx-action-hooks-console.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#cx-console-content {
    width: 100%;
    max-height: 50vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cx-action-hook-entry {
    margin-bottom: 5px;
    padding: 5px 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.cx-action-hook-name {
    font-weight: bold;
    color: #fab000;
    font-size: 14px;
}

.cx-timestamp {
    color: #00ffff;
    font-size: 11px;
    margin-right: 10px;
}

#cx-console-close {
    position: absolute;
    top: -2px;
    right: 13px;
    color: #ff0000;
    font-weight: bold;
    cursor: pointer;
    font-size: 18px;
    z-index: 100000;
    line-height: 1;
}

#cx-console-close:hover {
    color: #ff5555;
    transform: scale(1.1);
}

#cx-console-restore {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: rgba(33, 33, 33, 0.80);
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: monospace;
    font-size: 12px;
    z-index: 99999;
    font-weight: bold;
}

#cx-console-restore:hover {
    background-color: rgba(33, 33, 33, 0.95);
}

.cx-copy-btn {
    background-color: #00ff00;
    color: #000;
    border: none;
    padding: 2px 8px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    font-size: 11px;
}

.cx-copy-btn:hover {
    background-color: #00cc00;
}

.cx-copy-btn:active {
    transform: translateY(1px);
}

#cx-console-actions {
    position: absolute;
    top: -21px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 100001;
}

#cx-console-copy-all,
#cx-console-copy-all-json,
#cx-console-clear {
    background-color: #00ff00;
    color: #000;
    font-weight: bold;
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    border: 1px solid #00ff00;
}

#cx-console-copy-all:hover,
#cx-console-copy-all-json:hover,
#cx-console-clear:hover {
    background-color: #00cc00;
}