:root {
    --bg-color: #121212;
    --text-color: #f0f0f0;
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --card-bg: #1e1e1e;
    --border-color: #333;
    --input-bg: #2c2c2c;
    --success-color: #28a745;
}

body.light-mode {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --input-bg: #f1f3f5;
    --success-color: #28a745;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 85%;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.theme-toggle {
    background: var(--secondary-color);
    border: none;
    color: white;
    border-radius: 20px;
    padding: 5px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}


.heading-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reset-button {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.reset-button:hover {
    background-color: var(--border-color);
}


.command-section {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.command-display {
    background-color: var(--input-bg);
    border-radius: 4px;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    overflow-x: auto;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    top: 10px;
    z-index: 10;
    transition: all 0.2s ease;
}

#sticky-sentinel {
    height: 0;
}

.command-display.fixed {
    position: fixed;
    top: 10;
    width: 80%;
    box-shadow: 0 6px 20px var(--secondary-color);
    ;
    transform: translateY(-2px);
    background-color: var(--card-bg);
    z-index: 100;
}

.command-display:hover {
    background-color: var(--border-color);
}

.copy-notification {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: var(--success-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.reset-notification {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: var(--success-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.show-notification {
    opacity: 1;
}

.options-section {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.option-group {
    margin-bottom: 20px;
}

.option-group-header {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;

    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    padding: 2px 4px;
}

.option-group-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.option-group-toggle {
    font-size: 1.2rem;
}

.option-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.option-item {
    margin-bottom: 15px;
}

.option-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.option-description {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.explain-group-toggle {
    font-size: 1rem;
}

.explain-group-header {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;

    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    padding: 2px 4px;
}

.module-selection-dropdown {
    width: auto;
    display: inline-block;
    padding: 2px 30px 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    min-width: 150px;
    max-width: fit-content;
    font-size: 1rem;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    color: var(--text-color);
    box-sizing: border-box;
}

input[type="checkbox"] {
    margin-right: 10px;
}

.module-selection {
    margin-bottom: 20px;
}

select {
    cursor: pointer;
}

.module-options {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 8px 2px var(--border-color);
    min-height: 100px;
}

/* Loading animation */
.loader {
    display: none;
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    border-top: 3px solid var(--primary-color);
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}