@font-face {
    font-family: 'Vazir';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir.woff') format('woff'),
         url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir-Bold.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir-Bold.woff') format('woff'),
         url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --primary-color: #ad8fd9; 
    --primary-light: #d5c4f1;
    --primary-dark: #8e6db5;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
}

body {
    font-family: 'Vazir', 'Tahoma', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--white);
    color: #333;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
}

a {
    color: var(--primary-dark);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1rem;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-dark);
}

/* تنظیمات برای موبایل */
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.3rem; /* کاهش سایز فونت در موبایل */
    }
}

/* تنظیمات برای تبلت‌ها */
@media (max-width: 1024px) {
    .navbar-brand {
        font-size: 1.6rem; /* سایز متوسط برای تبلت‌ها */
    }
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after {
    width: 80%;
    left: 10%;
}

/* استایل برای لوگو در اندازه‌های مختلف صفحه */
.navbar-logo {
    width: 15vw;  /* 15 درصد از عرض پنجره مرورگر */
    max-width: 150px;  /* حداکثر عرض 150px */
    height: auto;  /* حفظ تناسب ابعاد */
}

/* برای نمایش در دستگاه‌های موبایل */
@media (max-width: 600px) {
    .navbar-logo {
        width: 50%;  /* 50 درصد عرض پنجره */
        max-width: 100px;  /* حداکثر عرض 100px */
    }
}

/* برای نمایش در دستگاه‌های تبلت */
@media (max-width: 1024px) {
    .navbar-logo {
        width: 25%;  /* 25 درصد عرض پنجره */
        max-width: 120px;  /* حداکثر عرض 120px */
    }
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    padding: 6rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -5%;
    right: -5%;
    width: 30%;
    height: 40%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -5%;
    left: -5%;
    width: 30%;
    height: 40%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
/* تنظیمات برای موبایل */
@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.5rem; /* کاهش سایز عنوان */
    }

    .hero p {
        font-size: 1rem; /* کاهش سایز متن */
    }
}

/* تنظیمات برای تبلت‌ها */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.15rem;
    }
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
}

.card-text {
    color: var(--dark-gray);
    margin-bottom: 1.2rem;
}

/* Services */
.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Doctors */
.doctor-img {
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.doctor-speciality {
    color: var(--primary-color);
    font-weight: 500;
}

/* Testimonials */
.testimonial {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--primary-light);
    position: absolute;
    top: 10px;
    left: 15px;
    font-family: serif;
    opacity: 0.3;
}

.testimonial-rating {
    color: var(--warning);
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-dark);
}

/* Portfolio */
.portfolio-item {
    position: relative;
    margin-bottom: 2rem;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(173, 143, 217, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-content {
    text-align: center;
    color: var(--white);
    padding: 1rem;
}

.before-after-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.before-after-image {
    flex: 1;
    position: relative;
}

.before-after-image img {
    width: 100%;
    border-radius: 10px;
}

.before-after-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Forms */
.form-control {
    border-radius: 5px;
    border: 1px solid #e1e1e1;
    padding: 0.7rem 1rem;
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(173, 143, 217, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Booking form */
.booking-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

.booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.booking-step {
    text-align: center;
    flex: 1;
    position: relative;
}

.booking-step::after {
    content: '';
    position: absolute;
    top: 15px;
    right: calc(-50% + 15px);
    width: 100%;
    height: 2px;
    background-color: var(--light-gray);
    z-index: 1;
}

.booking-step:last-child::after {
    display: none;
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border-radius: 50%;
    line-height: 30px;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.booking-step.active .step-number {
    background-color: var(--primary-color);
    color: var(--white);
}

.booking-step.completed .step-number {
    background-color: var(--success);
    color: var(--white);
}

.booking-step.active .step-title {
    color: var(--primary-color);
    font-weight: bold;
}

/* Persian datepicker customization */
.datepicker-plot-area {
    font-family: 'Vazir', 'Tahoma', sans-serif !important;
}

.datepicker-plot-area .datepicker-day-view .table-days td.selected span,
.datepicker-plot-area .datepicker-month-view .month-item.selected,
.datepicker-plot-area .datepicker-year-view .year-item.selected {
    background-color: var(--primary-color) !important;
}

/* Chat widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.chat-button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.chat-container {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 350px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.chat-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    font-weight: bold;
    margin: 0;
}

.chat-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
}

.user-message {
    background-color: var(--primary-light);
    color: #333;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.bot-message {
    background-color: var(--light-gray);
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.chat-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #e1e1e1;
}

.chat-input {
    flex: 1;
    border: 1px solid #e1e1e1;
    border-radius: 20px;
    padding: 10px 15px;
    font-family: 'Vazir', 'Tahoma', sans-serif;
}

.chat-send {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
footer {
    background-color: #333;
    color: var(--white);
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer-heading {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.footer-contact-icon {
    color: var(--primary-color);
    margin-left: 10px;
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #222;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-in;
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-in;
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .chat-container {
        width: 300px;
    }
    
    .before-after-container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .chat-container {
        width: calc(100% - 60px);
        left: 30px;
    }
}

/* Flash messages */
.alert {
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Admin dashboard */
.admin-dashboard-card {
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.admin-dashboard-card:hover {
    transform: translateY(-5px);
}

.admin-dashboard-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.admin-dashboard-label {
    font-size: 1rem;
    color: var(--dark-gray);
}

.admin-appointments-table th, 
.admin-appointments-table td {
    vertical-align: middle;
}

/* Appointment status badges */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
}

.status-pending {
    background-color: var(--warning);
    color: #333;
}

.status-confirmed {
    background-color: var(--primary-color);
    color: var(--white);
}

.status-completed {
    background-color: var(--success);
    color: var(--white);
}

.status-canceled {
    background-color: var(--danger);
    color: var(--white);
}

/* Profile page */
.profile-info {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.profile-heading {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
}

.profile-appointments {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* News article */
.news-article {
    margin-bottom: 3rem;
}

.news-article img {
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.news-article-meta {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.news-article-content {
    line-height: 1.8;
}

/* Add this to ensure AOS works properly with RTL */
[data-aos] {
    transition-property: transform, opacity !important;
}
