/*
 * Main stylesheet for the Oui application.
 * This file captures the visual theme from the original Flutter app.
 */

/* --- Color Palette & Global Settings --- */
:root {
    --oui-red: #FF6666;
    --oui-red-hover: #e65c5c;
    --oui-red-disabled: #ff9999;
    --oui-text-light: #ffffff;
    --oui-text-dark: #333333;
    --oui-text-muted: #6c757d;
    --oui-bg-light-gray: #F0F0F0;
}

body {
    font-family: 'Inter', 'Sans-Serif', sans-serif;
    color: var(--oui-text-dark);
}

/* --- Buttons --- */
.btn-oui-primary {
    background-color: var(--oui-red);
    color: var(--oui-text-light);
    border: 1px solid var(--oui-red);
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    transition: background-color 0.2s;
}
.btn-oui-primary:hover {
    background-color: var(--oui-red-hover);
    border-color: var(--oui-red-hover);
    color: var(--oui-text-light);
}
.btn-oui-primary:disabled {
    background-color: var(--oui-red-disabled);
    border-color: var(--oui-red-disabled);
}

.btn-oui-secondary {
    background-color: var(--oui-text-light);
    color: var(--oui-red);
    border: 2px solid var(--oui-red);
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    transition: background-color 0.2s;
}
.btn-oui-secondary:hover {
    background-color: #fdeeee;
    color: var(--oui-red);
    border-color: var(--oui-red);
}


/* --- Home Screen --- */
.home-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* You must place your background image at the path below */
    background-image: url('../images/home_background.png');
    background-size: cover;
    background-position: top center;
    padding: 1rem;
}

.home-content-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}


/* --- Auth Forms (Login/Sign Up) --- */
.auth-form-container {
    max-width: 450px;
    margin: 3rem auto;
    padding: 2rem;
}
.auth-form-container .form-control,
.auth-form-container .form-floating > label {
    color: var(--oui-red);
}
/* Replicate the underline style from the Flutter app */
.auth-form-container .form-control {
    border: none;
    border-bottom: 2px solid var(--oui-red);
    border-radius: 0;
    padding-left: 0;
}
.auth-form-container .form-control:focus {
    box-shadow: none;
    border-color: var(--oui-red-hover);
}
.auth-form-container .form-floating {
    color: var(--oui-red);
}
.auth-form-container .form-floating > .form-control:focus ~ label,
.auth-form-container .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--oui-red);
}


/* --- Authenticated Layout --- */
.authenticated-body {
    background-color: var(--oui-bg-light-gray);
}

.main-content {
    /* Add padding to the bottom to avoid overlap with the fixed bottom nav */
    padding-bottom: 100px;
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1000;
}
.bottom-nav-item {
    color: var(--oui-text-muted);
    text-decoration: none;
    text-align: center;
    flex-grow: 1;
}
.bottom-nav-item.active {
    color: var(--oui-red);
}
.bottom-nav-item .bi {
    font-size: 1.5rem;
}
.bottom-nav-item .nav-text {
    display: block;
    font-size: 0.75rem;
}
