/* --- Variables & Base Styles --- */
:root {
    --bg-dark: #0f0c29;
    --accent-color: #00ff9d;
    --accent-secondary: #00c6ff;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
}

/* Global Fix (VERY IMPORTANT) */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Prevent horizontal scroll / zoom glitches */
html, body {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at center, #1a1a2e, var(--bg-dark));
    color: #ffffff;
    min-height: 100vh;
    padding-bottom: 100px; /* Space for floating nav */
    -webkit-text-size-adjust: 100%; /* Prevent font auto-zoom on iOS */
}

/* --- Layout --- */
.content-area {
    padding: 20px;
    max-width: 800px;
    width: 100%; /* Ensure no overflow */
    margin: 0 auto;
    animation: simpleFade 0.3s ease-in-out forwards;
}

/* --- Reusable Dashboard Components --- */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px); /* reduced from 20px (more stable on mobile) */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 24px;
    margin-bottom: 20px;
    opacity: 1;
    animation: none;
}

/* --- Floating Bottom Navigation --- */
.floating-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Nav Items */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    transition: 0.3s;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--accent-color);
}

/* --- Clean Fade Entrance --- */
@keyframes simpleFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}