:root {
    --primary-color: #4a5568;
    --secondary-color: #718096;
    --background-color: #f7fafc;
    --sidebar-color: #2d3748;
    --text-color: #2d3748;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --success: #68d391;
    --danger: #fc8181;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 14px;
}

/* Auth Page */
.auth-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ebf4ff;
}

.auth-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Layout */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background-color: var(--sidebar-color);
    color: var(--white);
    transition: all 0.3s;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-menu li a {
    color: #cbd5e0;
    padding: 0.75rem 1.5rem;
    display: block;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

header {
    height: 60px;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.content-body {
    padding: 1.5rem;
    flex: 1;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #f8fafc;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease-out;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.danger {
    border-left-color: var(--danger);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Item Badges */
.badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-veg {
    color: #2f855a;
    background: #f0fff4;
    border: 1px solid #c6f6d5;
}

.badge-nonveg {
    color: #9b2c2c;
    background: #fff5f5;
    border: 1px solid #fed7d7;
}

.badge-spicy {
    color: #c53030;
    background: #fff5f5;
}

.dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-veg {
    background: #48bb78;
}

.dot-nonveg {
    background: #f56565;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.data-table th {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.item-img-small {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    background: #edf2f7;
}

/* Actions */
.btn-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -240px;
        height: 100%;
    }

    .sidebar.active {
        left: 0;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0 1rem 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 0.8rem;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.page-link:hover {
    background: #edf2f7;
    border-color: var(--primary-color);
}

.page-link.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-link.disabled {
    color: #cbd5e0;
    pointer-events: none;
    background: #fdfdfd;
}

.pagination-info {
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.8rem;
    margin-bottom: 2rem;
}