/* assets/css/style.css */
:root {
    --primary-orange: #ff6600;
    --secondary-orange: #ff8533;
    --light-orange: #fff3e6;
    --dark-text: #333333;
    --gray-bg: #f8f9fa;
    --white: #ffffff;
    --bottom-nav-height: 65px;
}

body {
    background-color: var(--gray-bg);
    color: var(--dark-text);
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding-bottom: var(--bottom-nav-height); /* Space for bottom nav */
    -webkit-font-smoothing: antialiased;
}

/* Backgrounds & Colors */
.bg-primary-orange { background-color: var(--primary-orange) !important; color: white !important; }
.bg-light-orange { background-color: var(--light-orange) !important; }
.text-primary-orange { color: var(--primary-orange) !important; }

/* Login Page specific */
.login-page {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
}

.login-page .card {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* App Header */
.app-header {
    background-color: var(--white);
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.app-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-orange);
}

/* Content Area */
#main-content {
    padding: 15px;
    animation: fadeIn 0.3s ease-in-out;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background-color: var(--white);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1050;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #888;
    font-size: 0.75rem;
    flex: 1;
    height: 100%;
    transition: all 0.2s ease;
}

.nav-item i {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary-orange);
    font-weight: 600;
}

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

.nav-item:hover {
    color: var(--primary-orange);
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    background: var(--white);
    margin-bottom: 15px;
}

.product-card:active {
    transform: scale(0.98);
}

.product-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background-color: var(--light-orange);
}

.product-info {
    padding: 12px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-price {
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Cart / Floating action */
.cart-floating-btn {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 15px);
    right: 15px;
    background-color: var(--primary-orange);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
    z-index: 1040;
    border: none;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: white;
    color: var(--primary-orange);
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dashboard Cards */
.dash-card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    padding: 20px;
    margin-bottom: 15px;
}

.dash-value {
    font-size: 1.8rem;
    font-weight: 800;
}

/* Custom Modal */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #eee;
}

.modal-footer {
    border-top: 1px solid #eee;
}

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

/* Toastify custom */
.toastify-custom {
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
