﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

#spinner {
    z-index: 99999;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,249,250,0.98) 100%);
    backdrop-filter: blur(3px);
    transition: opacity 0.4s ease;
}

.spinner-border {
    width: 5rem !important;
    height: 5rem !important;
    border-width: 0.3em !important;
    border-style: solid !important;
    border-color: #e0e0e0 !important;
    border-top-color: #2c5fa5 !important;
    border-right-color: #20c997 !important;
    border-bottom-color: #ff6b6b !important;
    animation: spinner-animation 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    position: relative;
}

    .spinner-border:after {
        content: '';
        position: absolute;
        top: -0.3em;
        left: 50%;
        width: 0.8em;
        height: 0.8em;
        background: #2c5fa5;
        border-radius: 50%;
        transform: translateX(-50%);
        box-shadow: 0 0 10px rgba(44, 95, 165, 0.8);
    }

.spinner-caption {
    margin-top: 1.8rem;
    font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    background: linear-gradient(90deg, #2c5fa5, #20c997, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

    .spinner-caption:after {
        content: '⌛';
        position: absolute;
        right: -1.8rem;
        animation: pulse 1.5s infinite;
    }

@keyframes spinner-animation {
    0% {
        transform: rotate(0deg);
        border-top-width: 0.3em;
    }

    50% {
        border-top-width: 0.6em;
    }

    100% {
        transform: rotate(360deg);
        border-top-width: 0.3em;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    .spinner-border {
        width: 4rem !important;
        height: 4rem !important;
    }

    .spinner-caption {
        font-size: 1rem;
    }
}
