﻿h1, h2, h3, h4, h5, h6, p, a, i, b, div, strong, span {
    font-family: iranSans;
}
.containerLogin {
    width: 350px;
    margin: 50px auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
}
.titleSalon {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
    color: #444;
}
.input-group {
    position: relative;
    margin-bottom: 15px;
}
input[type="tel"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    outline: none;
}
input[type="text"]:focus {
        border-color: #4CAF50;
    }
.errorSalon {
    color: #e53935;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}
.btnSalon {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    opacity: 0.7;
}
.btnSalon.enabled {
        opacity: 1;
    }
    .btnSalon:disabled {
        cursor: not-allowed;
    }
.otp {
    display: flex;
    gap: 10px;
    justify-content: center;
    direction: ltr; /* این خط بسیار مهم است */
}
.otp input {
        width: 52px;
        height: 52px;
        font-size: 22px;
        border-radius: 8px;
        border: 1px solid #cfcfcf;
        text-align: center; /* عدد در وسط */
        direction: ltr; /* جهت داخل خود input هم LTR */
        unicode-bidi: plaintext; /* جلوگیری از رفتار عجیب بعضی مرورگرها */
        outline: none;
    }
.otp input:focus {
            border-color: #4CAF50;
            box-shadow: 0 0 0 3px rgba(76,175,80,0.08);
        }
.error-boxSalon , .success-boxSalon {
    display: none;
    background: #ffe4e4;
    border: 1px solid #ff8c8c;
    color: #b80000;
    padding: 12px 15px;
    margin: 10px auto;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    /* سازگار با موبایل */
    width: 100%;
    box-sizing: border-box;
}
.success-boxSalon {
    background: #c0efe2;
    color: #049259;
}
    @media (max-width: 600px) {
        .error-boxSalon, .success-boxSalon {
        font-size: 14px;
        padding: 10px 12px;
    }

}
/* نوار بالا */
.navbarSalon {
    background-color: #d81b60;
    color: #fff;
    padding: 15px 20px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index:9999;
}
#appointStatusNav {
    background: rgb(222, 222, 222);
    color: black;
    top: 52px;
    display: block;
    padding: 7px;
    font-size: 15px;
    font-weight: normal;
}
/* بخش دکمه‌ها */
.menuSalon {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 25px;
}

    .menuSalon a, .menuSalon button {
        padding: 15px;
        font-size: 18px;
        border: none;
        border-radius: 8px;
        background: #9f9ea5;
        color: #fff;
        font-weight: bold;
        text-align: center;
        box-shadow: 0 3px 6px rgba(0,0,0,0.15);
        transition: background 0.3s;
        width: 100%;
        max-width: 500px;
        margin: auto;
        text-decoration: none;
    }
        .menuSalon a:active,.menuSalon a:hover, .menuSalon button:hover, .menuSalon button:hover {
            background: #6e6c6d;
        }

/* نوار پایین (برای موبایل) */
.bottom-navSalon {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

    .bottom-navSalon a {
        text-decoration: none;
        color: #000;
        font-size: 14px;
        font-weight: bold;
    }
/* ===============================
   Salon Card Styles
   =============================== */
.salon-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.07);
    border: 1px solid #f1f1f1;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all .25s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
}

    /* افکت نور ملایم از بالا (خیلی لاکچری) */
    .salon-card::before {
        content: "";
        position: absolute;
        top: -40%;
        left: -40%;
        width: 180%;
        height: 180%;
        background: radial-gradient(circle, rgba(155,87,255,0.18), transparent 70%);
        opacity: 0;
        transition: opacity .35s ease;
    }

    .salon-card:hover::before {
        opacity: 1;
    }

    /* افکت Hover */
    .salon-card:hover {
        transform: translateY(-4px) scale(1.03);
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        border-color: #c8a2ff;
    }

    /* حالت انتخاب‌شده */
    .salon-card.selected {
        background: linear-gradient(135deg, #f4e8ff, #ffffff);
        border-color: #9b57ff;
        box-shadow: 0 6px 20px rgba(155,87,255,0.3);
        transform: scale(1.03);
    }

    .salon-card span {
        font-size: 17px;
        font-weight: 600;
    }
.salon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
}
.schedule-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transition: all .2s ease;
    cursor: pointer;
}

    .schedule-card:hover {
        transform: scale(1.03);
    }

.schedule-header {
    font-size: 16px;
    margin-bottom: 10px;
}

.schedule-body div {
    font-size: 14px;
    margin-bottom: 4px;
}

.schedule-btn {
    margin-top: 10px;
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background: #007bff;
    color: white;
}

/*@media (max-width: 450px) {
    .salon-grid {
        grid-template-columns: 1fr;
    }
}*/
.fade-in {
    animation: fadeIn .3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#loaderArea {
    width: 100%;
    padding: 40px 0;
    text-align: center;
}

.hidden {
    display: none;
}

.loader {
    border: 4px solid #eee;
    border-top: 4px solid #9b57ff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    margin: auto;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.btn-header{
    float:left;
    margin:0 2px;
    margin-top:-7px;
}
/* Time slots */
.time-slot {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 0;
    margin: 6px;
    text-align: center;
    background: #fff;
    cursor: pointer;
    transition: all .2s;
}

    .time-slot:hover {
        background: #f0f0f0;
    }

/* Backdrop */
.sheet-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,.4);
    display: none;
    z-index: 1040;
}

/* Bottom sheet */
.bottom-sheet {
    position: fixed;
    right: 0;
    left: 0;
    bottom: -100%;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 16px;
    z-index: 1050;
    transition: bottom .3s ease;
}

    .bottom-sheet.show {
        bottom: 0;
    }

.sheet-header {
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.drag-handle {
    width: 40px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    margin: 0 auto 8px;
}

.btn-confirm {
    border-radius: 10px;
    font-size: 16px;
}
    .btn-confirm:disabled {
        background-color: #ccc;
        color: #777;
        cursor: not-allowed;
        opacity: 0.6;
    }
input[type="text"]:focus {
    border-color: #007bff;
}