﻿@font-face {
    font-family: 'NotoSans';
    src: url('../fonts/noto_sans_arabic/static/NotoSansArabic-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'shabnam-medium';
    src: url('../fonts/shabnam/shabnam-medium.ttf') format('truetype');
}

body {
    direction: rtl;
    font-family: 'shabnam-medium';
}


/* Grid Layout for Calendar */
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 columns */
    gap: 8px;
}

.calendar-header {
    font-weight: bold;
    text-align: center;
    padding: 8px;
}

.calendar-cell {
    text-align: center;
}

.card {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.empty-card {
    background-color: #f8f9fa; /* color for blank cards */
}

.disable-card {
    background-color: #b4bbc2;
    pointer-events: none;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-header {
        font-size: 12px;
        padding: 4px;
    }

    .card {
        height: 50px;
        font-size: 12px;
    }
}

/* برای نمایش بک‌گراند مات و مرکز قرار دادن */
.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* بک‌گراند مات */
    display: flex;
    justify-content: center;
    align-items: center;
    -ms-align-content: center;
    -webkit-align-content: center;
    align-content: center;
    text-align: center;
    z-index: 1000;
    overflow: hidden; /* جلوگیری از اسکرولینگ */
}

/* استایل فعلی لودر */
.loader {
    font-size: 40px;
    font-family: system-ui, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px #000;
    background: linear-gradient(90deg, #0000 33%, #000 0 67%, #0000 0) 0/300% 100% no-repeat text;
    animation: l2 2s linear infinite;
    justify-content: center;
    align-items: center;
    -ms-align-content: center;
    -webkit-align-content: center;
    align-content: center;
    text-align: center;
}

    .loader:before {
        content: "SADIEH NIKOO";
    }

@keyframes l2 {
    0% {
        background-position: 100%;
    }

    100% {
        background-position: 0%;
    }
}



/* استایل عمومی */
.btn-group .time-label {
    background-color: #f8f9fa; /* رنگ پیش‌فرض */
    color: #000; /* متن پیش‌فرض */
    border: 1px solid #ccc;
    cursor: pointer;
    padding: 10px 20px;
    transition: background-color 0.3s, color 0.3s;
}

/* وقتی انتخاب شده است */
.btn-group .btn-check:checked + .time-label {
    background-color: #007bff; /* رنگ انتخاب‌شده */
    color: #fff; /* متن انتخاب‌شده */
}

/* پس‌زمینه تار */
.blurred {
    filter: blur(5px); /* میزان تاری */
    transition: filter 0.5s ease; /* انیمیشن نرم */
}

#loginModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 300px;
    z-index: 200;    
}

.hidden {
    display: none;
}

.modal-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

button {
    padding: 10px;
    border: none;
    background-color: #007BFF;
    color: white;
    border-radius: 4px;
    cursor: pointer;    
}

    button:hover {
        background-color: #0056b3;
    }

input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    font-size: small;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
}

    .close-btn:hover {
        color: #ff0000;
    }
