/* Debug Console Styles */
#debugConsole {
    width: 100%;
    height: 20%;
    overflow-y: auto;
    background: black;
    color: white;
    padding: 10px;
    font-family: monospace;
    border-radius: 5px;
    opacity: 0.8;
    display: none;
    box-sizing: border-box;
    /* For smooth transitions */
    transition: height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}

#close-debug-button {
    float: right;
    margin-right: 10px;
    color: white;
    background-color: #d12323;
    border: 1px solid #a61212;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-family: system-ui, sans-serif;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

#close-debug-button:hover {
    background-color: #e63030;
}

#save-debug-button {
    float: right;
    color: black;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-family: system-ui, sans-serif;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

#save-debug-button:hover {
    background-color: #e0e0e0;
}

#debugMessages {
    clear: both;
    padding-top: 10px;
    max-height: calc(100% - 30px);
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.4;
}

/* Custom scrollbar for debug console */
#debugConsole::-webkit-scrollbar {
    width: 8px;
}

#debugConsole::-webkit-scrollbar-track {
    background: #222;
}

#debugConsole::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
}

#debugMessages::-webkit-scrollbar {
    width: 6px;
}

#debugMessages::-webkit-scrollbar-track {
    background: transparent;
}

#debugMessages::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 3px;
}
