:root {
    --primary-color: #0d6efd;
    /* Bootstrap Primary Blue */
    --secondary-color: #6c757d;
    --accent-color: #00d4ff;
    /* Brighter Cyan/Blue for gradients */
    --dark-bg: #0f172a;
    /* Slate 900 */
    --light-bg: #f8f9fa;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 20px 40px rgba(13, 110, 253, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.display-large {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #0d6efd 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(13, 110, 253, 0.3);
}

.btn-outline-secondary {
    border-color: #e2e8f0;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #cbd5e1;
    color: var(--primary-color);
}

/* Calendar Page Specifics */
.queue-card {
    transition: all 0.2s;
    cursor: grab;
    border-left: 3px solid transparent !important;
}

.queue-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.queue-card.active-card {
    border-left-color: var(--primary-color) !important;
    background-color: #f8faff;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
}

/* Calendar Grid */
.grid-background {
    background-size: 100% 120px;
    /* One hour height = 120px */
    background-image: linear-gradient(to bottom, #f1f5f9 1px, transparent 1px);
}

.time-slot-label {
    height: 120px;
    position: relative;
    top: -10px;
    /* Adjust alignment to match grid line */
}

.calendar-event {
    position: absolute;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid;
    transition: all 0.2s;
    overflow: hidden;
    cursor: pointer;
}

.calendar-event:hover {
    z-index: 50;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.doctor-header-card {
    min-width: 250px;
    flex: 1;
    border-left: 1px solid #f1f5f9;
}

/* Event Colors */
.event-blue {
    background-color: #eff6ff;
    color: #1e40af;
    border-left-color: #3b82f6;
}

.event-green {
    background-color: #f0fdf4;
    color: #166534;
    border-left-color: #22c55e;
}

.event-purple {
    background-color: #faf5ff;
    color: #6b21a8;
    border-left-color: #a855f7;
}

.event-orange {
    background-color: #fff7ed;
    color: #9a3412;
    border-left-color: #f97316;
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    border-radius: 50%;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.glass-card {
    position: absolute;
    bottom: 2rem;
    left: -2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Features Section */
.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: var(--primary-color);
}

.feature-icon-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.feature-icon-blue {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

.feature-icon-cyan {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.feature-icon-indigo {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

/* ===== Features Showcase Section ===== */
.features-showcase {
    padding: 5rem 0;
    background: #fff;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

.showcase-card {
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.showcase-card-blue {
    background: linear-gradient(135deg, #e8f4fd 0%, #dbeafe 100%);
}

.showcase-card-green {
    background: linear-gradient(135deg, #e6f7ef 0%, #d1fae5 100%);
}

.showcase-card-mint {
    background: linear-gradient(135deg, #e0f5f0 0%, #ccfbf1 100%);
}

.showcase-card-lavender {
    background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
}

.showcase-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.showcase-card p.showcase-desc {
    font-size: 0.92rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

/* Mockup Window */
.mockup-window {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 1rem;
    margin: 0 auto;
    max-width: 320px;
    position: relative;
    text-align: left;
}

.mockup-dots {
    display: flex;
    gap: 5px;
    margin-bottom: 0.75rem;
}

.mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #22c55e; }

/* Appointment List Mockup */
.mockup-appointment {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    border: 1px solid #f1f5f9;
}

.mockup-appointment .appt-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.mockup-appointment .appt-avatar.av-blue { background: #3b82f6; }
.mockup-appointment .appt-avatar.av-purple { background: #8b5cf6; }
.mockup-appointment .appt-avatar.av-teal { background: #14b8a6; }

.mockup-appointment .appt-info {
    flex: 1;
    min-width: 0;
}

.mockup-appointment .appt-time {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1e293b;
}

.mockup-appointment .appt-label {
    font-size: 0.72rem;
    color: #94a3b8;
}

.mockup-appointment .appt-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
}

/* Badge Tag */
.mockup-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.mockup-badge-green {
    background: #dcfce7;
    color: #16a34a;
}

.mockup-badge-blue {
    background: #dbeafe;
    color: #2563eb;
}

.mockup-badge-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

/* Stat Cards Mockup */
.mockup-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.mockup-stat-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    border: 1px solid #f1f5f9;
}

.mockup-stat-card .stat-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 0.15rem;
}

.mockup-stat-card .stat-label {
    font-size: 0.65rem;
    color: #94a3b8;
}

.mockup-stat-card .stat-change {
    font-size: 0.6rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.stat-change.up { color: #22c55e; }
.stat-change.down { color: #ef4444; }

/* Progress Bar Mockup */
.mockup-progress-wrap {
    margin-top: 0.5rem;
}

.mockup-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.mockup-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.mockup-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.mockup-progress-fill.fill-blue { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.mockup-progress-fill.fill-green { background: linear-gradient(90deg, #22c55e, #4ade80); }
.mockup-progress-fill.fill-teal { background: linear-gradient(90deg, #14b8a6, #2dd4bf); }

/* Workflow Mockup */
.mockup-workflow-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.mockup-workflow-item:last-child {
    border-bottom: none;
}

.mockup-workflow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mockup-workflow-dot.dot-blue { background: #3b82f6; }
.mockup-workflow-dot.dot-green { background: #22c55e; }
.mockup-workflow-dot.dot-amber { background: #f59e0b; }
.mockup-workflow-dot.dot-purple { background: #8b5cf6; }

.mockup-workflow-text {
    font-size: 0.72rem;
    color: #475569;
    flex: 1;
}

.mockup-workflow-link {
    font-size: 0.65rem;
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
}

/* Doctor Avatar */
.mockup-doctor-avatar {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #e0f2fe, #bfdbfe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    font-size: 1.4rem;
    overflow: hidden;
}

/* CTA inside card */
.mockup-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 0.6rem;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    cursor: default;
}

/* Percentage circle */
.mockup-percent-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
    background: conic-gradient(#22c55e var(--percent, 75%), #e2e8f0 0%);
    position: relative;
}

.mockup-percent-circle::after {
    content: attr(data-percent);
    position: absolute;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: #22c55e;
}

/* Chat Demo Section */
.chat-demo {
    background: #f8f9fa;
    border-radius: 24px;
    padding: 2rem;
}

.chat-bubble {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    max-width: 80%;
    font-size: 0.9rem;
}

.chat-bubble-ai {
    background: #fff;
    color: var(--text-primary);
    border-bottom-left-radius: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.chat-bubble-user {
    background: var(--primary-color);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 0;
}

/* Testimonials */
.testimonial-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 16px;
}

.stars {
    color: #ffc107;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Action Dropdown Styles */
.dropdown-menu {
    animation: fadeInDown 0.15s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    margin: 0 4px;
    width: auto;
    transition: background-color 0.15s ease;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
}

.dropdown-item.text-danger:hover {
    background-color: #fef2f2;
}

/* Filter Panel */
#filterPanel {
    animation: fadeInDown 0.2s ease-out;
}

#filterToggleBtn.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
}

/* ===== Language Switch Toggle ===== */
.lang-switch {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 20px;
    padding: 3px;
    gap: 2px;
    border: 1px solid #e2e8f0;
}

.lang-switch button {
    border: none;
    background: transparent;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
}

.lang-switch button:hover {
    color: #1e293b;
}

.lang-switch button.active {
    background: #fff;
    color: #0d6efd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Sidebar variant - slightly smaller */
.lang-switch-sidebar {
    width: 100%;
    justify-content: center;
}

.lang-switch-sidebar button {
    flex: 1;
    justify-content: center;
}