/* 
   P-Invertor Global Styles
   This file provides common styling foundation for all pages 
*/

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-dark: #0d1117;
    --bg-primary: #161b22;
    --bg-secondary: #21262d;
    --bg-tertiary: #2d333b;
    --border-color: #30363d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent-blue: #58a6ff;
    --accent-green: #3fb950;
    --accent-red: #f85149;
    --accent-yellow: #d29922;
    --bullish: #26a69a;
    --bearish: #ef5350;
    --warning: #ffb74d;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Global transitions */
.card,
.btn,
.nav-link {
    transition: all 0.2s ease-in-out;
}

/* Common Navbar bits if needed */
.navbar-brand .logo {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Standard Navbar Styles */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 25%, #7c3aed 50%, #8b5cf6 75%, #a78bfa 100%);
    box-shadow: 0 4px 20px rgba(109, 40, 217, 0.3);
}

.nav-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.nav-brand-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: white;
}

.nav-links {
    display: flex;
    gap: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

/* Mobile Navbar - Horizontal Scroll */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
        position: relative;
    }

    .nav-links {
        overflow-x: auto;
        padding-bottom: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        flex: 1;
        margin-left: 10px;
        mask-image: linear-gradient(to right, transparent, black 10px, black 90%, transparent);
        /* Fade edges if possible, but might be complex */
    }

    .nav-links::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .nav-link {
        white-space: nowrap;
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .nav-brand {
        font-size: 1rem;
    }

    .nav-brand span {
        display: none;
        /* Hide text on very small screens if needed, or keep */
    }

    .nav-brand-icon {
        width: 28px;
        height: 28px;
    }
}