:root {
    --black: #000000;
    --background-start: #0f111a;
    --background-end: #13162a;
    --text-primary: #ffffff;
    --text-secondary: #ffffff8e;
    --text-3: #ffffff76;
    --container-max-width: 1200px;
    --primary: #8b9afc;
    --primary-2: #3f4fbb;
    --primary-3: #495bcd;
    --surface: #191b2b;
    --surface-2: #171928;
    --surface-3: #1d1f32;
    --surface-4: #1e2134;
    --blur: 14px;
    --free-label: #8892ce;
    --enabled-label: #5464d0; /* #24b870 */
    --disabled-label: #1f2b79; /* #cf4343 */
    --loader: #818ee6;
    --edit: #3f4fbb;
    --delete: #23328f;
    --toggle-off: #101220;
    --error-text: #ff1f1f;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: var(--black);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-3);
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    background-color: var(--black);
}

body {
    -ms-overflow-style: none;
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Inter, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: linear-gradient(180deg, var(--background-start), var(--background-end));
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100dvh;
    flex-direction: row;
}

.content {
    display: flex;
    flex-direction: row;
}

.main {
    margin-top: 1rem;
    width: calc(100vw - 230px);
    height: auto;
    padding-bottom: 1rem;
    margin-left: 1rem;
    margin-right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.container {
    width: 100%;
}

.text {
    padding: 0;
    margin: 0;
}

.body {
    font-weight: 400;
    font-size: 100%;
    color: var(--text-secondary);
    margin: 0;
}

.body1 {
    font-weight: 500;
    font-size: 12px;
    color: var(--text-3);
}

.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    left: 0;
    width: 180px;
    height: calc(100vh - 40px);
    align-items: start;
    padding: 20px;
    background: color-mix(in srgb, var(--surface), transparent 35%);
    border-right: 1px solid color-mix(in srgb, var(--primary), transparent 85%);
    backdrop-filter: blur(var(--blur));
    z-index: 5000;
}

.group0 {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.home-button {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.home-button img {
    width: 35px;
    height: 35px;
    border-radius: 10px;
}

.home-button span {
    color: var(--text-primary);
}

.home-button:hover {
    transform: translateY(-2px);
}

.home-button:active {
    transform: scale(95%);
    transition: transform 0.05s ease;
}

.divider {
    margin-top: 15px;
    margin-bottom: 15px;
    width: 100%;
    height: 1px;
    background: color-mix(in srgb, var(--primary), transparent 80%);
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.sidebar-links a, .sidebar-links button {
    display: block;
    box-sizing: content-box;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 10px;
    width: calc(100% - 20px);
    height: 25px;
    padding: 10px;
    transition: transform 0.2s ease;
    font-weight: 400;
    font-size: 16px;
    text-align: left;
}

.sidebar-links a:not(.sidebar-selected), .sidebar-links button:not(.sidebar-selected) {
    border: 1px solid transparent;
    background: 0;
}

.sidebar-links a:hover, .sidebar-links button:hover {
    transform: translateX(5px);
}

.sidebar-links a:not(.sidebar-selected):hover, .sidebar-links button:not(.sidebar-selected):hover {
    border: 1px solid color-mix(in srgb, var(--primary), transparent 80%);
}

.sidebar-links a:active, .sidebar-links button:active {
    transform: scale(95%);
    transition: transform 0.05s ease;
}

.sidebar-selected {
    border: 1px solid color-mix(in srgb, var(--primary), transparent 70%);
    background-color: var(--surface-3);
}

.loading-divider {
    width: 100%;
    align-self: center;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--primary), transparent 50%) 50%, transparent 100%);
    margin: 0;
}

.box {
    padding: 15px;
    border-radius: 15px;
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--primary), transparent 80%);
    box-shadow: 0 30px 50px color-mix(in srgb, var(--black), transparent 70%);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    height: 120px;
}

.stats-grid {
    display: grid;
    flex-direction: row;
    flex-wrap: wrap;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    justify-content: space-between;
    width: 100%;
}

.box:hover {
    transform: translateY(-5px);
}

.box-top {
    display: flex;
    flex-direction: row;
    height: 30px;
    gap: 10px;
    align-items: baseline;
}

.box-icon {
    width: 35px;
    height: 35px;
    text-align: center;
    align-content: center;
    background-color: var(--surface-3);
    border: 1px solid color-mix(in srgb, var(--primary), transparent 70%);
    border-radius: 10px;
}

.box-divider {
    width: 100%;
    align-self: center;
    height: 1px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--primary), transparent 50%), transparent);
    margin-bottom: 5px;
    margin-top: 15px;
}

.box-title {
    font-weight: 700;
    font-size: 15px;
}

.stat-text {
    width: fit-content;
    font-size: 20px;
    font-weight: 1000;
    margin-bottom: 5px;
    color: transparent;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    background-clip: text;
}

.bubble-row {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.bubble-row p {
    height: fit-content;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
    border: 1px solid color-mix(in srgb, var(--primary), transparent 80%);
    border-radius: 20px;
    margin: 0;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-box {
    height: auto;
    gap: 1rem;
    padding: 10px;
}

.project-row {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.project-box:hover {
    transform: translateY(0);
}

.script-box {
    background: var(--surface-3);
    height: 55px;
    width: calc(100% - 30px);
    justify-content: center;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.script-box:hover {
    transform: translateY(-3px);
}

.toggle {
    margin: 0;
    border: 0;
    border-radius: 12px;
    width: 35px;
    height: 20px;
    background: var(--primary);
    display: flex;
    justify-content: end;
    align-items: center;
    padding: 0;
    padding-left: 3px;
    padding-right: 3px;
    transition: all 0.2s ease;
}

.toggle:hover {
    transform: translateY(-2px);
}

.toggle:active {
    transform: scale(95%);
    transition: transform 0.05s ease;
}

.toggle-off {
    background: var(--toggle-off);
}

.toggle-off .toggle-dot {
    transform: translateX(-19px);
}

.toggle-dot {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 100%;
    background: white;
    width: 15px;
    height: 15px;
    transition: all 0.2s ease;
}

.script-row {
    flex-direction: column;
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 100%;
    width: 200px;
}

.script-row h3 {
    font-weight: 600;
    font-size: 15px;
}

.script-row p {
    font-weight: 500;
    font-size: 10px;
}

.script-divider {
    margin-bottom: 0;
    margin-top: 0;
}

.group {
    width: auto;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.status-label {
    font-weight: 500;
    font-size: 15px;
    padding: 5px 10px;
    border-radius: 10px;
    box-shadow: 0 10px 25px color-mix(in srgb, var(--black), transparent 70%);
    transition: transform 0.2s ease;
}

.status-label:hover {
    transform: translateY(-2px);
}

.free-label {
    background: var(--free-label);
}

.active-label {
    background: var(--enabled-label);
}

.down-label {
    background: var(--disabled-label);
}

.button-group button {
    font-weight: 500;
    font-size: 15px;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 10px 25px color-mix(in srgb, var(--black), transparent 70%);
    transition: transform 0.2s ease;
}

.button-group button:hover {
    transform: translateY(-2px);
}

.button-group button:active {
    transform: scale(95%);
    transition: transform 0.05s ease;
}

.keep-at-top {
    align-self: flex-start;
}

.secondary-button {
    background: transparent;
    color: var(--loader);
    border: 1.5px solid var(--loader);
}

.primary-button {
    border: 0;
    background: var(--edit);
}

.warning-button {
    border: 0;
    background: var(--delete);
}

.button-special {
    padding: 10px 15px;
    width: fit-content;
    border-radius: 10px;
    align-self: center;
    transition: transform 0.2s ease;
}

.button-special:hover {
    transform: translateY(-2px);
}

.button-special:active {
    transform: scale(95%);
    transition: transform 0.05s ease;
}

.overlay-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: color-mix(in srgb, var(--surface), transparent 35%);
    backdrop-filter: blur(2px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.overlay {
    width: 450px;
    height: auto;
    padding: 15px;
    background: color-mix(in srgb, var(--surface), transparent 35%);
    backdrop-filter: blur(var(--blur));
    border: 1px solid color-mix(in srgb, var(--primary), transparent 80%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
}

.overlay-title {
    display: flex;
    flex-direction: column;
    width: 60%;
}

.loading-title {
    align-items: center;
    width: 100%;
}

.overlay-title h1 {
    font-weight: 800;
    font-size: 25px;
}

.seperate-group {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.field {
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
}

.field-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.field-error {
    margin: 0;
    color: var(--error-text);
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.1s ease;
}

.field-box {
    margin-top: 5px;
    width: calc(100% - 10px);
    height: 15px;
    padding: 5px;
    border-radius: 5px;
    background: var(--surface-4);
    border: 1px solid color-mix(in srgb, var(--primary), transparent 80%);
    box-shadow: 0 30px 50px color-mix(in srgb, var(--black), transparent 70%);
    display: flex;
    flex-direction: row;
    gap: 5px;
    transition: all 0.2s ease;
}

.field-box:hover {
    transform: translateY(-2px);
}

.field-icon {
    color: var(--text-secondary);
}

.input {
    width: calc(100% - 10px);
    left: 18px;
    color: var(--text);
    background: 0;
    border: 0;
    padding: 0;
}

.input:focus {
    outline: 0;
}

.field-name {
    color: var(--text-secondary);
}

.text-1 {
    font-weight: 400;
    font-size: 15px;
    color: var(--text-secondary);
}

.inline {
    height: 20px;
    align-items: center;
    justify-content: space-between;
    display: flex;
    gap: 5px;
}

.ignore {
    display: none;
}

.real-checkbox {
    display: none;
}

.checkbox {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--primary), transparent 80%);
    background-color: var(--surface-4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.checkbox:hover {
    transform: translateY(-2px);
}

.checkbox:active {
    transform: scale(95%);
    transition: transform 0.05s ease;
}

.checkbox i {
    visibility: hidden;
    width: 10px;
    margin-top: 1px;
    height: 10px;
    text-align: center;
    font-size: 10px;
}

.inline .real-checkbox:checked + .checkbox {
  background-color: var(--primary);
}

.inline .real-checkbox:checked + .checkbox i {
    visibility: visible;
}

.file-upload {
    border: 2px solid var(--primary-2);
    background: color-mix(in srgb, var(--surface), transparent 35%);
    color: var(--primary-2);
    height: 35px;
    width: 40%;
    align-self: center;
    justify-self: center;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.file-upload:hover {
    background: color-mix(in srgb, var(--surface-3), transparent 35%);
    border-color: var(--primary-3);
    color: var(--primary-3);
}

.file-upload:active {
    transform: scale(95%);
    transition: transform 0.05s ease;
}

.file-upload input {
    display: none;
}

#admin-tab {
    display: none;
}