html{
    background: #000000;
    background-size: 100% 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgb(23, 44, 9) 99%);

    color: rgb(220, 254, 255);
    width: 100vw;
    min-height: 100vh;
}
*{
    box-sizing: border-box;
}

.choices{
    color: black;
}

/* ─── Submit Form ─────────────────────────────────────── */

.form-container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.form-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgb(220, 254, 255);
    margin-bottom: 2.5rem;
    text-align: center;
    text-transform: uppercase;
}

/* Flash messages */
.success-message {
    background: rgba(60, 180, 75, 0.15);
    border: 1px solid rgba(60, 180, 75, 0.45);
    color: #8fffb0;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    font-size: 0.925rem;
    line-height: 1.5;
}

.error-message {
    background: rgba(220, 50, 50, 0.12);
    border: 1px solid rgba(220, 50, 50, 0.4);
    color: #ff8a8a;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    font-size: 0.925rem;
    line-height: 1.5;
}

.error-message ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style: disc;
}

.error-message li {
    margin-bottom: 0.25rem;
}

.error-message li:last-child {
    margin-bottom: 0;
}

/* Form groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.form-label {
    display: block;
    color: rgba(220, 254, 255, 0.75);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.form-label-checkbox {
    display: inline;
    margin-bottom: 0;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    color: rgb(220, 254, 255);
    cursor: pointer;
}

/* Inputs */
.form-input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(220, 254, 255, 0.18);
    border-radius: 5px;
    color: rgb(220, 254, 255);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: rgba(220, 254, 255, 0.3);
}

.form-input:focus {
    outline: none;
    border-color: rgba(120, 220, 140, 0.55);
    background: rgba(255, 255, 255, 0.09);
}

.form-input-file {
    padding: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.form-input-file::file-selector-button {
    background: rgba(220, 254, 255, 0.1);
    border: 1px solid rgba(220, 254, 255, 0.25);
    border-radius: 4px;
    color: rgb(220, 254, 255);
    padding: 0.35rem 0.75rem;
    margin-right: 0.75rem;
    cursor: pointer;
    font-size: 0.8rem;
}

.form-input-file::file-selector-button:hover {
    background: rgba(220, 254, 255, 0.18);
}

/* Checkbox styling */
.form-group-checkbox input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: rgb(80, 200, 100);
    cursor: pointer;
    flex-shrink: 0;
}

/* Date input color fix for dark theme */
.form-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.85);
}

/* Inline field-level errors */
.field-error {
    display: block;
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    line-height: 1.3;
}

/* New entity creation sections */
.new-fields {
    background: rgba(220, 254, 255, 0.03);
    border: 1px dashed rgba(220, 254, 255, 0.15);
    border-radius: 6px;
    padding: 1.25rem 1.25rem 0.25rem;
    margin-bottom: 1.5rem;
    margin-top: -0.5rem;
}

.new-fields .new-fields {
    background: rgba(220, 254, 255, 0.02);
    border-color: rgba(220, 254, 255, 0.1);
}

.new-fields-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(120, 220, 140, 0.8);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 1rem 0;
}

/* Submit button */
.gradient-btn {
    display: block;
    width: 100%;
    padding: 0.85rem 1.5rem;
    margin-top: 2rem;
    border-radius: 6px;
    color: rgb(220, 254, 255);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
    float: right;
}
.gradient-btn:active {
    transform: scale(0.985);
}

.submit-btn{
    background: linear-gradient(135deg, rgba(60, 180, 80, 0.7), rgba(30, 120, 50, 0.7));
    border: 1px solid rgba(80, 200, 100, 0.3);
}
.submit-btn:hover {
    background: linear-gradient(135deg, rgba(60, 180, 80, 0.85), rgba(30, 120, 50, 0.85));
    border-color: rgb(80, 200, 100);
}

.sound-btn {
    background: linear-gradient(135deg, rgba(180, 60, 164, 0.85), rgba(113, 30, 120, 0.85));
    border-color: rgba(200, 80, 194, 0.5);
}
.sound-btn:hover {
    background: linear-gradient(135deg, rgba(180, 60, 164, 0.85), rgba(113, 30, 120, 0.85));
    border-color: rgb(200, 80, 194);
}


.modelist{
    display: flex;
    flex-direction: column;
}

.notimplemented{
    pointer-events: none;
    opacity: 0.5;
}

#cardisplay{
    width: 100%;
}
#cardisplay{
    display: flex;
    flex-direction: column;
}
.cardisplayitem{
    width: 100%;
    display: flex;
    flex-direction: row;
    border: 1px solid white;
    padding: 4px;
}
.cardisplayitem > *{
    width: 25%;
    display: inline-block;
}