/* Form Container */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

/* Labels */
label {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    color: var(--primary-text);

    /* Ensure labels are visible */
}

/* Inputs, Selects, Textareas */
input,
select,
textarea {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border-color, #444);

    /* Fallback dark gray */
    background-color: var(--background, #111);
    color: var(--secondary-text, #eee);
    width: 100%;
    box-sizing: border-box;
    border-radius: 4px;
    transition: border-color 0.2s ease-in-out, background-color 0.2s;
}

/* Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--highlight, #5a9cff);

    /* Accent color for Studio */
    background-color: var(--background-alt, #1a1a1a);
}

/* Placeholder Text */
::placeholder {
    color: var(--placeholder-color, #888);
    opacity: 1;

    /* Make it fully visible */
}

/* Invalid States */
input:invalid,
select:invalid,
textarea:invalid {
    border-color: var(--error, #e26262);
}

/* Disabled Fields (Optional) */
input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
