﻿tooth-loader-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.tooth-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.tooth-loader-tooth-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tooth-loader {
    width: 120px;
    height: 120px;
    position: relative;
    animation: gentlePulse 1.2s ease-in-out infinite alternate;
}

    .tooth-loader svg {
        width: 100%;
        height: 100%;
        filter: drop-shadow(0 8px 25px rgba(0, 180, 205, 0.3));
    }

/* Sparkle effects around the tooth */
.tooth-loader-sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0;
    animation: sparkle 3s linear infinite;
}

    .tooth-loader-sparkle:nth-child(3) {
        top: 20%;
        left: 15%;
        animation-delay: 0s;
    }

    .tooth-loader-sparkle:nth-child(4) {
        top: 30%;
        right: 10%;
        animation-delay: 0.25s;
    }

    .tooth-loader-sparkle:nth-child(5) {
        bottom: 25%;
        left: 20%;
        animation-delay: 0.5s;
    }

    .tooth-loader-sparkle:nth-child(6) {
        top: 15%;
        right: 25%;
        animation-delay: 0.75s;
    }

    .tooth-loader-sparkle:nth-child(7) {
        bottom: 20%;
        right: 15%;
        animation-delay: 1s;
    }

    .tooth-loader-sparkle:nth-child(8) {
        top: 45%;
        left: 5%;
        animation-delay: 1.25s;
    }



/* Healthy glow effect */
.tooth-loader-health-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(0, 180, 205, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: healthGlow 3s ease-in-out infinite alternate;
}

/* Floating bubbles for freshness */
.tooth-loader-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0;
    animation: floatUp 4s linear infinite;
}

    .tooth-loader-bubble:nth-child(9) {
        width: 8px;
        height: 8px;
        bottom: -10px;
        left: 30%;
        animation-delay: 0s;
    }

    .tooth-loader-bubble:nth-child(10) {
        width: 12px;
        height: 12px;
        bottom: -10px;
        left: 60%;
        animation-delay: 0.5s;
    }

    .tooth-loader-bubble:nth-child(11) {
        width: 6px;
        height: 6px;
        bottom: -10px;
        left: 45%;
        animation-delay: 1s;
    }

    .tooth-loader-bubble:nth-child(12) {
        width: 10px;
        height: 10px;
        bottom: -10px;
        left: 75%;
        animation-delay: 1.5s;
    }

.tooth-loader-loading-text {
    color: #0891b2;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    animation: textPulse 1.2s ease-in-out infinite;
    text-align: center;
}

.tooth-loader-loading-subtext {
    color: #0369a1;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0.8;
    margin-top: 0.5rem;
}



@keyframes gentlePulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 8px 25px rgba(0, 180, 205, 0.3));
    }

    100% {
        transform: scale(1.2);
        filter: drop-shadow(0 12px 35px rgba(0, 180, 205, 0.5));
    }
}

@keyframes sparkle {
    0%, 20% {
        opacity: 0;
        transform: scale(0);
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    80%, 100% {
        opacity: 0;
        transform: scale(0);
    }
}



@keyframes healthGlow {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.1;
    }
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-150px);
    }
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
        color: #0891b2;
    }

    50% {
        opacity: 0.7;
        color: #0369a1;
    }
}



/* Responsive design */
@media (max-width: 768px) {
    .tooth-loader-tooth-wrapper {
        width: 100px;
        height: 100px;
    }

    .tooth-loader {
        width: 80px;
        height: 80px;
    }

    .tooth-loader-loading-text {
        font-size: 1.1rem;
    }
}

/* Additional dental-themed elements */
.tooth-loader-dental-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 2px, transparent 2px), radial-gradient(circle at 80% 80%, rgba(0, 180, 205, 0.05) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    animation: patternFloat 10s linear infinite;
    pointer-events: none;
}

@keyframes patternFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100px);
    }
}
