﻿@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'), url('../fonts/Vazirmatn-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
body {
    font-family: 'Vazir', Tahoma, sans-serif;
    background-color: #8C8C8C; /* همون رنگ پس‌زمینه‌ای که تو صفحه اصلیت استفاده کردی */
    margin: 0;
    padding: 0;
}

.persian-date-input {
    
    max-width: 200px;
    width: 100%;
    padding: 10px 14px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 12px;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    direction: rtl;
    text-align: right;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

    .persian-date-input:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
        outline: none;
    }

    .persian-date-input::placeholder {
        color: #999;
        font-style: italic;
    }
.datepicker_wrapp {
    display: inline-block !important;
    width:auto;
}

.dialog-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.dialog-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dialog-body {
    margin-top: 1rem;
}

.dialog-footer {
    margin-top: 1rem;
    text-align: left;
}

.btn-primary {
    background-color: #757575;
    color: aquamarine;
    width: 100%;
}
.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}
.square-button {
    background-color: #B2C8B0; /* سبز مغز پسته‌ای */
    border: none;
    color: black;
    width: 160px;
    height: 160px;
    border-radius: 16px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

    .square-button:hover {
        background-color: #D6E3D2; /* رنگ روشن‌تر هنگام هاور */
        transform: translateY(-4px);
    }

    .square-button img {
        width: 64px;
        height: 64px;
        margin-bottom: 10px;
        filter: brightness(0) invert(1); /* آیکون سفید */
    }

    .square-button span {
        color: black;
        font-weight: bold;
    }

.contact-btn {
    color: black;
    background-color: #B2C8B0; /* سبز مغز پسته‌ای */
    display: block;
    width: 100px; /* عرض مستطیل */
    margin: 10px auto 0 auto; /* فاصله از دکمه ثبت */
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
}


.header {
    text-align: center;
    margin-bottom: 30px;
}


.logo {
    max-width: 80px;
    margin-bottom: 10px;
}
.page-wrapper {
    max-width: 400px;
    justify-content: center;
    margin: 10px auto;
    padding: 20px;
    background-color: #8C8C8C;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.right-label {
    display: block;
    text-align: right;
    margin-bottom: 5px;
    color: black;
}

.green-bg:focus {
    outline: none;
    box-shadow: 0 0 5px #28a745;
 }

.text-danger {
    color: blue;
    text-align: center;
    margin-bottom: 10px;
}
.green-bg {
    background-color: #B2C8B0;
    color: white; /* یا black بسته به وضوح */
}

.gray-bg {
    background-color: #757575;
}

.gray-text {
    color: #5E5E5E;
}

.green-text {
    color: #B2C8B0; /* سبز مغز پسته‌ای */
}

.table-striped tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.table-striped tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-family: 'Vazir', Tahoma, sans-serif;
}

/* سرستون‌ها */
th {
    background-color: #000000; /* مشکی */
    color: #ffffff; /* سفید */
    padding: 10px;
    text-align: center;
}

/* سطرهای جدول */
td {
    padding: 10px;
    text-align: center;
}

/* رنگ ردیف‌ها */
tbody tr:nth-child(odd) {
    background-color: #ffffff; /* سفید */
}

tbody tr:nth-child(even) {
    background-color: #f5f5f5; /* طوسی خیلی روشن */
}

/* خطوط جداکننده */
table, th, td {
    border: 1px solid #ddd;
}
modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    /* کنترل عرض */
    width: 70%; /* پیش‌فرض ۷۰٪ صفحه */
    max-width: 900px; /* حداکثر ۹۰۰px */
    min-width: 350px; /* حداقل ۳۵۰px برای جلوگیری از خیلی باریک شدن */
    max-height: 80vh;
    overflow-y: auto;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .modal-content {
        width: 95%; /* توی موبایل تقریبا کل عرض صفحه */
        max-width: none;
    }
}


time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

time-slot {
    padding: 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

    time-slot.available {
        background: #4caf50;
        color: white;
    }

    time-slot.reserved {
        background: #f44336;
        color: white;
        cursor: not-allowed;
    }