/* ==========================================
   HUNGER FEED - MAIN STYLESHEET
   Cleaned & Organized Version
   ========================================== */

/* ==========================================
   RESET & BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #fff8f2;
    color: #333;
}

a {
    text-decoration: none;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: #ff5a36;
    color: white;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    font-weight: bold;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* ==========================================
   GENERAL BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background: #ff5a36;
    color: white;
    border-radius: 30px;
    font-weight: bold;
}

.btn:hover {
    background: #e94a28;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 10%;
    background: linear-gradient(135deg, #fff1d6, #ffd2c2);
}

.hero-content {
    max-width: 550px;
}

.hero-content h1 {
    font-size: 55px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #222;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #555;
}

.hero-image {
    font-size: 200px;
}

/* ==========================================
   CATEGORIES
   ========================================== */
.categories {
    padding: 60px 10%;
    text-align: center;
}

.categories h2,
.why-us h2 {
    font-size: 35px;
    margin-bottom: 40px;
}

.category-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    background: white;
    padding: 30px 10px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    font-size: 40px;
    transition: 0.3s;
}

.category-card h3 {
    font-size: 17px;
    margin-top: 10px;
}

.category-card:hover {
    transform: translateY(-5px);
}

/* ==========================================
   WHY US / FEATURES
   ========================================== */
.why-us {
    padding: 60px 10%;
    text-align: center;
    background: #fff;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature {
    padding: 30px;
    font-size: 40px;
}

.feature h3 {
    font-size: 20px;
    margin: 15px 0;
}

.feature p {
    font-size: 16px;
    color: #666;
}

/* ==========================================
   ORDERS / MY ORDERS
   ========================================== */
.orders-container {
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
}

.orders-title {
    text-align: center;
    margin-bottom: 30px;
}

.order-card {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.order-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.order-info h3 {
    margin-bottom: 8px;
}

.order-info p {
    margin: 5px 0;
    color: #666;
}

.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.status-pending,
.pending {
    background: #fff3cd;
    color: #856404;
}

.status-preparing,
.preparing {
    background: #cfe2ff;
    color: #084298;
}

.status-ready,
.ready {
    background: #d1e7dd;
    color: #0f5132;
}

.status-completed,
.completed {
    background: #d1e7dd;
    color: #0f5132;
}

.status-cancelled,
.cancelled {
    background: #f8d7da;
    color: #842029;
}

.view-order-btn {
    display: inline-block;
    background: #ff5a36;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
}

.view-order-btn:hover {
    opacity: 0.9;
}

.empty-orders,
.empty-cart,
.empty-message {
    text-align: center;
    background: white;
    padding: 50px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.empty-orders h2,
.empty-cart h2 {
    margin-bottom: 10px;
}

.empty-orders p {
    color: #666;
    margin-bottom: 20px;
}

/* ==========================================
   PROFILE
   ========================================== */
.profile-container {
    width: 90%;
    max-width: 600px;
    margin: 50px auto;
}

.profile-title {
    text-align: center;
    margin-bottom: 30px;
}

.profile-title h1 {
    margin-bottom: 8px;
}

.profile-title p {
    color: #666;
}

.profile-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.profile-card h2 {
    margin-bottom: 25px;
}

.profile-icon {
    text-align: center;
    font-size: 60px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: white;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff5a36;
    box-shadow: 0 0 0 2px rgba(255, 90, 54, 0.08);
}

.update-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: #ff5a36;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.update-btn:hover {
    background: #e94a28;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.account-info {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
}

.account-info p {
    margin: 8px 0;
}

/* ==========================================
   LOGIN / REGISTER
   ========================================== */
.auth-container {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.auth-box {
    width: 400px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 30px;
}

.auth-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 25px;
    background: #ff5a36;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.auth-button:hover {
    background: #e94a28;
}

.message {
    background: #ffe0d8;
    color: #d93616;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.success {
    background: #dff5e1;
    color: #218838;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
}

.auth-link a {
    color: #ff5a36;
    font-weight: bold;
}

/* ==========================================
   ORDER SUCCESS
   ========================================== */
.success-container {
    min-height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.success-box {
    background: white;
    width: 500px;
    padding: 50px 40px;
    text-align: center;
    border-radius: 25px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.success-box h1 {
    font-size: 35px;
    margin-bottom: 15px;
    color: #222;
}

.success-box p {
    color: #666;
    line-height: 1.6;
}

.order-number {
    margin: 25px 0;
    padding: 15px;
    background: #fff1eb;
    border-radius: 10px;
    font-weight: bold;
    color: #ff5a36;
}

.success-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.success-buttons a {
    padding: 14px;
    border-radius: 30px;
    font-weight: bold;
}

.primary-btn {
    background: #ff5a36;
    color: white;
}

.secondary-btn {
    background: #eee;
    color: #333;
}

/* ==========================================
   FOOD DETAILS
   ========================================== */
.details-container {
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
}

.details-card {
    max-width: 1000px;
    width: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.details-image {
    min-height: 450px;
    background: #ffe4d6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 180px;
}

.details-info {
    padding: 50px;
}

.details-category {
    color: #ff5a36;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.details-info h1 {
    font-size: 40px;
    margin: 15px 0;
}

.details-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.details-price {
    font-size: 30px;
    font-weight: bold;
    color: #ff5a36;
    margin-bottom: 25px;
}

.quantity {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.quantity label {
    font-weight: bold;
}

.quantity input {
    width: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
}

.add-cart {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 30px;
    background: #ff5a36;
    color: white;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.add-cart:hover {
    background: #e94a28;
}

.back-menu {
    display: inline-block;
    margin-top: 20px;
    color: #555;
}

/* ==========================================
   MENU
   ========================================== */
.menu-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

.menu-header {
    text-align: center;
    margin-bottom: 30px;
}

.menu-header h1 {
    margin-bottom: 10px;
}

.menu-header p {
    color: #777;
}

.filter-box {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.filter-form {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 10px;
}

.filter-form input,
.filter-form select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: white;
}

.search-btn {
    background: #ff5a36;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: bold;
    cursor: pointer;
}

.search-btn:hover {
    background: #e94a28;
}

.reset-btn {
    display: inline-block;
    margin-top: 10px;
    color: #777;
    font-size: 14px;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.food-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: 0.2s;
}

.food-card:hover {
    transform: translateY(-5px);
}

.food-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.food-content {
    padding: 18px;
}

.food-category {
    font-size: 12px;
    color: #ff5a36;
    font-weight: bold;
    text-transform: uppercase;
}

.food-name {
    margin: 7px 0;
    font-size: 18px;
}

.food-description {
    color: #777;
    font-size: 13px;
    min-height: 40px;
}

.food-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.food-price {
    color: #ff5a36;
    font-weight: bold;
    font-size: 17px;
}

.food-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.add-cart-form {
    margin: 0;
}

.view-btn {
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 13px;
}

.view-btn:hover {
    background: #555;
}

.cart-btn {
    background: #ff5a36;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.cart-btn:hover {
    background: #e94a28;
}

.result-count {
    margin-bottom: 20px;
    color: #777;
}

.empty-message {
    color: #777;
}

/* ==========================================
   CART
   ========================================== */
.cart-container {
    padding: 50px 8%;
    min-height: 70vh;
}

.cart-container h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 40px;
}

.cart-content {
    max-width: 1000px;
    margin: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.cart-table th {
    background: #ff5a36;
    color: white;
    padding: 15px;
    text-align: left;
}

.cart-table td {
    padding: 18px 15px;
    border-bottom: 1px solid #eee;
}

.quantity-input {
    width: 65px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.remove-btn {
    color: #e53935;
    font-weight: bold;
}

.cart-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.total-box {
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.total-label {
    color: #666;
}

.total-price {
    font-size: 28px;
    font-weight: bold;
    color: #ff5a36;
}

.cart-buttons {
    display: flex;
    gap: 15px;
}

.continue-btn {
    padding: 13px 22px;
    background: #eee;
    color: #333;
    border-radius: 25px;
    font-weight: bold;
}

.update-btn {
    padding: 13px 22px;
    background: #ff5a36;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
}

.checkout-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 14px 30px;
    background: #222;
    color: white;
    border-radius: 25px;
    font-weight: bold;
}

.empty-cart a {
    display: inline-block;
    margin-top: 20px;
    padding: 13px 25px;
    background: #ff5a36;
    color: white;
    border-radius: 25px;
    font-weight: bold;
}

/* ==========================================
   CHECKOUT
   ========================================== */
.checkout-container {
    max-width: 1000px;
    margin: auto;
    padding: 50px 20px;
    min-height: 70vh;
}

.checkout-container h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 40px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.order-box,
.summary-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.order-box h2,
.summary-box h2 {
    margin-bottom: 25px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.order-item-name {
    font-weight: bold;
}

.order-item-info {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.order-item-price {
    font-weight: bold;
    color: #ff5a36;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    border-top: 2px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
    font-size: 22px;
    font-weight: bold;
}

.place-order {
    width: 100%;
    padding: 15px;
    margin-top: 25px;
    border: none;
    border-radius: 30px;
    background: #ff5a36;
    color: white;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.place-order:hover {
    background: #e94a28;
}

.error {
    background: #ffe0d8;
    color: #d93616;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* ==========================================
   CUSTOMER ORDER DETAILS
   ========================================== */
.order-details-page {
    background: #fff8f2;
    color: #222;
}

.order-details-page .details-container {
    width: 90%;
    max-width: 1200px;
    min-height: 75vh;
    margin: 40px auto;
    padding: 20px 0 50px;
    display: grid;
    grid-template-columns: 0.8fr 1fr 1.35fr;
    gap: 24px;
    align-items: center;
}

.order-details-page .details-title {
    text-align: right;
    padding: 20px;
}

.order-details-page .details-title h1 {
    font-size: 40px;
    line-height: 1.15;
    margin-bottom: 8px;
}

.order-details-page .details-title p {
    font-size: 18px;
}

.order-details-page .order-summary,
.order-details-page .items-box {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.order-details-page .order-summary {
    padding: 30px;
}

.order-details-page .order-summary h2,
.order-details-page .items-box h2 {
    margin: 0 0 20px;
}

.order-details-page .order-summary p {
    margin: 12px 0;
    color: #555;
    line-height: 1.4;
}

.order-details-page .items-box {
    padding: 30px;
}

.order-details-page .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.order-details-page .item:last-of-type {
    border-bottom: none;
}

.order-details-page .item-left {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.order-details-page .item-image {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    object-fit: cover;
    border-radius: 12px;
}

.order-details-page .item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.order-details-page .item-info {
    color: #666;
    font-size: 14px;
}

.order-details-page .item-subtotal {
    font-weight: bold;
    white-space: nowrap;
}

.order-details-page .total-box {
    text-align: right;
    margin-top: 20px;
    padding: 20px;
    border-top: 2px solid #eee;
    background: #fff;
    border-radius: 15px;
}

.order-details-page .total-box h2 {
    color: #ff5a36;
    margin: 0;
}

.order-details-page .back-btn {
    display: inline-block;
    margin-top: 20px;
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
}

.order-details-page .back-btn:hover {
    background: #555;
}

/* ==========================================
   ADMIN GENERAL
   ========================================== */
.admin-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.dashboard-btn,
.home-btn {
    display: inline-block;
    margin-bottom: 20px;
    background: #333;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
}

.dashboard-btn:hover,
.home-btn:hover {
    background: #555;
}

.add-box,
.category-box,
.food-table-box,
.order-box,
.user-box,
.info-box,
.items-box {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* ==========================================
   ADMIN CATEGORIES
   ========================================== */
.add-form {
    display: flex;
    gap: 10px;
}

.add-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

.add-btn {
    background: #ff5a36;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: bold;
    cursor: pointer;
}

.add-btn:hover {
    background: #e94a28;
}

.delete-btn {
    background: #dc3545;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.disabled-text {
    color: #999;
    font-size: 13px;
}

/* ==========================================
   ADMIN DASHBOARD
   ========================================== */
.admin-header {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.admin-header h1 {
    margin-bottom: 10px;
}

.admin-header p {
    color: #777;
}

.logout-btn {
    display: inline-block;
    margin-top: 15px;
    background: #dc3545;
    color: white;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    font-size: 35px;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 30px;
    font-weight: bold;
    color: #ff5a36;
}

.stat-title {
    color: #777;
    margin-top: 5px;
}

.menu-title {
    text-align: center;
    margin-bottom: 20px;
}

.admin-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.admin-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: 0.2s;
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.admin-card-icon {
    font-size: 35px;
    margin-bottom: 10px;
}

.admin-card h3 {
    margin-bottom: 8px;
}

.admin-card p {
    color: #777;
    font-size: 14px;
}

/* ==========================================
   ADMIN FOOD / EDIT FORMS
   ========================================== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.full-width {
    grid-column: 1 / -1;
}

.current-image {
    margin-top: 10px;
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
}

.edit-container {
    width: 90%;
    max-width: 650px;
    margin: 50px auto;
}

.edit-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.edit-title {
    text-align: center;
    margin-bottom: 30px;
}

/* Admin food table image */
.food-table-box .food-image {
    width: 70px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

/* ==========================================
   TABLES
   ========================================== */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #fff3ed;
}

tbody tr:hover {
    background: #fffaf7;
}

/* ==========================================
   ADMIN ORDERS
   ========================================== */
.order-box {
    overflow-x: auto;
}

.order-box table {
    min-width: 850px;
}

.status-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.status-form select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
}

.status-form .update-btn {
    width: auto;
    padding: 8px 12px;
}

.order-box .view-btn {
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

/* ==========================================
   ADMIN USERS
   ========================================== */
.user-box {
    overflow-x: auto;
}

.user-box table {
    min-width: 700px;
}

.role-admin {
    background: #ff5a36;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.role-customer {
    background: #eee;
    color: #555;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* ==========================================
   ADMIN ORDER DETAILS
   ========================================== */
.admin-order-page {
    background: #fff8f2;
    min-height: 100vh;
    padding: 40px 0;
}

.admin-order-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.admin-order-back-btn {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: bold;
    margin-bottom: 25px;
}

.admin-order-back-btn:hover {
    background: #555;
}

.admin-order-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-order-header h1 {
    font-size: 36px;
    color: #222;
    margin-bottom: 8px;
}

.admin-order-header p {
    color: #666;
    font-size: 17px;
}

.admin-order-info-box {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.admin-order-info-box h2 {
    margin-bottom: 25px;
}

.admin-order-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.admin-order-info-item {
    background: #fff8f2;
    padding: 18px;
    border-radius: 10px;
}

.admin-order-info-item strong {
    display: block;
    margin-bottom: 7px;
    color: #555;
}

.admin-order-info-item span {
    color: #222;
    font-size: 16px;
}

.admin-order-status {
    display: inline-block !important;
    background: #ff5a36;
    color: #fff !important;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 13px !important;
    font-weight: bold;
}

.admin-order-items-box {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.admin-order-items-box h2 {
    margin-bottom: 25px;
}

.admin-order-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.admin-order-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-order-table th,
.admin-order-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-order-table th {
    background: #fff3ed;
    color: #333;
    font-weight: bold;
}

.admin-order-table tbody tr:hover {
    background: #fffaf7;
}

.admin-order-food-image {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.admin-order-no-image {
    width: 65px;
    height: 65px;
    background: #eee;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    color: #777;
}

.admin-order-total {
    margin-top: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    text-align: right;
    font-size: 24px;
    font-weight: bold;
    color: #ff5a36;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    width: 100%;
    text-align: center;
    padding: 25px;
    background: #222;
    color: white;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {

    .navbar {
        padding: 20px;
    }

    .nav-links {
        gap: 10px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-image {
        font-size: 120px;
    }

    .category-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .food-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .admin-menu {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .details-card {
        grid-template-columns: 1fr;
    }

    .details-image {
        min-height: 300px;
        font-size: 120px;
    }

    .details-info {
        padding: 30px;
    }

    .filter-form {
        grid-template-columns: 1fr;
    }

    .cart-table {
        font-size: 14px;
    }

    .cart-table th,
    .cart-table td {
        padding: 10px 5px;
    }

    .cart-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .order-details-page .details-container {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .order-details-page .details-title {
        text-align: center;
    }

    .order-details-page .details-title h1 {
        font-size: 32px;
    }

    .admin-order-page {
        padding: 25px 0;
    }

    .admin-order-container {
        width: 94%;
    }

    .admin-order-header h1 {
        font-size: 30px;
    }

    .admin-order-info-box,
    .admin-order-items-box {
        padding: 20px;
    }

    .admin-order-info-grid {
        grid-template-columns: 1fr;
    }

    .admin-order-table {
        min-width: 650px;
    }

    .admin-order-total {
        font-size: 20px;
    }
}

@media (max-width: 600px) {

    .nav-links {
        display: none;
    }

    .category-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .features {
        grid-template-columns: 1fr;
    }

    .auth-container {
        padding: 25px 15px;
    }

    .auth-box {
        width: 100%;
        padding: 30px 25px;
    }

    .success-box {
        width: 100%;
        padding: 40px 25px;
    }

    .admin-container {
        width: 92%;
    }

    .add-form {
        flex-direction: column;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.food-detail-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 25px;
    text-align: center;
}

.food-detail-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
}
