/* Custom resets and CSS configurations for Glassmorphism themes */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;300;400;700;900&display=swap');

:root {
    --bg-primary: #0a0b10;
    --primary-color: #2563eb;
    --primary-glow: #3b82f6;
    --secondary-glow: #8b5cf6;
    --glass-background: rgba(13, 15, 24, 0.45);
    --glass-border: rgba(255, 255, 255, 0.06);
    --text-gradient-linear: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    --progress-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 10% 20%, rgba(37, 99, 235, 0.1) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(139, 92, 246, 0.1) 0px, transparent 50%);
    color: #f8fafc;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    letter-spacing: -0.15px;
    overflow-x: hidden;
    position: relative;
}

/* Base glowing background nodes */
.bg-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

.bg-glow-1 {
    top: 15%;
    right: 10%;
    background-color: var(--primary-color);
}

.bg-glow-2 {
    bottom: 20%;
    left: 10%;
    background-color: #a855f7;
}

/* Glassmorphism card specifications */
.glass-card {
    background: var(--glass-background);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 12px 50px 0 rgba(37, 99, 235, 0.12);
}

/* Gradient effects */
.text-gradient {
    background: var(--text-gradient-linear);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.bg-gradient-progress {
    background: var(--progress-gradient);
}

/* Specific button customizations */
.btn-primary {
    background: var(--progress-gradient);
    border: none;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.55);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Circular Dashboard SVG styles */
.progress-ring__circle {
    transform: rotate(-90deg);
    transform-origin: 90px 90px;
    transition: stroke-dashoffset 1s ease-in-out;
}

/* Active status dots indicators */
.status-dot-active {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    display: inline-block;
    box-shadow: 0 0 10px #10b981;
}

.status-dot-inactive {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
    display: inline-block;
    box-shadow: 0 0 10px #ef4444;
}



/* General design helpers */
.text-primary-glow {
    color: #93c5fd;
    text-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

.display-3, .display-4, .display-6 {
    letter-spacing: -1px;
}

.fw-black {
    font-weight: 900;
}

.fs-7 {
    font-size: 0.875rem;
}

.fs-075 {
    font-size: 0.825rem;
}

.fs-8 {
    font-size: 0.75rem;
}

.fs-9 {
    font-size: 0.65rem;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

.animate-bounce {
    animation: bounce 3s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.8,0,1,1);
    }
    50% {
        transform: translateY(-15px);
        animation-timing-function: cubic-bezier(0,0,0.2,1);
    }
}

/* Custom glowing features for home.html elements */
.hero-banner-box {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-ring {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.03);
    top: -50px;
    right: -50px;
    pointer-events: none;
}

.glow-effect {
    filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.3));
}

.error-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background-color: rgba(239, 68, 68, 0.1);
    filter: blur(50px);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

/* Responsive custom spacing */
.min-vh-75 {
    min-height: 75vh;
}