:root {
    /* Color Palette - Modern Dark Theme */
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-card: rgba(30, 41, 59, 0.7);
    /* Slate 800 with opacity */
    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --accent-primary: #3b82f6;
    /* Blue 500 */
    --accent-hover: #2563eb;
    /* Blue 600 */
    --success: #10b981;
    /* Emerald 500 */
    --error: #ef4444;
    /* Red 500 */
    --warning: #f59e0b;
    /* Amber 500 */
    --glass-border: rgb(147 147 147);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-speed: 0.3s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    /* margin: 0; */
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: #ffffff;
    line-height: 1.3;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    flex-direction: column;
    align-items: center;
}

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

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

/* Layout & Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

main {
    flex: 1;
    padding: 2rem 0;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgb(30 41 59);
    /* backdrop-filter: blur(12px); */
    /* border: 1px solid var(--glass-border); */
    border-radius: 1rem;
    /* box-shadow: var(--glass-shadow); */
    padding: 3rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.glass-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    padding: 1rem 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
    font-size: 1rem;
    justify-content: space-around;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-block {
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    background-color: rgba(0, 0, 0, 0.3);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 3001;
    background: rgba(15, 23, 42, 0.8);
    /* backdrop-filter: blur(10px); */
    border-bottom: 1px solid var(--glass-border);
    /* padding: 1rem 0; */
    /* width: 350px; */
    max-width: 100rem;
}

.nav-content {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.nav-brand span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-item {
    position: relative;
    transition: transform var(--transition-speed);
}

.nav-item:hover {
    transform: translateY(-5px);
}

.nav-link-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
}

.app-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.05);
    /* Very subtle background by default */
    border-radius: 50%;
    /* Completely round */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.app-icon i {
    z-index: 2;
    transition: transform 0.3s ease;
}

/* Gradient backgrounds for different "apps" */
.nav-item:nth-child(1) .app-icon {
    /* Home */
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.2));
    border-color: rgba(59, 130, 246, 0.3);
}

.nav-item:nth-child(2) .app-icon {
    /* Restaurants */
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
    border-color: rgba(245, 158, 11, 0.3);
}

.nav-item:nth-child(3) .app-icon {
    /* Taxi */
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    border-color: rgba(16, 185, 129, 0.3);
}

.app-icon.login {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.2));
    border-color: rgba(139, 92, 246, 0.3);
}

.app-icon.logout {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
    border-color: rgba(239, 68, 68, 0.3);
}

/* Hover Effects */
.nav-item:hover .app-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

.nav-item:hover .app-icon i {
    transform: scale(1.1);
}

/* Specific glows on hover */
.nav-item:nth-child(1):hover .app-icon {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.6);
}

.nav-item:nth-child(2):hover .app-icon {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    border-color: rgba(245, 158, 11, 0.6);
}

.nav-item:nth-child(3):hover .app-icon {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    border-color: rgba(16, 185, 129, 0.6);
}

.nav-item:hover .app-icon.login {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.6);
}

.nav-item:hover .app-icon.logout {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.6);
}

/* Optional label tooltip style/positioning if we wanted it visible */
.app-label {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        /* Enable it */
        position: fixed;
        bottom: 1.5rem;
        left: 1rem;
        right: 1rem;
        background: rgba(15, 23, 42, 0.95);
        /* Darker background for visibility */
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid var(--glass-border);
        border-radius: 2rem;
        padding: 0.75rem 1rem;
        justify-content: space-between;
        /* Space out items evenly */
        gap: 0;
        /* Let justify-content handle spacing */
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        margin: 0 auto;
        max-width: 400px;
        /* Prevent it from being too wide on tablets or landscape */
    }

    .app-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}