/* Common Styles */

.app-tooltip {
    position: fixed;
    z-index: 9999;
    background: rgba(17, 24, 39, 0.92);
    color: #f8fafc;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -12px);
    transition: opacity 0.12s ease;
    max-width: 240px;
    line-height: 1.35;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.22);
}

.app-tooltip.show {
    opacity: 1;
}

[data-theme="dark"] .app-tooltip {
    background: rgba(15, 23, 42, 0.9);
    color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-gradient);
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Hide content until translations are loaded to prevent flickering */
html.translations-loading,
body.translations-loading {
    visibility: hidden;
    opacity: 0;
}

html.translations-ready,
body.translations-ready {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.text-muted {
    color: var(--text-secondary);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}









