@charset "utf-8";

/* CSS Document */
:root {
    --main-color: #3b82f6;
    --border-color: #cdcaca;
    --focus-color: #2563eb;
    --radius: 8px;
    --transition: 0.25s ease;
    --bg-light: #f9fafb;
}

/* Genel form alanı */
.ue_form {
    width: 95%;
    max-width: 600px;
    min-width: 300px;
    background: #fff;
    padding: 20px 30px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

    /* Başlık */
    .ue_form h2 {
        text-align: center;
        color: var(--main-color);
        margin-bottom: 10px;
    }

    /* Label */
    .ue_form label {
        font-weight: 600;
        font-size: 14px;
        color: #333;
        margin-bottom: 5px;
        display:block;
    }

    .ue_form .rbInputGroup{
        
        

    }

    /* Input, select, textarea */
    .ue_form input:not([type="checkbox"]):not([type="radio"]),
    .ue_form select,
    .ue_form textarea {
        width: 95%;
        min-width: 150px;
        max-width: 450px;
        padding: 10px 12px;
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        background: var(--bg-light);
        transition: var(--transition);
        font-size: 14px;
        margin-right:15px;
    }

        .ue_form input:focus,
        .ue_form select:focus,
        .ue_form textarea:focus {
            border-color: var(--focus-color);
            background: #fff;
            box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
            outline: none;
        }

        .ue_form input:disabled,
        .ue_form select:disabled,
        .ue_form textarea:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        /* Placeholder */
        .ue_form input::placeholder,
        .ue_form textarea::placeholder {
            color: #aaa;
        }

/* Radio Group */
.radio_group {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 4px;
}

    .radio_group label {
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 4px;
        cursor: pointer;
    }

    .radio_group input[type="radio"] {
        accent-color: var(--main-color);
        width: 16px;
        height: 16px;
        cursor: pointer;
        outline: none; /* tarayıcı outline’ını kaldırır */
        box-shadow: none; /* varsa gölgeyi de temizler */
    }

/* Switch (checkbox yerine) */
.switch_wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.switch_label {
    font-weight: 600;
    color: #333;
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition);
    border-radius: 24px;
}

    .slider::before {
        content: "";
        position: absolute;
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: var(--transition);
        border-radius: 50%;
    }

.switch input:checked + .slider {
    background-color: var(--main-color);
}

    .switch input:checked + .slider::before {
        transform: translateX(22px);
    }

.switch input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(37,99,235,0.25);
}

/* File input */
.file_input {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 8px;
    cursor: pointer;
}

/* Butonlar */
.ue_form .button_group {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.ue_form button {
    flex: 1;
    padding: 10px;
    background: var(--main-color);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    max-width: 300px;
    margin-top: 20px;
    outline:none;
   
}

    .ue_form button:hover {
        background: var(--focus-color);
        transform: translateY(-2px);
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        outline: none;
    }

    .ue_form button:focus {
        outline: 2px solid var(--focus-color);
        outline-offset: 2px;
        outline: none;
    }

    .ue_form button:disabled {
        background: #ccc;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
        outline: none;
    }

/* Responsive */
@media (max-width: 480px) {
    .ue_form {
        margin: 16px;
        padding: 20px;
    }
}
