@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Medical Theme Palette from Android App */
    --primary: #00AEEF;            /* MedicalBlue */
    --primary-dark: #008CC0;       /* MedicalBlueDark */
    --primary-light: #E0F7FA;      /* MedicalBlueLight */
    --secondary: #2ECC71;          /* MedicalGreen */
    --secondary-dark: #27AE60;     /* MedicalGreenDark */
    --accent-purple: #9B59B6;      /* MedicalPurple */
    --accent-orange: #E67E22;      /* MedicalOrange */
    --accent-red: #E74C3C;         /* MedicalRed */
    
    --bg-light: #F8FAFB;           /* OffWhite */
    --white: #FFFFFF;              /* PureWhite */
    --text-black: #2C3E50;         /* MedicalBlack */
    --text-gray: #7F8C8D;          /* MedicalGray */
    --text-gray-light: #BDC3C7;    /* MedicalGrayLight */
    
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --status-pending: #FFF3E0;
    --status-pending-text: #E65100;
    --status-upcoming: #E3F2FD;
    --status-upcoming-text: #1976D2;
    --status-completed: #E8F5E9;
    --status-completed-text: #2E7D32;
    --status-cancelled: #FFEBEE;
    --status-cancelled-text: #C62828;
    --status-on-the-way: #F3E5F5;
    --status-on-the-way-text: #7B1FA2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism utility */
.glass {
    background: var(--glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow);
}

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

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Layout */
canvas#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
nav {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: 0.3s;
}

nav.scrolled {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-black);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 174, 239, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-black);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Hero Image/Mockup */
.hero-image {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    border: 8px solid #333;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #002D44 0%, #004D54 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Features */
section {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px;
    border-radius: 24px;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

/* Footer */
footer {
    background: var(--text-black);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #BDC3C7;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #34495E;
    padding-top: 40px;
    text-align: center;
    color: #7F8C8D;
}

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 0 30px; }
    .hero { flex-direction: column; text-align: center; height: auto; padding-top: 120px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-btns { justify-content: center; }
    .hero-content { margin-bottom: 60px; }
    .nav-links { display: none; }
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f0ff 100%);
    position: relative;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 24px;
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-gray);
}

.role-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.role-option {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
}

.role-option.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-black);
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E5E9EC;
    border-radius: 12px;
    font-size: 1rem;
    transition: 0.3s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
    background: white;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

/* Search Page */
.search-header-bg {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 120px 0 60px;
    color: white;
    text-align: center;
}

.search-container {
    margin-top: -40px;
    margin-bottom: 80px;
}

.search-bar {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.search-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    border-right: 1px solid #eee;
}

.search-input:last-child {
    border-right: none;
}

.search-input input, .search-input select {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: var(--text-black);
}

.therapist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.therapist-card {
    border-radius: 24px;
    overflow: hidden;
    transition: 0.3s;
}

.therapist-card:hover {
    transform: translateY(-8px);
}

.therapist-image {
    height: 200px;
    background: #eef2f3;
    position: relative;
}

.therapist-image i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: var(--border-light);
}

.therapist-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 6px 15px;
    border-radius: 10px;
    font-weight: 700;
}

.therapist-info {
    padding: 25px;
}

.therapist-info h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.therapist-specialty {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.therapist-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.rating {
    color: #f1c40f;
    font-weight: 700;
}

.experience {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Booking Dashboard Enhanced Styles */
.booking-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
}

.booking-nav-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-gray);
    transition: 0.3s;
    border-radius: 10px;
}

.booking-nav-btn.active {
    color: var(--primary);
    background: var(--primary-light);
}

.booking-nav-btn:hover:not(.active) {
    background: #f0f4f8;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pending { background: var(--status-pending) !important; color: var(--status-pending-text) !important; }
.status-upcoming { background: var(--status-upcoming) !important; color: var(--status-upcoming-text) !important; }
.status-completed { background: var(--status-completed) !important; color: var(--status-completed-text) !important; }
.status-cancelled { background: var(--status-cancelled) !important; color: var(--status-cancelled-text) !important; }
.status-on-the-way { background: var(--status-on-the-way) !important; color: var(--status-on-the-way-text) !important; }

.btn-cancel {
    background: transparent;
    color: var(--accent-red);
    border: 1.5px solid rgba(231, 76, 60, 0.3);
    padding: 6px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-cancel:hover {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

.appointment-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.appointment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* AI Assistant Chat Bubbles */
#ai-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
}

.ai-bubble, .user-bubble {
    max-width: 85%;
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

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

.ai-bubble {
    align-self: flex-start;
    background: #f0f2f5;
    color: #1c1e21;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(0,0,0,0.03);
}

.user-bubble {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(255, 126, 95, 0.2);
}

.glass-card {
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: var(--text-gray);
    font-style: italic;
}

.stat-card.glass {
    padding: 20px;
    border-radius: 18px;
    text-align: center;
    transition: 0.3s;
}

.stat-card.glass i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-card.glass h4 {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.stat-card.glass span {
    font-size: 1.25rem;
    font-weight: 700;
}


/* Modal & Day Chip Enhancements */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-content {
    transform: scale(1);
}

.day-chip {
    transition: all 0.2s ease;
    border: 1.5px solid #eee !important;
    background: white;
}

.day-chip:hover {
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.day-chip.selected {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--text-black);
    color: white;
    padding: 16px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 2000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    color: var(--secondary);
}
