@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&family=Fira+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #020617;
    --bg-card-light: #0f172a;
    --border-color: rgba(51, 65, 85, 0.4);
    --color-primary: #3b82f6;
    --color-primary-hover: #2563eb;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --tg-color: #2AABEE;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* Hide scrollbar for all elements */
*::-webkit-scrollbar {
    display: none;
}
* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body { 
    font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    background: transparent; /* For iframes */
    color: var(--text-main); 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.hidden { display: none !important; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 3rem; }
.mb-12 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-align-center { display: flex; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-4 { gap: 1rem; }
.mr-2 { margin-right: 0.5rem; }

.btn { 
    padding: 0.75rem 1.5rem; 
    border-radius: 0.75rem; 
    border: none; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
    font-family: inherit; 
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-primary { 
    background: var(--color-primary); 
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}
.btn-primary:hover { 
    background: var(--color-primary-hover); 
    transform: translateY(-1px);
}
.btn-outline { background: transparent; border: 1.5px solid var(--border-color); color: var(--text-main); }
.btn-outline:hover { border-color: var(--text-muted); background: rgba(255,255,255,0.03); }
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }

.diag-card { 
    background: var(--bg-card-light); 
    border: 1px solid var(--border-color); 
    border-radius: 1.25rem; 
    padding: 2rem; 
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Progress Bars */
.progress-bar-bg { height: 8px; background: rgba(51, 65, 85, 0.4); border-radius: 4px; overflow: hidden; }
.progress-bar-fill { 
    height: 100%; 
    background: var(--color-primary); 
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--color-success); border: 1px solid rgba(16, 185, 129, 0.2); padding: 0.35rem 0.85rem; border-radius: 1rem; font-size: 0.8rem; font-weight: 700; }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--color-warning); border: 1px solid rgba(245, 158, 11, 0.2); padding: 0.35rem 0.85rem; border-radius: 1rem; font-size: 0.8rem; font-weight: 700; }
.badge-error { background: rgba(239, 68, 68, 0.1); color: var(--color-error); border: 1px solid rgba(239, 68, 68, 0.2); padding: 0.35rem 0.85rem; border-radius: 1rem; font-size: 0.8rem; font-weight: 700; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* Insights */
.insight-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; padding: 1.25rem; background: rgba(255,255,255,0.03); border-radius: 0.75rem; border: 1px solid var(--border-color); }
.insight-item i { font-size: 1.25rem; margin-top: 0.2rem; flex-shrink: 0; }
.insight-item strong { display: block; margin-bottom: 0.25rem; color: var(--text-main); }

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .flex-between { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .flex-between { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
