:root {
    --background-color: #252526;
    --text-color: #e0e0e0;
    --input-background: #2d2d2d;
    --input-border: #3d3d3d;
    --input-focus-border: #0078d4;
    --button-background: #0078d4;
    --button-hover: #2b95e9;
    --stop-button-background: #d32f2f;
    --stop-button-hover: #e53935;
    --status-background: #252526;
    --error-color: #f44336;
}

body { 
    padding: 15px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    box-sizing: border-box;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

*, *:before, *:after {
    box-sizing: inherit;
}

.section-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.section-label {
    margin-bottom: 10px;
}

input[type="text"] { 
    width: 100%; 
    margin-bottom: 10px; 
    padding: 8px 12px;
    background-color: var(--input-background);
    color: var(--text-color);
    border: 1px solid var(--input-border);
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

input[type="text"]:focus {
    border-color: var(--input-focus-border);
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--input-border);
    border-radius: 2px;
    margin: 10px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--button-background);
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]:focus {
    outline: none;
}

.crawler-method {
    margin: 10px 0;
}

.crawler-method select {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid var(--input-border);
    background: var(--input-background);
    color: var(--text-color);
    outline: none;
    transition: border-color 0.2s;
}
.crawler-method select:focus {
    border-color: var(--input-focus-border);
}
.github-notice {
    display: none;
    font-size: 0.9em;
    color: var(--vscode-descriptionForeground);
    margin-top: 4px;
    font-style: italic;
}

.crawler-method.github-mode .github-notice {
    display: block;
}

.crawler-method.github-mode #crawlerMethod {
    opacity: 0.7;
}
.depth-control {
    margin: 0px;
    padding: 10px;
    background-color: var(--input-background);
    border-radius: 6px;
    border: 1px solid var(--input-border);
}

.depth-value {
    text-align: center;
    margin: 5px 0;
    font-weight: 500;
}

#depthDescription {
    text-align: center;
    color: #888;
    font-size: 0.9em;
    margin-top: 5px;
}

.controls {
    display: flex;
    gap: 8px;
    margin: 15px 0;
}

button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

#startButton {
    background-color: var(--button-background);
}

#stopButton {
    background-color: var(--stop-button-background);
    display: none;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.status {
    margin-top: 15px;
    padding: 12px;
    background-color: var(--status-background);
    border-radius: 6px;
    border: 0px solid var(--input-border);
    font-size: 1em;
    line-height: 1.4;
    height: 80px;
    display: flex;
    align-items: center;
    white-space: pre-line;
}

.error {
    color: var(--error-color);
    border-color: var(--error-color);
}

.settings {
    margin: 0px;    
    padding: 12px;
    background-color: var(--status-background);
    border-radius: 6px;
    border: 1px solid var(--input-border);
}

.file-input-container {
    position: relative;
    margin-bottom: 10px;
}

.inline-button {
    position: absolute;
    left: 5px;
    top: 4.5px;
    background: none;
    border: 1px solid var(--input-border);
    color: var(--text-color);
    opacity: 0.8;
    padding: 0px 5px;
    cursor: pointer;
    font-size: 20px;
    z-index: 1;
}

.inline-button:hover {
    opacity: 1;
}

.file-input-container input {
    padding-left: 35px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 1em;
    user-select: none;
}

input[type="checkbox"] {
    accent-color: var(--button-background);
    width: 16px;
    height: 16px;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border: 2px solid var(--input-border);
    position: relative;
}

input[type="checkbox"]:checked {
    background-color: var(--button-background);
    border-color: var(--button-background);
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.folder-input input{
    width: 100%;
    padding: 5px;
}

.feedback {
    margin-top: auto;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
    color: var(--text-color);
}

.feedback a {
    color: var(--button-background);
    text-decoration: none;
    outline: none;
    display: block;
    margin-top: 5px;
}

.feedback a:visited {
    color: var(--button-background);
}

.feedback a:hover {
    text-decoration: underline;
}

#branchSelection {
    margin: 10px 0;
}

#branchSelect {
    width: 100%;
    padding: 8px;
    margin: 0 0 10px 0;
    border-radius: 6px;
    border: 1px solid var(--input-border);
    background: var(--input-background);
    color: var(--text-color);
    outline: none;
    transition: border-color 0.2s;
}

#branchSelect:focus {
    border-color: var(--input-focus-border);
}

.branch-info {
    font-size: 0.9em;
    color: var(--vscode-descriptionForeground);
    margin-top: 4px;
    font-style: italic;
}
.version {
    text-align: center;
    color: var(--vscode-descriptionForeground);
    font-size: 0.8em;
    margin-top: 10px;
    opacity: 0.7;
}