:root {
    --bg-dark: #0f172a;
    --surface: rgba(30, 41, 59, 0.7);
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.3);
    --secondary: #818cf8;
    --accent: #c084fc;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
}

/* Mobile App Specific Styles */
html, body {
    overscroll-behavior-y: none; /* Prevent elastic bounce on hybrid apps */
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

input, textarea {
    user-select: text; /* Allow text selection in inputs */
}

body {
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
}

/* App-like Navigation Bar */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: var(--safe-bottom);
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
    
    .nav-links {
        display: none !important; /* Hide top nav links on mobile */
    }
}

.nav-item {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-item i {
    font-size: 1.25rem;
}

.nav-item.active {
    color: var(--primary);
}

/* External Link Icons */
a[target="_blank"]::after {
    content: " \f35d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8em;
}
