/* Common form styles for GraphArena */

.form-container {
    background: rgba(39, 43, 48, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-label {
    color: #f1f1f1;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    background-color: rgba(33, 37, 41, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f1f1f1;
    padding: 0.8rem;
    border-radius: 0.25rem;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(33, 37, 41, 0.8);
    border-color: rgba(97, 132, 240, 0.5);
    color: #f1f1f1;
    box-shadow: 0 0 0 0.25rem rgba(97, 132, 240, 0.25);
    outline: none;
}

.form-text {
    color: #aaa;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-check-input {
    background-color: rgba(33, 37, 41, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-check-input:checked {
    background-color: #4776E6;
    border-color: #4776E6;
}

.form-check-label {
    color: #f1f1f1;
}

.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.input-group-text {
    background-color: rgba(33, 37, 41, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f1f1f1;
}

.input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    z-index: 10;
}

.input-with-icon {
    padding-left: 35px;
}

/* Form validation */
.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.is-valid {
    border-color: #28a745 !important;
}

.valid-feedback {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Form groups */
.form-group {
    margin-bottom: 1.5rem;
}

/* Help text */
.help-text {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Error list */
.errorlist {
    color: #dc3545;
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
} 

/* Custom Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4A4A4A;
    transition: .4s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #6184F0;
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
} 