/* ==========================================================================
   1. GLOBAL & RESET STYLES
   ========================================================================== */
   :root {
    --primary-red: #E7272D;
    --bg-light: #F5F6FA;
    --text-dark: #202224;
    --text-muted: #646464;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
}

html {
    zoom: 0.85; 
    -moz-transform: scale(0.85);
    -moz-transform-origin: 0 0;
}

/* ==========================================================================
   2. LOGIN PAGE STYLES
   ========================================================================== */
.login-page {
    min-height: 118vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/background.jpeg'); 
    background-size: cover;
    background-position: center;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(2px);
}

.login-container {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 60px 40px;
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-title h1 {
    font-size: 28px;
    color: #1f2937;
    margin-bottom: 40px;
    font-weight: 800;
    line-height: 1.3;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    transition: 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-red);
    background-color: #fff;
}

.form-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-red); 
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
}

.error-message {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ==========================================================================
   3. DASHBOARD (VENDOR) LAYOUT STYLES
   ========================================================================== */
.admin-layout {
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 260px;
    min-height: 118vh;
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    border-right: 1px solid #eee;
}

.brand {
    padding: 0 30px;
    font-size: 35px;
    font-weight: 800;
    margin-bottom: 40px;
}

.brand-red { color: #E7272D; }
.brand-sub {font-size: 15px; font-weight: 400; display: block; color: #888}
.user-name { color:rgb(88, 81, 81); font-size: 28px;}

.side-nav {
    flex-grow: 1; 
    overflow-y: auto;
}

.nav-item {
    display: block;
    padding: 15px 30px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: 0.3s;
    margin: 5px 20px;
    border-radius: 8px;
}

.nav-item i { margin-right: 15px; width: 20px; }

.nav-item.active {
    background-color: var(--primary-red);
    color: white;
}

.logout-button {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #fceaea;
    color: var(--primary-red);
    padding: 15px 25px;
    border-radius: 10px;
    text-decoration: none;
    margin: 20px;
    font-weight: 600;
    transition: 0.3s;
}

.logout-button:hover {
    background-color: var(--primary-red);
    color: white;
}

/* Main Content Wrapper */
.main-wrapper {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 30px;
    min-height: 100vh;
    box-sizing: border-box;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.stat-label { color: var(--text-muted); font-size: 14px; margin-bottom: 10px; }
.stat-value { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.stat-trend { font-size: 12px; font-weight: 600; }
.trend-up { color: #00B69B; }
.trend-down { color: #F93C65; }

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.icon-purple { background: #E5E9FF; color: #8280FF; }
.icon-yellow { background: #FFF3D6; color: #FEC53D; }
.icon-green { background: #D9F7E8; color: #4AD991; }

/* Chart Area */
.chart-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.chart-body { height: 350px; }

.chart-filter {
    padding: 5px 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background: #f9f9f9;
}

/* ==========================================================================
   4. MENU MANAGEMENT (VENDOR) LAYOUT STYLES
   ========================================================================== */

.main-wrapper {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 40px; 
    box-sizing: border-box;
}

.actions-buttons {
    display: flex;
    gap: 1rem;
}

.actions {
    display: flex;
    align-items: center;
    gap: 15px; 
    justify-content: flex-end; 
}

.add-menu {
    background-color: #4a4a4a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.search input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 200px;
}

.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 300px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.table-container {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

table {
    width: 100%; 
    border-collapse: collapse;
    background-color: white;
    margin: 0; 
}

.table-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden; 
    width: 100%;
}

th {
    background-color: #f8f9fa; 
    color: #333;
    font-weight: 700;
    padding: 20px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

td {
    padding: 25px 20px; 
    vertical-align: middle;
    border-bottom: 1px solid #f1f1f1;
}

.img-table {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.font-bold { font-weight: 700; color: #333; }
.text-muted { color: #888; font-size: 14px; }

.diet-tag {
    background: #f0f2ff;
    color: #5a67d8;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.status-pill {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    color: white;
}

.add-menu {
    background-color: #4379EE; 
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: 0.2s;
}

.btn-icon:hover { transform: scale(1.2); }
.text-blue { color: #4379EE; }
.text-red { color: #E7272D; }

/* ==========================================================================
   5. ORDER MANAGEMENT (VENDOR) LAYOUT STYLES
   ========================================================================== */

.status-pending { background-color: #9ca3af; color: white; } 
.status-preparing { background-color: #FEC53D; color: white; } 
.status-completed { background-color:rgb(20, 121, 48); color: white; } 
.status-false { background-color:rgb(231, 39, 39); } 
.status-true { background-color: rgb(20, 121, 48); }

   /* ==========================================================================
   6. PAYMENT BADGE STYLES
   ========================================================================== */

.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.payment-badge i {
    font-size: 11px;
}

.payment-cash {
    background-color: #d1fae5;
    color: #065f46;
}

.payment-card {
    background-color: #dbeafe;
    color: #1e40af;
}

.payment-ewallet {
    background-color: #fef3c7;
    color: #92400e;
}

.payment-bank {
    background-color: #ede9fe;
    color: #5b21b6;
}

.payment-other {
    background-color: #f3f4f6;
    color: #4b5563;
}