:root {
    --primary: #2e7d32;
    --primary-light: #60ad5e;
    --primary-dark: #005005;
    --secondary: #ff8f00;
    --secondary-light: #ffc046;
    --secondary-dark: #c56000;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray: #e0e0e0;
    --gray-dark: #9e9e9e;
    --text: #333333;
    --danger: #d32f2f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--gray-light);
    color: var(--text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--primary);
    color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}


a:hover {
    color: var(--secondary-light);
}

.user-nav {
    display: flex;
    align-items: center;
    margin-left: 500px;
}

.user-info {
    margin-right: 20px;
    text-align: right;
}

.user-name {
    font-weight: bold;
}

.user-org {
    font-size: 12px;
    opacity: 0.9;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

a {
    display: inline-block;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    padding: 5px 5px;
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

.main-content {
    padding: 30px 0;
}

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

.dashboard-title {
    font-size: 28px;
    font-weight: bold;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--white);
    font-size: 24px;
}

.stat-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 14px;
    color: var(--gray-dark);
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab {
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.tab.active {
    background-color: var(--gray-light);
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

.tab-content {
    display: none;
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.tab-content.active {
    display: block;
}

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

.food-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.food-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.food-img {
    height: 180px;
    background-color: var(--gray);
    position: relative;
    overflow: hidden;
}

.food-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-type {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--secondary);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.food-details {
    padding: 15px;
}

.food-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.restaurant-name {
    color: var(--gray-dark);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.restaurant-name i {
    margin-right: 5px;
    font-size: 12px;
}

.food-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.food-meta div {
    display: flex;
    align-items: center;
}

.food-meta i {
    margin-right: 5px;
    color: var(--primary);
}

.food-description {
font-size: 14px;
color: var(--text);
margin-bottom: 15px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
max-height: 3em; /* Fallback for non-WebKit browsers */
}

.food-actions {
    display: flex;
    justify-content: space-between;
}

.btn {
    padding: 10px 15px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray);
}

th {
    background-color: var(--gray-light);
    color: var(--text);
    font-weight: bold;
}

tr:hover {
    background-color: var(--gray-light);
}

.status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    display: inline-block;
}

.status-pending {
    background-color: #fff3e0;
    color: var(--secondary-dark);
}

.status-confirmed {
    background-color: #e0f2f1;
    color: #00796b;
}

.status-completed {
    background-color: #e8f5e9;
    color: var(--primary-dark);
}

.status-cancelled {
    background-color: #ffebee;
    color: var(--danger);
}

.ratings {
    display: flex;
    gap: 5px;
}

.rating {
    color: var(--secondary);
}

.rating.empty {
    color: var(--gray);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--gray-dark);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--gray);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

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

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

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

select.form-control {
    appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239e9e9e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

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

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #e8f5e9;
    color: var(--primary-dark);
    border-left: 4px solid var(--primary);
}

.alert-info {
    background-color: #e1f5fe;
    color: #0277bd;
    border-left: 4px solid #0277bd;
}

.alert-warning {
    background-color: #fff3e0;
    color: var(--secondary-dark);
    border-left: 4px solid var(--secondary);
}

.alert-danger {
    background-color: #ffebee;
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.progress-container {
    height: 8px;
    background-color: var(--gray);
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
}

footer {
    background-color: var(--white);
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid var(--gray);
}

.footer-content {
    font-size: 14px;
    color: var(--gray-dark);
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .food-grid {
        grid-template-columns: 1fr;
    }
    
    .tab {
        padding: 10px;
        font-size: 14px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}