/* עיצוב כללי */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Heebo', sans-serif;
    direction: rtl;
    background-color: #f5f5f5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* עיצוב כותרת וניווט */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav button {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

nav button:hover {
    background-color: #45a049;
}

/* רשת שולחנות */
.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.table-card {
    background-color: #4CAF50;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    position: relative;
    min-height: 150px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.table-card:hover {
    transform: translateY(-5px);
}

.table-card.inactive {
    opacity: 0.7;
}

/* עיצוב לפי קטגוריות שולחן */
.table-snooker {
    background-color: #4CAF50;
}

.table-vip {
    background-color: #9C27B0;
}

.table-dining {
    background-color: #2196F3;
}

.table-playstation {
    background-color: #FF9800;
}

/* טיימר ומידע נוסף */
.timer {
    font-size: 1.5em;
    margin: 10px 0;
    font-weight: bold;
}

.players {
    font-size: 0.9em;
    margin: 5px 0;
}

.rate {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.8em;
    opacity: 0.9;
}

/* חלון מודאל */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.close {
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
}

.table-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.table-actions button {
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    font-size: 1.1em;
}

.table-actions button:hover {
    background-color: #45a049;
}

/* תפריט מוצרים */
.products-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 15px;
}

.product-item {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.product-card {
    margin: 10px;
    box-shadow: 0 0 10px 0px #dddddd;
    padding: 10px;
}

/* התאמה למסכים קטנים */
@media (max-width: 768px) {
    .tables-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    header {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}