﻿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;
}

/* Tối ưu ảnh cho mobile - THÊM MỚI */
.img-fluid {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Profile image styling */
.profile-image {
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

    .profile-image.loaded {
        opacity: 1;
    }

    .profile-image:hover {
        transform: scale(1.05);
    }

/* Mobile responsive */
@media (max-width: 767px) {
    .profile-image {
        max-width: 250px;
        width: 100%;
        border-radius: 50% !important;
    }

    .mobile-profile {
        margin-bottom: 2rem;
    }
}

@media (min-width: 768px) {
    .profile-image {
        width: 100%;
        max-height: 500px;
        object-fit: cover;
    }
}

/* Loading placeholder */
.image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 25%, transparent 50%, #f0f0f0 50%, #f0f0f0 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    animation: loading 1s infinite;
}

@keyframes loading {
    0% {
        background-position: 0px 0px;
    }

    100% {
        background-position: 20px 0px;
    }
}
