/* File: base.css */
/* Path: /home/rodrfam3.com/public_html/css/base.css */

/* Shared styles for all pages, including Orbitron font */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Orbitron', sans-serif;
    font-weight: 400;
    font-size: 16px;
    background-color: #e6f0fa;
    color: #333;
    margin: 0;
    position: relative;
    overflow-x: hidden;
}

body.front-page,
body.login-page,
body.inventory-page,
body.meal-suggestion-page,
body.finance-page,
body.ai-assistant-page {
    background: linear-gradient(45deg, #0a0a1a, #1e283c, #2a3c5a) !important;
    background-size: 400% !important;
    animation: cosmicBackground 15s ease infinite !important;
    color: #fff;
}

body.light-mode {
    background-color: #e6f0fa !important;
    color: #333;
}

@keyframes cosmicBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 24px;
}

input, button, select, textarea, table, th, td {
    font-family: 'Orbitron', sans-serif;
    font-weight: 400;
    font-size: 16px;
}

button {
    padding: 8px 16px;
    cursor: pointer;
    border: 1px solid #ccc;
    background: #f9f9f9;
}

input, select, textarea {
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
}

.header {
    background-color: #007bff;
    color: white;
    padding: 20px;
    text-align: center;
}

.header h1 {
    margin: 0;
    font-size: 3em;
    font-weight: 700;
    color: white;
    -webkit-text-stroke: 2px black;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: inline-block;
}

body.front-page .header,
body.login-page .header,
body.inventory-page .header,
body.meal-suggestion-page .header,
body.finance-page .header,
body.ai-assistant-page .header {
    background: linear-gradient(135deg, #007bff, #6f42c1);
    box-shadow: 0 0 25px rgba(0,123,255,0.7);
    animation: holoHeader 5s infinite ease-in-out;
}

@keyframes holoHeader {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.nav {
    padding: 10px;
    background: none;
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.nav-menu a.nav-btn,
.nav-menu button.nav-btn {
    background: linear-gradient(45deg, #28a745, #007bff);
    color: white;
    padding: 8px 15px;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    border: 3px solid rgba(111,66,193,0.5);
    box-shadow: 0 0 20px rgba(0,123,255,0.7);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.nav-menu a.nav-btn:hover,
.nav-menu button.nav-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(0,123,255,0.9);
}

.nav-menu a.nav-btn.logout-btn,
.nav-menu button.nav-btn.logout-btn {
    background: linear-gradient(45deg, #dc3545, #6f42c1);
    border: 3px solid rgba(111,66,193,0.5);
    box-shadow: 0 0 20px rgba(220,53,69,0.7);
}

.nav-menu a.nav-btn.logout-btn:hover,
.nav-menu button.nav-btn.logout-btn:hover {
    box-shadow: 0 0 30px rgba(220,53,69,0.9);
}

body.front-page .nav,
body.login-page .nav,
body.inventory-page .nav,
body.meal-suggestion-page .nav,
body.finance-page .nav,
body.ai-assistant-page .nav {
    position: relative;
    z-index: 10;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 20px auto;
    padding: 10px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

body.front-page .container,
body.login-page .container,
body.inventory-page .container,
body.meal-suggestion-page .container,
body.finance-page .container,
body.ai-assistant-page .container {
    background: linear-gradient(135deg, rgba(10,10,26,0.95), rgba(30,40,60,0.95));
    box-shadow: 0 0 40px rgba(0,123,255,0.6);
    padding: 10px;
}

body.light-mode .container {
    background: #e6f0fa;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

.container::before,
body.inventory-page .container::before,
body.meal-suggestion-page .container::before,
body.finance-page .container::before,
body.inventory-page .container::after,
body.finance-page .container::after {
    content: none;
}

/* Hamburger menu styling */
.hamburger {
    display: none;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(45deg, #007bff, #6f42c1);
    border: 2px solid rgba(111,66,193,0.7);
    border-radius: 8px;
    font-size: 1.5em;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(0,123,255,0.7);
}

.hamburger:hover {
    color: #cccccc;
    box-shadow: 0 0 15px rgba(0,123,255,1);
}

.hamburger:focus {
    box-shadow: 0 0 5px rgba(0,123,255,1);
}

body.light-mode .hamburger {
    color: #333;
    background: linear-gradient(45deg, #28a745, #007bff);
    border: 2px solid #007bff;
}

body.light-mode .hamburger:hover {
    color: #666;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

/* Responsive navigation */
@media (max-width: 800px) {
    .hamburger,
    body[class*="page"] .hamburger,
    body.ai-assistant-page .hamburger,
    body.ai-assistant-page.finance-page .hamburger,
    body.finance-page .hamburger {
        display: block;
        position: static;
    }

    body.front-page .nav,
    body.login-page .nav,
    body.inventory-page .nav,
    body.meal-suggestion-page .nav,
    body.finance-page .nav,
    body.ai-assistant-page .nav {
        display: block;
        position: static;
        width: 100%;
        background: transparent;
        padding: 10px;
        box-shadow: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    body.front-page .nav.active,
    body.login-page .nav.active,
    body.inventory-page .nav.active,
    body.meal-suggestion-page .nav.active,
    body.finance-page .nav.active,
    body.ai-assistant-page .nav.active {
        transform: none;
    }

    body.front-page .nav-menu,
    body.login-page .nav-menu,
    body.inventory-page .nav-menu,
    body.meal-suggestion-page .nav-menu,
    body.finance-page .nav-menu,
    body.ai-assistant-page .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 6px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu a.nav-btn,
    .nav-menu button.nav-btn {
        width: 100%;
        max-width: none;
        text-align: left;
        padding: 6px 10px;
        border-radius: 8px;
        font-size: 0.8em;
    }

    .container {
        max-width: 100%;
        padding: 10px;
        margin: 10px auto;
    }
}

@media (max-width: 768px) {
    .hamburger,
    body[class*="page"] .hamburger,
    body.ai-assistant-page .hamburger,
    body.ai-assistant-page.finance-page .hamburger,
    body.finance-page .hamburger {
        display: block;
        position: static;
    }
}

@media (min-width: 801px) {
    body.front-page .hamburger,
    body.login-page .hamburger,
    body.inventory-page .hamburger,
    body.meal-suggestion-page .hamburger,
    body.finance-page .hamburger,
    body.ai-assistant-page .hamburger,
    body.ai-assistant-page.finance-page .hamburger {
        display: none;
    }

    body.front-page .nav,
    body.login-page .nav,
    body.inventory-page .nav,
    body.meal-suggestion-page .nav,
    body.finance-page .nav,
    body.ai-assistant-page .nav {
        display: flex;
    }

    body.front-page .nav-menu,
    body.login-page .nav-menu,
    body.inventory-page .nav-menu,
    body.meal-suggestion-page .nav-menu,
    body.finance-page .nav-menu,
    body.ai-assistant-page .nav-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 20px;
    }

    button, input, select {
        font-size: 14px;
    }

    body.ai-assistant-page .hamburger,
    body.ai-assistant-page.finance-page .hamburger,
    body.finance-page .hamburger {
        position: static;
        padding: 8px;
        font-size: 1.2em;
    }

    body.ai-assistant-page .nav,
    body.finance-page .nav {
        padding: 10px;
    }

    .nav-menu a.nav-btn,
    .nav-menu button.nav-btn {
        padding: 6px 10px;
        font-size: 0.8em;
    }
}

/* This code is full and completed for base.css */