/* Copied theme from legacy site/css/styles.css for reuse on the new dynamic config UI */
.input-float-group {
    position: relative;
    width: 100%;
    margin-bottom: 28px;
}

.input-float-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #e0e0e0;
    font-size: 15px;
    pointer-events: none;
    background: transparent;
    transition: 0.18s cubic-bezier(.4, 0, .2, 1);
    padding: 0 2px;
}

.input-float-label.always-float {
    top: -0.7em !important;
    left: 8px !important;
    font-size: 12px !important;
    color: #726bee !important;
    background: #1E1E1E !important;
    padding: 0 4px !important;
    text-shadow: 0 0 12px rgba(114, 107, 238, 0.8) !important;
    transform: none !important;
}

.input-float-group .input-field {
    padding-top: 0;
    padding-bottom: 0;
}

.input-float-group .input-field:focus+.input-float-label,
.input-float-group .input-field:not(:placeholder-shown)+.input-float-label,
.input-float-group .input-float-label.no-animate {
    top: 0.1em;
    left: 10px;
    font-size: 12px;
    color: #726bee;
    background: #1E1E1E;
    padding: 0 4px;
    transition: none;
    text-shadow: 0 0 8px rgba(114, 107, 238, 0.8);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #1e1e1e;
    color: #eee;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.main-content {
    width: 100%;
    padding: 24px 24px 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

.section {
    display: block;
}

.section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
    border-bottom: 2px solid #726bee;
    padding-bottom: 8px;
}

.subsection {
    background-color: #1e1e1e;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.setting {
    padding: 0px 25px;
    border-radius: 8px;
}

.section .subsection+.subsection {
    margin-top: 16px;
}

.input-field {
    width: 100%;
    max-width: 520px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
    background: #1E1E1E;
    border: 1.2px solid #39394a;
    border-radius: 6px;
    color: #f3f3f3;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    font-family: inherit;
}

.input-field:focus {
    border-color: #726bee;
    box-shadow: 0 0 0 2px rgba(114, 107, 238, 0.13);
    background: #1E1E1E;
}

.input-field:hover {
    border-color: #726bee;
}

.toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    padding: 8px 0;
}

.toggle input[type="checkbox"] {
    display: none;
}

.toggle .slider {
    width: 40px;
    height: 20px;
    background-color: #555;
    border-radius: 20px;
    position: relative;
    transition: background-color 0.3s;
    cursor: pointer;
}

.toggle .slider::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 2px;
    left: 2px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle input[type="checkbox"]:checked+.slider {
    background-color: #726bee;
}

.toggle input[type="checkbox"]:checked+.slider::before {
    transform: translateX(20px);
}

.key {
    font-size: 12px;
    color: #9aa3c2;
    margin-left: 6px;
}

.status {
    font-size: 12px;
    color: #8fdc9d;
    margin-left: 8px;
}

/* Optional star background similar to old site */
#star-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    background-color: #171717;
}

.save {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #3442b5;
    background: #2a39a0;
    color: white;
    cursor: pointer;
    font-weight: 600;
}

.save[disabled] {
    opacity: .6;
    cursor: default;
}

/* Mask sensitive key inputs like the legacy site */
.subsection input#hypixelKey,
.subsection input#winstreakKey,
.setting input#hypixelKey,
.setting input#winstreakKey {
    height: 28px;
    padding: 0 8px;
    font-size: 14px;
    border-radius: 6px;
    margin-bottom: 10px;
    color: transparent;
    text-shadow:
        0 2px 12px 6px rgba(180, 180, 200, 0.45),
        0 0 18px 8px rgba(180, 180, 200, 0.25),
        0 0 32px 12px rgba(255, 255, 255, 0.18),
        0 0 48px 18px rgba(255, 255, 255, 0.12);
    transition: color 0.2s, text-shadow 0.2s;
}

.subsection input#hypixelKey:focus,
.subsection input#winstreakKey:focus,
.setting input#hypixelKey:focus,
.setting input#winstreakKey:focus {
    color: #f3f3f3;
    text-shadow: none;
}

.client-mod-option {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #888;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    background-color: transparent;
    transition: 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: #7c3aed;
    border-color: #7c3aed;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: "✔";
    color: white;
    font-size: 14px;
    position: absolute;
    top: -1px;
    left: 3px;
}

.client-mod-title {
    font-weight: 600;
    color: #fff;
}