/* 
   SEU ALAOR - APP STYLE 2.0 
   Mobile-First | Clean | Premium
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    /* Brand Colors extracted/inspired by generic Food Truck Aesthetics */
    --primary: #E63946;
    /* Vivid Red */
    --primary-dark: #C92A35;
    --secondary: #F4A261;
    /* Warm Orange */
    --accent: #2A9D8F;
    /* Teal for success/actions */

    --bg-body: #F4F7F6;
    --bg-card: #FFFFFF;

    --text-main: #1D3557;
    --text-muted: #8D99AE;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-float: 0 10px 30px rgba(230, 57, 70, 0.2);

    --nav-height: 70px;
    --header-height: 110px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-body);
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    margin: 0;
    padding-bottom: calc(var(--nav-height) + 20px);
    /* Space for bottom nav */
    padding-top: var(--header-height);
    /* Space for fixed header */
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.font-w-600 {
    font-weight: 600;
}

/* --- COMPONENTS --- */

/* 1. Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.brand-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.header-date-row {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    /* Space between date and info */
}

.day-badge {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    background: transparent;
    padding: 0;
    margin-right: 6px;
}

.date-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.header-meta-row {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

.header-meta-item {
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-left: 12px;
}

.header-meta-item:first-child {
    margin-left: 0;
}

.header-meta-item i {
    margin-right: 5px;
    font-size: 12px;
}

/* 2. Bottom Navigation */
.app-bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: var(--nav-height);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: var(--shadow-float);
    z-index: 1000;
}

.nav-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    width: 60px;
    transition: all 0.3s ease;
}

.nav-link-item i {
    font-size: 22px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.nav-link-item.active {
    color: var(--primary);
}

.nav-link-item.active i {
    transform: translateY(-2px);
}

/* Floating Center Button (Menu) */
.nav-link-center {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -30px;
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
    color: white !important;
    border: 4px solid var(--bg-body);
}

.nav-link-center i {
    font-size: 24px;
    margin: 0;
}


/* 3. Cards */
.card-clean {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.product-card-horizontal {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

.product-img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.product-info {
    flex-grow: 1;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
    /* Changed from height to min-height */
}

.btn-add {
    background: var(--bg-body);
    color: var(--primary);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

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

/* 4. Page Elements */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0 15px 0;
    padding: 0 5px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

/* 5. Inputs & Forms */
.form-clean {
    border: 1px solid #E0E0E0;
    background: #FAFAFA;
    border-radius: 12px;
    padding: 12px 15px;
    width: 100%;
    outline: none;
    transition: 0.3s;
}

.form-clean:focus {
    border-color: var(--primary);
    background: white;
}

.btn-primary-block {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    text-align: center;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.search-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border-radius: var(--radius-lg);
    border: none;
    background: white;
    box-shadow: var(--shadow-sm);
    font-family: inherit;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* 6. Utility Classes */
.container-app {
    padding: 0 10px;
    max-width: 100%;
    margin: 0 auto;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modal Fixes for Bootstrap */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
}