﻿@font-face {
    font-family: 'Vazir';
    src: url('/fonts/Vazir-300.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'Vazir';
    src: url('/fonts/Vazir-400.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Vazir';
    src: url('/fonts/Vazir-500.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'Vazir';
    src: url('/fonts/Vazir-700.ttf') format('truetype');
    font-weight: 700;
}

body {
    font-family: 'Vazir', Tahoma, sans-serif;
    font-weight: 400; /* وزن پیش‌فرض متن */
}

.panel1 {
    display: none;
}

    .panel1.active {
        display: block;
    }

.sidebar {
    width: 250px;
    transition: all 0.3s;
}

.main-content {
    margin-right: 250px;
    transition: all 0.3s;
}

.sidebar.collapsed {
    width: 70px;
}

    .sidebar.collapsed + .main-content {
        margin-right: 70px;
    }

    .sidebar.collapsed .sidebar-text {
        display: none;
    }

.active-tab {
    background-color: #f0fdf4;
    color: #10b981;
    border-right: 3px solid #10b981;
}

.table-row:hover {
    background-color: #f9fafb;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

    .modal.active {
        display: flex;
    }

.page {
    display: none;
}

    .page.active {
        display: block;
    }

.category-card {
    transition: transform 0.2s;
}

    .category-card:hover {
        transform: translateY(-5px);
    }

.food-item {
    transition: transform 0.2s;
}

    .food-item:hover {
        transform: translateY(-3px);
    }

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

    .quantity-btn:hover {
        background: #e5e7eb;
    }

.table-type-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

    .table-type-btn.active {
        border-color: #10b981;
        background-color: #f0fdf4;
    }

    .table-type-btn i {
        font-size: 20px;
        margin-bottom: 5px;
    }

.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.role-card {
    transition: all 0.3s;
    cursor: pointer;
}

    .role-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    .role-card.selected {
        border-color: #10b981;
        background-color: #f0fdf4;
    }

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
