@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #e63946;       /* Vibrant Red */
    --primary-dark: #d62828;  /* Darker Red for hover */
    --primary-light: #ffedef; /* Very light red for backgrounds */
    --dark: #1d3557;          /* Navy/Dark Text */
    --text-muted: #8d99ae;
    --bg-body: #f8f9fa;       /* Off-white background */
    --sidebar-width: 260px;
    --shadow: 0 5px 20px rgba(230, 57, 70, 0.08); /* Red-tinted shadow */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--dark);
    margin: 0;
    overflow-x: hidden;
}

/* --- SIDEBAR (White with Red Accents) --- */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0; left: 0;
    background: #ffffff;
    z-index: 1000;
    box-shadow: 2px 0 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.sidebar-brand {
    padding: 30px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    display: flex; align-items: center; gap: 10px;
}

.nav-link {
    display: flex; align-items: center; gap: 15px;
    padding: 14px 30px;
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-right: 4px solid transparent;
}

.nav-link i { width: 22px; font-size: 1.1rem; }

/* Active & Hover States */
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
    border-right-color: var(--primary);
}

/* --- MAIN CONTENT --- */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 30px;
}

/* --- CARDS & WIDGETS --- */
.card-custom {
    background: white;
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.15);
}

/* --- BUTTONS (Red Gradient) --- */
.btn-primary-red {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
    transition: all 0.3s;
}

.btn-primary-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(230, 57, 70, 0.4);
    color: white;
}

/* --- FORMS --- */
.form-control, .form-select {
    border: 2px solid #eee;
    padding: 12px 15px;
    border-radius: 12px;
    transition: 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* --- STATUS BADGES --- */
.status-badge { padding: 6px 12px; border-radius: 30px; font-size: 0.8rem; font-weight: 700; }
.bg-pending { background: #fff0f1; color: var(--primary); } /* Light Red */
.bg-cooking { background: #fff8e1; color: #ffb703; }       /* Yellow */
.bg-ready { background: #e0fdf4; color: #06d6a0; }          /* Green */

/* --- TABLE --- */
.table th { font-weight: 600; color: var(--text-muted); border-bottom: 2px solid #eee; }
.table td { vertical-align: middle; font-weight: 500; }

/* --- MOBILE TOGGLE --- */
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; }
}