/* Import main styles */
@import url('../../style.css');

/* General Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7fa;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;

}
* {
    box-sizing: border-box;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #F8FAFC;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.logo {
    height: 60px;
    width: auto;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: #F6DED8;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    padding-top: 60px;
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* Sidebar Button */
.sidebar-btn {
    font-size: 24px;
    cursor: pointer;
    display: block;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Chatbot Icon */
#chatbot-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 999;
}

.chatbot-bg {
    position: absolute;
    width: 70px;
    height: 70px;
    background-color: #F6DED8;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

#chatbot-icon img {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 2;
}

/* FAQs Section */
.faqs {
    max-width: 1600px;
    min-height: 300px;
    background-color: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin: 30px auto;
}

/* Ensure FAQ Background Doesn't Collapse */
.faq-wrapper {
    min-height: 250px; /* Fixed height */
    max-width: 800px;
    margin: 0 auto;
}

/* Expand FAQ without affecting background size */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.faq-answer {
    display: none;
    padding-top: 10px;
    color: #6b7280;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Main Content */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding-top: 80px;
}

.booking-container {
    display: flex;
    width: 1000px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.booking-left {
    flex: 2;
    padding: 40px;
    position: relative;
}

.booking-right {
    flex: 1;
    background-color: #f9fafb;
    padding: 40px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    color: #6b7280;
    margin-bottom: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.calendar-grid div {
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.calendar-grid div:hover {
    background-color: #f1f5f9;
}

.calendar-grid div.selected {
    background-color: #2563EB;
    color: white;
}

.calendar-grid div.disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

.continue-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.continue-btn {
    background-color: #2563EB;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.continue-btn:hover {
    background-color: #1d4ed8;
}

.time-selection {
    display: none;
    margin-top: 20px;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.time-slot {
    background-color: #f1f5f9;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.time-slot:hover {
    background-color: #e2e8f0;
}

.time-slot.selected {
    background-color: #2563EB;
    color: white;
}

.book-slot-btn {
    width: 100%;
    padding: 12px;
    background-color: #2563EB;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
/* Confirmation Modal */
.confirmation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
}

.modal-content i {
    color: #2563EB;
    font-size: 80px;
    margin-bottom: 20px;
}

.close-modal {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #2563EB;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Doctor Profile */
.doctor-profile {
    text-align: center;
}

.doctor-profile img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.doctor-profile h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.tab {
    padding: 10px 20px;
    background: none;
    border: none;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
}

.tab.active {
    color: #2563EB;
    border-bottom: 2px solid #2563EB;
}

.tab-content {
    display: none;
    text-align: left;
}

.tab-content.active {
    display: block;
}

#about-content,
#details-content {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

#details-content h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

#details-content ul {
    padding-left: 20px;
    margin: 0;
}

/* FAQ Section */
.faqs {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 30px auto;
}

.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faqs h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 0;
}

.faq-question {
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    color: #6b7280;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    display: none;
    color: #6b7280;
    padding-top: 10px;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Chatbot Window */
#chatbot-window {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1000;
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #2563EB;
    color: white;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-chatbot {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chatbot-body {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.chatbot-footer {
    display: flex;
    border-top: 1px solid #e5e7eb;
    padding: 10px;
}

.chatbot-footer input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-right: 10px;
}

.chatbot-footer button {
    padding: 10px 20px;
    background-color: #2563EB;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Chatbot Messages */
.chatbot-messages {
    flex-grow: 1;
    padding: 12px;
    overflow-y: auto;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #bbb #f1f0f0;
}

.chatbot-messages::-webkit-scrollbar {
    width: 8px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #f1f0f0;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 10px;
}

/* Doctor Recommendation Button */
.doctor-button {
    display: flex;
    justify-content: flex-start;
    margin: 5px 0;
}

.doctor-button button {
    background-color: #FEF9EF;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.doctor-button button:hover {
    background-color: #f5e6cc;
}

/* Feature Card Link */
.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.feature-card-link:hover .feature-card {
    transform: scale(1.05);
    transition: transform 0.3s;
}

/* Footer Styling */
footer {
    background-color: #2D336B;
    color: white;
    text-align: center;
    padding: 15px;
    width: 100%;
    max-width: 100vw;
    position: relative;  /* Changed from fixed to relative */
    left: 0;
    z-index: 5;
    overflow: hidden;
}

footer a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}
