html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/*Back To Top Button*/
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: none;
    width: 50px;
    height: 50px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

    .back-to-top i {
        font-size: 1.3rem;
    }


/* Alert elementlerinin zamanla kaybolması için */
/* Fade out animasyonu */
@keyframes slideFadeOut {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }

    70% {
        opacity: 0.9;
        transform: translateX(10px) scale(0.98);
    }

    100% {
        opacity: 0;
        transform: translateX(60px) scale(0.9);
        filter: blur(5px);
        pointer-events: none;
    }
}

/* Otomatik kaybolan alert */
.alert.auto-hide {
    animation: slideFadeOut 0.5s ease-in forwards;
    animation-delay: 5s; /* 5 saniye sonra kaybolur */
    will-change: transform, opacity;
}

/* Sabit form kaydet buton bölümü */
.form-footer-fixed {
    position: sticky;
    bottom: 0px;
    display: flex;
    justify-content: flex-end;
    padding: 30px;
    z-index: 10;
}


/*site yükleme animasyonu*/
#preloader {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

    #preloader.hide {
        opacity: 0;
        visibility: hidden;
    }

/* Spinner */
.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ddd;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
