:root {
    --background: #2b2a33;
    --card: #1c1b22aa;
    --button: #1f1e25;
    --button-hover: #232229;
    --title: #dcdcdc;
    --text: #bababa;
}

@font-face {
    font-family: "Ubuntu local";
    src: url("../assets/fonts/Ubuntu-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: "Ubuntu local", sans-serif;
    font-weight: 400;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 250px;
    height: auto;
    background-color: var(--background);
    margin: 0;
    color: var(--text);
    padding: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
    gap: 15px;
}

section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 14px;
    color: var(--title);
    font-weight: 500;
}

section div {
    display: flex;
    gap: 8px;
}

button {
    flex: 1;
    padding: 8px 12px;
    background-color: var(--button);
    color: var(--text);
    border: none;
    border-radius: 6px;
    font-family: "Ubuntu local", sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

#dynamicBackgroundCheckbox {
    appearance: none;
    background-color: #dfe1e4;
    border-radius: 72px;
    border-style: none;
    flex-shrink: 0;
    height: 20px;
    margin: 0;
    position: relative;
    width: 30px;
    align-self: flex-start;
}

input[type="text"] {
    padding: 8px 12px;
    background-color: var(--button);
    color: var(--text);
    border: 1px solid var(--button-hover);
    border-radius: 6px;
    font-family: "Ubuntu local", sans-serif;
    font-size: 12px;
    transition: all 0.2s ease;
    font-family: monospace;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--title);
    background-color: var(--button-hover);
}

input[type="text"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

input[type="text"]::placeholder {
    color: var(--text);
    opacity: 0.6;
}

#dynamicBackgroundCheckbox::before {
    bottom: -6px;
    content: "";
    left: -6px;
    position: absolute;
    right: -6px;
    top: -6px;
}

#dynamicBackgroundCheckbox,
#dynamicBackgroundCheckbox::after {
    transition: all 100ms ease-out;
}

#dynamicBackgroundCheckbox::after {
    background-color: #fff;
    border-radius: 50%;
    content: "";
    height: 14px;
    left: 3px;
    position: absolute;
    top: 3px;
    width: 14px;
}

#dynamicBackgroundCheckbox:hover {
    background-color: #c9cbcd;
    transition-duration: 0s;
}

#dynamicBackgroundCheckbox:checked {
    background-color: #7790e1;
}

#dynamicBackgroundCheckbox:checked:hover {
    background-color: #5a78db;
}

#dynamicBackgroundCheckbox:checked::after {
    background-color: #fff;
    left: 13px;
}
