/* ================================
   COMMON STYLES - Used Across All Pages
   ================================ */

/* Root Variables */
:root {
    --primary-color: #011C40;
    --secondary-color: #003366;
    --accent-color: #0066cc;
    --text-color: #000000;
    --bg-color: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

/* Navigation Bar */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: var(--transition);
}

/* Button Styles */
.btn-primary,
.btn-secondary {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: #f0f0f0;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* Utility Classes */
.hidden {
    display: none;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--secondary-color);
}

.error-msg {
    color: #d32f2f;
    margin-top: 0.5rem;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 20px;
    }
}


/* Add these styles to your existing common.css */

/* Desktop/Mobile Visibility */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Mobile Header */
.mobile-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow);
}

.mobile-header h1 {
    font-size: 1.2rem;
    margin: 0;
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    color: #666;
    text-decoration: none;
    transition: var(--transition);
    flex: 1;
    text-align: center;
}

.bottom-nav .nav-item svg {
    stroke: #666;
    transition: var(--transition);
}

.bottom-nav .nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

.bottom-nav .nav-item.active,
.bottom-nav .nav-item:active {
    color: var(--primary-color);
}

.bottom-nav .nav-item.active svg,
.bottom-nav .nav-item:active svg {
    stroke: var(--primary-color);
}

/* Add padding to main content for bottom nav */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px; /* Height of bottom nav */
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .bottom-nav {
        display: flex;
    }
}

/* Safe area for iOS notch */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    }
    
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
}
