﻿html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

#app {
    position: relative;
    width: 100%;
    height: 100%;
}

.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a0505 100%);
    display: flex;
    flex-direction: column;
    justify-content: center; /* وسط عمودی */
    align-items: center; /* وسط افقی */
    text-align: center;
    z-index: 9999;
}

#flower-container {
    margin: 0;
    padding: 0;
}

#flower-svg {
    width: 100%;
    height: 100%;
}

.outer-petal {
    fill: url(#outerPetalGradient);
    stroke: #8b0000;
    stroke-width: 0.5;
    opacity: 0.95;
    filter: drop-shadow(0 0 2px rgba(139, 0, 0, 0.3));
}

.middle-petal {
    fill: url(#middlePetalGradient);
    stroke: #a01010;
    stroke-width: 0.4;
    opacity: 0.9;
    filter: drop-shadow(0 0 2px rgba(160, 16, 16, 0.4));
}

.inner-petal {
    fill: url(#innerPetalGradient);
    stroke: #b01818;
    stroke-width: 0.3;
    opacity: 0.85;
    filter: drop-shadow(0 0 2px rgba(176, 24, 24, 0.5));
}

#outer circle:nth-child(1) {
    fill: none;
    stroke: rgba(139, 0, 0, 0.4);
    stroke-width: 1.5;
    animation: pulseCircle 3s ease-in-out infinite;
}

#outer circle:nth-child(2) {
    fill: none;
    stroke: rgba(139, 0, 0, 0.3);
    stroke-width: 1;
    animation: pulseCircle 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

#complete-flower {
    animation: rotateFlower 10s linear infinite;
    transform-origin: 100px 100px;
}

#center {
    animation: centerPulse 2s ease-in-out infinite, centerGlow 3s ease-in-out infinite;
    transform-origin: 100px 100px;
}

.loading-dots {
    display: inline-block;
}

    .loading-dots span {
        animation: dotBounce 1.4s ease-in-out infinite;
        display: inline-block;
    }

        .loading-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .loading-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes rotateDash {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateFlower {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseCircle {
    0%, 100% {
        stroke-opacity: 0.4;
        transform: scale(1);
    }

    50% {
        stroke-opacity: 0.8;
        transform: scale(1.02);
    }
}

@keyframes centerPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes centerGlow {
    0%, 100% {
        filter: drop-shadow(0 0 3px rgba(139, 0, 0, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 8px rgba(139, 0, 0, 0.9));
    }
}

@keyframes textFade {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }
}

.loading-container.fade-out {
    animation: fadeOut 0.8s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}
