:root {
    --bg-color: #f9fafb;
    --text-color: #1f2937;
    --card-bg: rgba(255, 255, 255, 0.75);
    --border-color: rgba(0, 0, 0, 0.1);
    --hover-bg: rgba(0, 0, 0, 0.05);
    --icon-color: #4b5563;
    --header-bg: rgba(255, 255, 255, 0.5);
    --item-border-color: rgba(0, 0, 0, 0.07);
}

html.dark {
    --bg-color: #0d1117;
    --text-color: #f9fafb;
    --card-bg: rgba(17, 24, 39, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --hover-bg: rgba(255, 255, 255, 0.08);
    --icon-color: #C1C1C1;
    --header-bg: rgba(17, 24, 39, 0.6);
    --item-border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition:
        background-color 0.3s,
        color 0.3s;
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #0a192f, #133a75, #5a189a, #9d4edd);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
    transition: background 0.5s ease-in-out;
}

html:not(.dark) .animated-bg {
    background: linear-gradient(45deg, #e5e7eb, #d8b4fe);
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.glass-container {
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    transition:
        background-color 0.3s,
        border-color 0.3s;
    height: calc(100dvh - 2rem);
}

@media (min-width: 1024px) {
    .glass-container {
        height: auto;
        min-height: 90vh;
    }
}

.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(120, 120, 120, 0.5);
    border-radius: 10px;
}

.loader {
    width: 18px;
    height: 18px;
    border: 2px solid #6b7280;
    border-top-color: #60a5fa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.donut-chart-bg {
    stroke: rgba(120, 120, 120, 0.3);
}

.donut-chart-fg {
    stroke: #01E391;
    stroke-linecap: round;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
    transition: stroke-dashoffset 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.dns-item-box {
    height: fit-content;
    border: 1px solid var(--item-border-color);
}

#share-page {
    transition: opacity 0.3s ease-in-out;
}
