/* CloudShield DNS Philippines — Master UI/UX & Glassmorphism Styles (UI/UX Pro Max Edition) */

/* Background Blobs Animation */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(25px, -40px) scale(1.06); }
    66% { transform: translate(-20px, 20px) scale(0.94); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
    animation: blob 9s infinite ease-in-out;
}

.animation-delay-2000 {
    animation-delay: 2.5s;
}

.animation-delay-4000 {
    animation-delay: 5s;
}

/* Glassmorphism System — Premium Depth & Light/Dark Balance */
.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(186, 230, 253, 0.75);
    box-shadow: 0 8px 32px rgba(3, 105, 161, 0.05);
}

.dark .glass-panel {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(51, 65, 85, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.glass-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(186, 230, 253, 0.65);
    box-shadow: 0 4px 24px rgba(3, 105, 161, 0.04);
}

.dark .glass-card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(51, 65, 85, 0.55);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* Modern Metric Cards Grid — Spacious, Balanced, 3 Cards in 1 Row */
.metrics-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
    margin-bottom: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 640px) {
    .metrics-row {
        gap: 1rem !important;
        margin-bottom: 2rem !important;
    }
}

.metric-box {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0.85rem 0.35rem !important;
    border-radius: 1.25rem !important;
    min-height: 92px !important;
    border: 1px solid rgba(186, 230, 253, 0.65) !important;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.dark .metric-box {
    border: 1px solid rgba(51, 65, 85, 0.55) !important;
}

.metric-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(3, 105, 161, 0.08);
}

.dark .metric-box:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@media (min-width: 640px) {
    .metric-box {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
        padding: 1.25rem 1.75rem !important;
        border-radius: 1.5rem !important;
        min-height: auto !important;
    }
}

/* Hide Scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Smooth Touch Scrolling */
.touch-scroll {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Master Tab Pill Navigation */
.tab-pill {
    background: transparent;
    color: rgba(12, 74, 110, 0.7);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .tab-pill {
    color: rgba(248, 250, 252, 0.7);
}

.tab-pill:hover {
    color: #0369a1;
    background: rgba(3, 105, 161, 0.06);
}

.dark .tab-pill:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.tab-pill-active {
    background: #0369a1 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(3, 105, 161, 0.35);
}

.dark .tab-pill-active {
    background: #0ea5e9 !important;
    color: #0b1121 !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

/* Toggle Switches */
.switch input:checked + div {
    background-color: #0369a1;
}

.dark .switch input:checked + div {
    background-color: #0ea5e9;
}
