﻿/* Form Submit Button Stilleri */

/* Submit butonları için genel stiller */
button[type="submit"],
input[type="submit"] {
    position: relative;
    transition: all 0.3s ease;
}

    button[type="submit"]:disabled,
    input[type="submit"]:disabled {
        cursor: not-allowed !important;
    }

/* Spinner animasyonu - Bootstrap kullanmıyorsak */
@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 0.15em;
}

/* Buton loading state */
button[type="submit"][disabled] {
    opacity: 0.7;
    pointer-events: none;
}

/* Smooth transition */
button[type="submit"] span,
button[type="submit"] i {
    transition: opacity 0.3s ease;
}

/* Loading durumunda ikon fade out */
button[type="submit"][disabled] .btn-icon-original {
    opacity: 0;
}

/* Custom loading animasyonu (alternatif) */
.btn-loading {
    position: relative;
    color: transparent !important;
}

    .btn-loading::after {
        content: '';
        position: absolute;
        width: 16px;
        height: 16px;
        top: 50%;
        left: 50%;
        margin-left: -8px;
        margin-top: -8px;
        border: 2px solid #ffffff;
        border-radius: 50%;
        border-top-color: transparent;
        animation: spinner-border 0.75s linear infinite;
    }

/* Pulse effect (opsiyonel) */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

button[type="submit"]:active:not(:disabled) {
    animation: pulse 0.3s ease;
}
