/* Base Styles */
@font-face {
    font-family: 'iran-yekan';
    src: url('/static/font/IRANYekanX-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'iran-sans';
    src: url('/static/font/IRANSansX-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Global Styles */
body {
    font-family: 'iran-yekan', 'iran-sans', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f9c4a3;
}

/* Background Styles */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}


/* Layout Components */
.container {
    container-type: inline-size;
    position: relative;
    z-index: 2;
}

main {
    flex: 1;
    position: relative;
    padding-top: 80px;
}

/* Navbar */
.main-navbar {
    background-color: rgb(38, 152, 135);
    /* background-color: rgb(142, 76, 255); */
    z-index: 1050;
}

.navbar-brand {
    font-size: 1.2rem;
}

.nav-link {
    padding: 0.5rem 1rem;
}

/* Footer */
.main-footer {
    background-color: rgb(38, 152, 135);
    color: white;
}

.content-wrapper {
    min-height: 90vh;
    min-width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.bg {
    background-image: url(/static/image/back-s1-pink.png);
    background-color: #f9bb96;
    /* border-radius:#d9d9d9 30px; */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    /* background-attachment: fixed; */
    /* background-color: #ffffff; */
    /* position: fixed; */
    /* top: 0;
    left: 0;
    right: 0;
    bottom: 0; */
    /* z-index: -1; */
    width: 100%;
    object-fit: cover;
}


/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    color: #000000;
    text-align: center;
}

/* Buttons */
.btn-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.no-hover-effect {
    font-weight: normal !important;
}

.btn-primary {
    background-color: #269887;
    border-color: #269887;
}

.btn-primary:hover {
    background-color: #1e7a6d;
    border-color: #1e7a6d;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #269887;
    text-decoration: underline;
}


#informations {
    background-color: #f1997d;
    background-blend-mode: soft-light;
    background-image: url('/static/image/dr-brain.png');
    background-repeat: no-repeat;
    background-position: left;
    background-size: contain;
    object-fit: contain;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

/* Section Cards */
.section-card {
    /* background-color: rgba(255, 255, 255, 0.05); */
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    /* box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2); */
}

/* Doctor Image */
.ax-dr {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px dashed rgba(179, 1, 110, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
}

.ax-dr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Services Section */
.services-section {
    padding: 2rem 0;
}

.services-header {
    text-align: center;
    margin-bottom: 2rem;
}

.services-header h3 {
    font-size: 1.75rem;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

.services-header h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #3498db;
}

.services-container {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}


.services-container::-webkit-scrollbar {
    display: none;
}

.service-card {
    flex: 0 0 280px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    scroll-snap-align: start;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.25rem;
}

.card-content h4 {
    margin: 0 0 0.75rem 0;
    color: #2c3e50;
    font-size: 1.125rem;
}

.card-content p {
    margin: 0 0 1rem 0;
    color: #7f8c8d;
    font-size: 0.875rem;
    line-height: 1.5;
}

.card-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.card-link:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Q&A Section */

/* طرح کلی مدرن */
.modern-qa-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.1);
}

.qa-layout {
    display: flex;
    gap: 30px;
}

/* ستون فرم (راست) */
.form-column {
    width: 380px;
    flex-shrink: 0;
}

.sticky-form {
    position: sticky;
    top: 30px;
}

/* کارت فرم پرسش */
.ask-question-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #5b7cff;
}

.ask-question-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.qa-card-header {
    padding: 25px;
    background: linear-gradient(135deg, #f9faff 0%, #edf1ff 100%);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.qa-card-header i {
    font-size: 26px;
    color: #5b7cff;
    margin-left: 12px;
}

.qa-card-header h3 {
    margin: 0;
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.3rem;
}

.qa-card-body {
    padding: 25px;
}

/* فرم مدرن */
.modern-form .form-group {
    margin-bottom: 22px;
    position: relative;
}

.floating-label label {
    position: absolute;
    right: 18px;
    top: 18px;
    color: #7a7f9a;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    background: white;
    padding: 0 8px;
    font-size: 15px;
}

.floating-label .form-control {
    padding: 16px 18px;
    border: 1px solid #e0e6ff;
    border-radius: 10px;
    width: 100%;
    transition: all 0.3s;
    background: white;
    font-size: 15px;
}

.floating-label .form-control:focus {
    border-color: #5b7cff;
    box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.2);
}

.floating-label .form-control:focus+label,
.floating-label .form-control:not(:placeholder-shown)+label {
    top: -12px;
    right: 12px;
    font-size: 13px;
    color: #5b7cff;
    background: white;
}

/* دکمه ارسال */
.btn-submit {
    background: linear-gradient(135deg, #5b7cff 0%, #3a5df6 100%);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.btn-submit i {
    margin-left: 10px;
    transition: transform 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(91, 124, 255, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ستون سوالات (چپ) */
.questions-column {
    flex: 1;
    min-width: 0;
}

.questions-list {
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: calc(100vh - 160px);
    /* ارتفاع پیش‌فرض برای دسکتاپ */
}

.list-header {
    padding: 22px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f9faff 0%, #edf1ff 100%);
}

.list-header h3 {
    margin: 0;
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.list-header h3 i {
    margin-left: 12px;
    color: #5b7cff;
}

.search-box {
    position: relative;
    width: 280px;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #e0e6ff;
    border-radius: 30px;
    transition: all 0.3s;
    font-size: 14px;
    background: white;
}

.search-box input:focus {
    border-color: #5b7cff;
    box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.2);
    outline: none;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7a7f9a;
}

/* آیتم‌های سوال */
.questions-container {
    overflow-y: auto;
    flex-grow: 1;
    padding: 15px;
    scrollbar-gutter: stable;
}

.question-item {
    background: white;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-left: 4px solid transparent;
}

.question-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #5b7cff;
}

.question-header {
    margin-bottom: 18px;
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    color: #5b7cff;
    font-size: 20px;
}

.username {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.badge-doctor {
    background: #10b981;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.badge-doctor i {
    font-size: 12px;
    margin-left: 5px;
}

.post-time {
    font-size: 13px;
    color: #7a7f9a;
    display: block;
    margin-top: 4px;
}

.question-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 12px 0;
    font-weight: 600;
    text-align: right;
}

.question-content {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 18px;
    text-align: right;
    font-size: 15px;
}

.question-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-show-answers {
    background: rgba(91, 124, 255, 0.1);
    border: none;
    color: #5b7cff;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-show-answers:hover {
    background: rgba(91, 124, 255, 0.2);
}

.btn-show-answers i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.btn-show-answers.active i {
    transform: rotate(180deg);
}

/* پاسخ‌ها */
.answers-container {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.4s ease-out;
    max-height: 500px;
    overflow-y: auto;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.answer-item {
    background: #f8faff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    border-right: 3px solid #e0e6ff;
    transition: all 0.3s;
}

.answer-item:hover {
    background: #f0f4ff;
    border-right: 3px solid #5b7cff;
}

.answer-content {
    color: #4a5568;
    line-height: 1.8;
    font-size: 14.5px;
}

/* فرم پاسخ */
.answer-form {
    margin-top: 22px;
    background: #f8faff;
    padding: 18px;
    border-radius: 12px;
}

/* استایل اسکرول بار */
.questions-container::-webkit-scrollbar {
    width: 8px;
}

.questions-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

.questions-container::-webkit-scrollbar-thumb {
    background: rgba(91, 124, 255, 0.5);
    border-radius: 10px;
    transition: background 0.3s;
}

.questions-container::-webkit-scrollbar-thumb:hover {
    background: #5b7cff;
}


/* حالت خالی */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #7a7f9a;
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #e0e6ff;
    opacity: 0.7;
}

.empty-state p {
    margin: 8px 0;
    font-size: 15px;
}

.empty-state p:first-of-type {
    font-weight: 600;
    color: #4a5568;
    font-size: 16px;
}

/* رسپانسیو - تبلت */
@media (max-width: 992px) {
    .qa-layout {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .form-column {
        width: 100%;
    }

    .sticky-form {
        position: static;
    }

    .questions-list {
        height: 60vh;
    }
}

/* رسپانسیو - موبایل */
@media (max-width: 768px) {
    .modern-qa-container {
        padding: 15px;
        border-radius: 18px;
    }

    .questions-list {
        height: 65vh;
        border-radius: 15px;
    }

    .question-item {
        padding: 18px;
    }

    .answers-container {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .modern-qa-container {
        padding: 20px;
        border-radius: 18px;
    }

    .list-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-box {
        width: 100%;
        margin-top: 15px;
    }

    .question-item {
        padding: 18px;
    }

    .answer-item {
        padding: 15px;
    }
}

/* موبایل‌های کوچک */
@media (max-width: 576px) {
    .questions-list {
        height: 70vh;
    }

    .questions-container {
        padding: 10px;
    }

    .answers-container {
        max-height: 250px;
    }
}

@media (max-width: 576px) {

    .qa-card-header,
    .qa-card-body,
    .list-header {
        padding: 18px;
    }

    .question-title {
        font-size: 1.1rem;
    }

    .question-content,
    .answer-content {
        font-size: 14px;
    }
}



/* Responsive Styles */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .content-wrapper {
        min-height: 60%;
    }

    .bg {
        background-image: url('/static/image/back-s1-brain-media.png');
    }

    .glass-card {
        padding: 1.5rem;
        margin: 1rem auto;
    }

    .btn-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-container .btn {
        width: 100%;
    }

    .ax-dr {
        width: 200px;
        height: 200px;
        margin-bottom: 1rem;
    }

    #informations,
    h4,
    p {
        text-align: center;
        background-size: auto 70%;
        background-position-x: left;
        background-position-y: bottom;
    }

    .service-card {
        flex: 0 0 240px;
    }

    .address-info {
        grid-template-columns: 1fr;
    }

    .info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

}

@media (max-width: 576px) {
    .section-card {
        padding: 1rem;
    }

    .bg {
        background-image: url('/static/image/back-s1-brain-media.png');
    }

    .glass-card {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .services-header h3::after {
        width: 60px;
        bottom: -0.3rem;
    }
}

@media(max-width: 1200px) {
    .bg {
        background-image: url('/static/image/back-s1-brain-media.png');
    }

}

/* Datepicker Styles */
.datepicker-plot-area {
    font-family: 'iran-yekan', 'iran-sans', sans-serif !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
    padding: 15px !important;
    background: white !important;
    width: 400px;
}

.datepicker-day-view .table-days td {
    padding: 5px !important;
}

.datepicker-plot-area .datepicker-day-view .table-days td span,
.datepicker-plot-area .datepicker-year-view .year-item,
.datepicker-plot-area .datepicker-month-view .month-item {
    background-color: #00f339;
}


.datepicker-day-view .table-days td span {
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
}

/* استایل تاریخ‌های موجود */
.datepicker-plot-area .available-date span {
    background-color: #23a041 !important;
    color: white !important;
    font-weight: bold !important;
}

/* استایل تاریخ‌های رزرو شده */
.datepicker-plot-area .reserved-date span {
    background-color: #dc3545 !important;
    color: white !important;
    opacity: 0.6 !important;
    text-decoration: line-through !important;
}

/* دکمه‌های تقویم */
.datepicker-plot-area .pwt-btn-today {
    background: #007bff !important;
    color: white !important;
    border-radius: 5px !important;
    padding: 5px 10px !important;
}

.datepicker-plot-area .toolbox .pwt-btn-submit,
.datepicker-plot-area .toolbox .pwt-btn-calendar,
.datepicker-plot-area .toolbox .pwt-btn-today {
    float: none;
    display: inline;
}


.datepicker-plot-area .pwt-btn-submit {
    background: #28a745 !important;
    color: white !important;
    border-radius: 5px !important;
    padding: 5px 10px !important;
}

/* Time Cards */
.time-card {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 0.5rem;
}

.time-card:hover {
    border-color: #007bff;
    transform: translateY(-2px);
}

.time-card.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Staff Panel Styles */
#appointments-table th {
    white-space: nowrap;
}

.mark-visited-btn,
.delete-btn {
    margin: 0.2rem;
}

/* Modal Styles */
.modal {
    z-index: 1100 !important;
    backdrop-filter: blur(3px);
}

.modal-backdrop {
    z-index: 1090 !important;
}

/* address  */

.address-container {
    max-width: 1200px;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.map-container {
    position: relative;
}

.map-iframe {
    display: block;
    border: none;
    filter: grayscale(20%) contrast(110%) saturate(90%);
}

.address-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    color: white;
}

.info-card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-text {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.call-button {
    display: inline-block;
    background: white;
    color: #2c3e50;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.call-button:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}



.hover-text-white:hover {
    color: white !important;
    text-decoration: none;
}