:root {
    --bg-color: #0d1117;
    --sidebar-bg: #161b22;
    --text-color: beige;
    --accent-color: seagreen;
    --selected-color: darkseagreen;
    --border-color: #30363d;
    --hover-bg: #21262d;
    --font-family: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    height: 100vh;
    display: flex;
    overflow: hidden;
}

input,
button,
textarea {
    border-radius: 10px;
    font-family: var(--font-family);
}

/* 1/4 Ratio Sidebar */
.sidebar {
    width: 25%;
    background-color: transparent;
    border-right: none;
    display: flex;
    flex-direction: column;
    padding: 30px 0 30px 30px;
    /* Padding left/top/bottom, 0 right to spacing */
    overflow-y: hidden;
    /* Let card scroll if needed, or sidebar scroll? */
}

/* Ensure Sidebar Card fills height if desired, or just fits content */
.sidebar .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar .list-group {
    overflow-y: auto;
    flex-grow: 1;
}

/* Clean up old sidebar header styles as we use card-header now */
.sidebar-header {
    display: none;
}

/* Bootstrap-like Card */
.card {
    background-color: #161b22;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
}

.card-header {
    background-color: var(--sidebar-bg);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* Bootstrap-like Utilities */
.mb-3 {
    margin-bottom: 1rem;
}

.mt-3 {
    margin-top: 1rem;
}

.btn {
    display: inline-block;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color);
    background-color: #0d1117;
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    appearance: none;
    border-radius: 10px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* ... existing code ... */



.form-control:focus {
    border-color: var(--accent-color);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}

/* Sidebar List Group */
.list-group {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: 0.25rem;
}

/* Sidebar List Group Flush */
.list-group-flush .list-group-item {
    border-width: 0 0 1px;
}

.list-group-flush .list-group-item:last-child {
    border-bottom-width: 0;
}

.list-group-item {
    position: relative;
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-color);
    background-color: transparent;
    border: 1px solid transparent;
    /* Keep layout stable */
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    cursor: pointer;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background-color: var(--hover-bg);
}

.list-group-item.active {
    background-color: var(--selected-color);
    border-color: var(--selected-color);
    color: #fff;
    z-index: 2;
}

/* 3/4 Ratio Main Area */
.main-content {
    width: 75%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.execution-area {
    padding: 30px;
    flex-grow: 1;
}

.execution-header {
    margin-bottom: 20px;
}

.execution-header h2 {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Utils */
.container {
    padding: 20px;
}

#loader {
    display: none;
    text-align: center;
    padding: 20px;
}

/* Alert / Toast Container */
#alertContainer {
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
    width: 100%;
    pointer-events: none;
    /* Let clicks pass through if no alerts */
}

/* Alert Items */
.alert {
    background-color: #161b22;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    color: var(--text-color);
    padding: 15px 40px 15px 20px;
    /* Right padding for close button */
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease-in-out;
    pointer-events: auto;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.alert.show {
    opacity: 1;
    transform: translateX(0);
}

/* Alert Variants */
.alert-success {
    border-left-color: var(--accent-color);
    background-color: #161b22;
}

.alert-warning {
    border-left-color: #d29922;
    background-color: #161b22;
}

.alert-danger {
    border-left-color: #f85149;
    background-color: #161b22;
}

/* Close Button */
.btn-close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238b949e'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    width: 1em;
    height: 1em;
    border: none;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-close:hover {
    opacity: 1;
}

/* Custom Scrollbar for Dark Theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0d1117;
}

::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b949e;
}

/* Button Variants */
.btn-primary {
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
    padding: 10px 24px;
    border-radius: 20px;
    /* Match input rounded style */
}

.btn-primary:hover {
    background-color: var(--selected-color);
    border-color: var(--selected-color);
    color: white;
}

.btn-secondary {
    background-color: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 20px;
}

.btn-secondary:hover {
    background-color: #30363d;
    border-color: #8b949e;
    color: white;
}

.w-100 {
    width: 100%;
}

/* Standard Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: center;
    /*
    background-color: #0d1117;
    border: 1px solid var(--border-color);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;*/
    /* Match input style */
    min-height: auto;
    /* Let padding define height to match form-control */
    width: 100%;
}

.checkbox-group input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin-right: 0.5rem;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-color);
    user-select: none;
    flex-grow: 1;
}