/**
 * LYV Dashboard - Consolidated Public Styles
 * Combines: Dashboard, Elation EMR, GetLabs booking styles
 */

/* ==========================================================================
   SHARED VARIABLES
   ========================================================================== */

:root {
    --lyv-primary: #10B981;
    --lyv-primary-dark: #059669;
    --lyv-primary-light: #D1FAE5;
    --lyv-secondary: #3B82F6;
    --lyv-text: #1F2937;
    --lyv-text-light: #6B7280;
    --lyv-border: #E5E7EB;
    --lyv-bg: #F9FAFB;
    --lyv-white: #FFFFFF;
    --lyv-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --lyv-shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
    --lyv-radius: 12px;
    --lyv-radius-sm: 8px;
}

/* ==========================================================================
   LYV DASHBOARD STYLES
   ========================================================================== */

.lyv-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--lyv-text);
    line-height: 1.5;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.lyv-dashboard * { box-sizing: border-box; }

.lyv-dashboard__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.lyv-dashboard__greeting {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lyv-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.lyv-dashboard__greeting-text h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--lyv-text);
}

.lyv-dashboard__date {
    text-align: right;
    color: var(--lyv-text-light);
    font-size: 14px;
}

.lyv-dashboard__date strong {
    display: block;
    font-size: 16px;
    color: var(--lyv-text);
}

.lyv-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.lyv-badge--tier {
    background: var(--lyv-primary-light);
    color: var(--lyv-primary-dark);
}

.lyv-badge--count {
    background: var(--lyv-secondary);
    color: white;
    min-width: 20px;
    text-align: center;
    margin-left: 8px;
}

.lyv-card {
    background: var(--lyv-white);
    border-radius: var(--lyv-radius);
    padding: 24px;
    box-shadow: var(--lyv-shadow);
    margin-bottom: 20px;
}

.lyv-card--centered {
    text-align: center;
    max-width: 400px;
    margin: 40px auto;
    padding: 48px 24px;
}

.lyv-card__icon {
    color: var(--lyv-primary);
    margin-bottom: 16px;
}

.lyv-card__icon svg {
    width: 48px;
    height: 48px;
}

.lyv-card__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--lyv-text);
}

.lyv-card__title svg {
    color: var(--lyv-primary);
    flex-shrink: 0;
}

.lyv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--lyv-radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

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

.lyv-btn--primary:hover { background: var(--lyv-primary-dark); }

.lyv-btn--secondary {
    background: var(--lyv-bg);
    color: var(--lyv-text);
    border: 1px solid var(--lyv-border);
}

.lyv-btn--secondary:hover { background: var(--lyv-border); }

.lyv-btn--small {
    padding: 8px 16px;
    font-size: 13px;
}

.lyv-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lyv-step {
    display: flex;
    gap: 16px;
    padding: 16px 0;
}

.lyv-step__indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 14px;
}

.lyv-step--pending .lyv-step__indicator {
    background: var(--lyv-bg);
    color: var(--lyv-text-light);
    border: 2px solid var(--lyv-border);
}

.lyv-step--current .lyv-step__indicator {
    background: var(--lyv-primary);
    color: white;
}

.lyv-step--completed .lyv-step__indicator {
    background: var(--lyv-primary-light);
    color: var(--lyv-primary);
}

.lyv-step__content {
    flex: 1;
    padding-bottom: 16px;
}

.lyv-step:last-child .lyv-step__content { padding-bottom: 0; }

.lyv-step__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.lyv-step--pending .lyv-step__title { color: var(--lyv-text-light); }

.lyv-step__description {
    font-size: 14px;
    color: var(--lyv-text-light);
    margin: 0 0 12px 0;
}

.lyv-step__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.lyv-step__scheduled {
    font-size: 13px;
    color: var(--lyv-primary-dark);
    font-weight: 500;
    margin: 0;
}

.lyv-step__scheduled-info {
    background: var(--lyv-primary-light);
    padding: 12px 16px;
    border-radius: var(--lyv-radius-sm);
    margin-top: 8px;
}

.lyv-step__waiting {
    color: var(--lyv-text-light);
    font-size: 13px;
    margin: 4px 0 0 0;
}

.lyv-step__completed-date {
    font-size: 13px;
    color: var(--lyv-primary);
    margin: 8px 0 0 0;
}

.lyv-dashboard__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .lyv-dashboard__grid { grid-template-columns: 1fr; }
}

.lyv-card--health-score { grid-column: span 2; }

@media (max-width: 768px) {
    .lyv-card--health-score { grid-column: span 1; }
}

.lyv-health-score {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.lyv-health-score__main { text-align: center; }

.lyv-health-score__value {
    font-size: 48px;
    font-weight: 700;
    color: var(--lyv-primary);
    line-height: 1;
    display: block;
}

.lyv-health-score__label {
    font-size: 14px;
    color: var(--lyv-primary);
    font-weight: 500;
}

.lyv-health-score__categories {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    flex: 1;
}

.lyv-category-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}

.lyv-category-score svg { color: var(--lyv-text-light); }

.lyv-category-score__value {
    font-size: 20px;
    font-weight: 600;
    color: var(--lyv-text);
}

.lyv-category-score__name {
    font-size: 12px;
    color: var(--lyv-text-light);
}

.lyv-health-score--empty {
    text-align: center;
    color: var(--lyv-text-light);
    padding: 24px;
}

.lyv-task-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lyv-task {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--lyv-border);
}

.lyv-task:last-child { border-bottom: none; }

.lyv-task__checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--lyv-primary);
}

.lyv-task__content { flex: 1; }
.lyv-task__title { display: block; font-weight: 500; }
.lyv-task__description { display: block; font-size: 13px; color: var(--lyv-text-light); }

.lyv-empty-state {
    text-align: center;
    padding: 24px;
    color: var(--lyv-text-light);
}

.lyv-empty-state svg { margin-bottom: 8px; opacity: 0.5; }

.lyv-message-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lyv-message-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--lyv-border);
    border-radius: var(--lyv-radius-sm);
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
}

.lyv-message-form textarea:focus {
    outline: none;
    border-color: var(--lyv-primary);
}

.lyv-appointment-list { list-style: none; padding: 0; margin: 0; }

.lyv-appointment {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--lyv-border);
}

.lyv-appointment:last-child { border-bottom: none; }

.lyv-appointment__date {
    width: 48px;
    height: 48px;
    background: var(--lyv-bg);
    border-radius: var(--lyv-radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lyv-appointment__month {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--lyv-text-light);
}

.lyv-appointment__day {
    font-size: 18px;
    font-weight: 600;
    color: var(--lyv-text);
    line-height: 1;
}

.lyv-appointment__details { flex: 1; }
.lyv-appointment__title { display: block; font-weight: 500; }
.lyv-appointment__time { font-size: 13px; color: var(--lyv-text-light); }

.lyv-protocol-items { display: flex; flex-direction: column; gap: 16px; }

.lyv-protocol-group__title {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--lyv-text-light);
    margin: 0 0 8px 0;
    font-weight: 600;
}

.lyv-protocol-group__items { list-style: none; padding: 0; margin: 0; }
.lyv-protocol-group__items li { padding: 8px 0; border-bottom: 1px solid var(--lyv-border); }
.lyv-protocol-group__items li:last-child { border-bottom: none; }
.lyv-protocol-group__items li strong { display: block; }
.lyv-protocol-group__items li span { font-size: 13px; color: var(--lyv-text-light); }

.lyv-quick-links { display: flex; flex-direction: column; gap: 8px; }
.lyv-quick-link { color: var(--lyv-secondary); text-decoration: none; font-size: 14px; }
.lyv-quick-link:hover { text-decoration: underline; }

.lyv-help-links { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }

.lyv-help-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--lyv-text);
    text-decoration: none;
    font-size: 14px;
}

.lyv-help-link:hover { color: var(--lyv-primary); }
.lyv-help-link svg { color: var(--lyv-text-light); }

.lyv-card--upgrade {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
    border: 1px solid var(--lyv-primary-light);
}

.lyv-card--upgrade .lyv-card__icon {
    width: 56px;
    height: 56px;
    background: var(--lyv-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lyv-card--upgrade .lyv-card__content { flex: 1; }
.lyv-card--upgrade h3 { margin: 0 0 4px 0; font-size: 16px; }
.lyv-card--upgrade p { margin: 0 0 12px 0; font-size: 14px; color: var(--lyv-text-light); }

.lyv-loading { display: flex; align-items: center; justify-content: center; padding: 40px; }

.lyv-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--lyv-border);
    border-top-color: var(--lyv-primary);
    border-radius: 50%;
    animation: lyv-spin 0.8s linear infinite;
}

@keyframes lyv-spin { to { transform: rotate(360deg); } }

.lyv-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background: var(--lyv-text);
    color: white;
    border-radius: var(--lyv-radius-sm);
    box-shadow: var(--lyv-shadow-lg);
    z-index: 9999;
    animation: lyv-slide-up 0.3s ease;
}

.lyv-toast--success { background: var(--lyv-primary); }
.lyv-toast--error { background: #EF4444; }

@keyframes lyv-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .lyv-dashboard { padding: 12px; }
    .lyv-dashboard__header { flex-direction: column; }
    .lyv-dashboard__date { text-align: left; }
    .lyv-health-score { flex-direction: column; text-align: center; }
    .lyv-health-score__categories { justify-content: center; }
    .lyv-card--upgrade { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   ELATION EMR STYLES
   ========================================================================== */

.elation-appointments-wrapper,
.elation-booking-wrapper,
.elation-patient-portal,
.elation-upcoming-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.elation-loading { text-align: center; padding: 40px; color: #666; }

.elation-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: elation-spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes elation-spin { to { transform: rotate(360deg); } }

.elation-notice { padding: 15px 20px; border-radius: 4px; margin-bottom: 20px; }
.elation-notice-info { background: #e7f3ff; border: 1px solid #b3d4fc; color: #31708f; }
.elation-notice-warning { background: #fcf8e3; border: 1px solid #faebcc; color: #8a6d3b; }
.elation-notice-success { background: #dff0d8; border: 1px solid #d0e9c6; color: #3c763d; }
.elation-notice-error { background: #f2dede; border: 1px solid #ebcccc; color: #a94442; }

.elation-appointment-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.elation-appointment-card:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.12); }

.elation-appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.elation-appointment-date { font-size: 18px; font-weight: 600; color: #333; }
.elation-appointment-time { font-size: 14px; color: #666; margin-top: 4px; }

.elation-appointment-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.elation-status-scheduled { background: #e3f2fd; color: #1976d2; }
.elation-status-confirmed { background: #e8f5e9; color: #388e3c; }
.elation-status-cancelled { background: #ffebee; color: #d32f2f; }
.elation-status-completed { background: #f5f5f5; color: #757575; }

.elation-appointment-details { border-top: 1px solid #eee; padding-top: 15px; }
.elation-appointment-detail { display: flex; margin-bottom: 8px; font-size: 14px; }
.elation-detail-label { font-weight: 500; color: #666; width: 120px; flex-shrink: 0; }
.elation-detail-value { color: #333; }
.elation-appointment-actions { margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; }

.elation-form { background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 25px; }
.elation-form-group { margin-bottom: 20px; }
.elation-form-group:last-child { margin-bottom: 0; }
.elation-form-group label { display: block; font-weight: 500; margin-bottom: 6px; color: #333; }
.elation-form-group .required { color: #d32f2f; }

.elation-form-group input[type="text"],
.elation-form-group input[type="email"],
.elation-form-group input[type="date"],
.elation-form-group select,
.elation-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.elation-form-group input:focus,
.elation-form-group select:focus,
.elation-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.elation-form-group textarea { resize: vertical; min-height: 80px; }

.elation-time-slots { display: flex; flex-wrap: wrap; gap: 8px; }

.elation-time-slot {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.elation-time-slot:hover { border-color: #0073aa; background: #f0f7fc; }
.elation-time-slot.selected { background: #0073aa; border-color: #0073aa; color: #fff; }
.elation-time-slot.unavailable { background: #f5f5f5; color: #999; cursor: not-allowed; text-decoration: line-through; }

.elation-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.elation-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.elation-btn-primary { background: #0073aa; color: #fff; }
.elation-btn-primary:hover:not(:disabled) { background: #005177; }
.elation-btn-secondary { background: #f0f0f0; color: #333; }
.elation-btn-secondary:hover:not(:disabled) { background: #e0e0e0; }
.elation-btn-danger { background: #fff; color: #dc2626; border: 1px solid #dc2626; }
.elation-btn-danger:hover:not(:disabled) { background: #fef2f2; }
.elation-btn-small { padding: 6px 12px; font-size: 12px; }
.elation-btn-large { padding: 14px 28px; font-size: 16px; width: 100%; }

.elation-availability-container { max-height: 500px; overflow-y: auto; border: 1px solid #e0e0e0; border-radius: 8px; }
.elation-day-group { border-bottom: 1px solid #e0e0e0; }
.elation-day-group:last-child { border-bottom: none; }

.elation-day-header {
    background: #f5f5f5;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.elation-day-name { font-weight: 600; color: #333; }
.elation-day-date { color: #666; font-size: 14px; }
.elation-day-slots { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px; }

.elation-day-slots .elation-time-slot {
    padding: 10px 16px;
    font-size: 14px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.elation-day-slots .elation-time-slot:hover { border-color: #0073aa; background: #f0f7fc; }
.elation-day-slots .elation-time-slot.selected { background: #0073aa; color: #fff; border-color: #0073aa; }

.elation-availability-loading,
.elation-upcoming-loading,
.elation-reschedule-loading {
    padding: 30px 20px;
    text-align: center;
    color: #666;
}

.elation-availability-loading .spinner,
.elation-upcoming-loading .spinner,
.elation-reschedule-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: elation-spin 0.8s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

.elation-no-availability,
.elation-upcoming-empty {
    padding: 30px 20px;
    text-align: center;
    background: #f8f8f8;
    border-radius: 8px;
    color: #666;
}

.elation-upcoming-error {
    padding: 15px 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
}

.elation-upcoming-wrapper .elation-appointment-card { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; }
.elation-appointment-datetime { display: flex; flex-direction: column; min-width: 150px; }
.elation-appointment-day { font-weight: 600; color: #333; font-size: 16px; }
.elation-upcoming-wrapper .elation-appointment-time { color: #0073aa; font-weight: 600; font-size: 18px; margin-top: 4px; }

.elation-upcoming-wrapper .elation-appointment-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: none;
    padding-top: 0;
}

.elation-appointment-reason { font-weight: 500; color: #333; }
.elation-appointment-duration { font-size: 13px; color: #666; }

.elation-upcoming-wrapper .elation-appointment-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.elation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elation-modal-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); }

.elation-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.elation-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.elation-modal-close:hover { color: #333; }
.elation-modal-content h3 { margin: 0 0 20px 0; font-size: 20px; color: #333; }
body.elation-modal-open { overflow: hidden; }

.elation-reschedule-days { max-height: 350px; overflow-y: auto; border: 1px solid #e0e0e0; border-radius: 8px; }
.elation-reschedule-actions { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; display: flex; gap: 10px; }
.elation-reschedule-message { margin-top: 15px; padding: 12px 16px; border-radius: 6px; }
.elation-reschedule-message.success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.elation-reschedule-message.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

.elation-portal-tabs { display: flex; border-bottom: 2px solid #ddd; margin-bottom: 20px; }

.elation-tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.elation-tab-btn:hover { color: #333; }
.elation-tab-btn.active { color: #0073aa; border-bottom-color: #0073aa; }
.elation-tab-content { display: none; }
.elation-tab-content.active { display: block; }

.elation-form-message { padding: 12px 15px; border-radius: 4px; margin-top: 15px; }
.elation-form-message.success { background: #dff0d8; border: 1px solid #d0e9c6; color: #3c763d; }
.elation-form-message.error { background: #f2dede; border: 1px solid #ebcccc; color: #a94442; }
.lyv-form-message { padding: 12px 15px; border-radius: 8px; margin-top: 15px; font-size: 14px; }
.lyv-form-message.success { background: var(--lyv-primary-light); border: 1px solid var(--lyv-primary); color: var(--lyv-primary-dark); }
.lyv-form-message.error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }

.elation-empty-state { text-align: center; padding: 40px 20px; color: #666; }
.elation-empty-state-icon { font-size: 48px; margin-bottom: 15px; opacity: 0.5; }

.elation-success-message {
    text-align: center;
    padding: 40px 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #16a34a;
}

.elation-success-message h3 { margin: 0 0 10px 0; color: #16a34a; }

@media (max-width: 600px) {
    .elation-appointment-card { flex-direction: column; align-items: flex-start; }
    .elation-upcoming-wrapper .elation-appointment-actions { width: 100%; }
    .elation-upcoming-wrapper .elation-appointment-actions .elation-btn { flex: 1; }
    .elation-appointment-header { flex-direction: column; }
    .elation-appointment-status { margin-top: 10px; }
    .elation-appointment-detail { flex-direction: column; }
    .elation-detail-label { width: 100%; margin-bottom: 2px; }
    .elation-portal-tabs { flex-direction: column; }
    .elation-tab-btn { border-bottom: none; border-left: 2px solid transparent; text-align: left; }
    .elation-tab-btn.active { border-bottom: none; border-left-color: #0073aa; }
}

/* ==========================================================================
   GETLABS BOOKING STYLES
   ========================================================================== */

.getlabs-booking {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.getlabs-booking-header { margin-bottom: 24px; }
.getlabs-booking-header h3 { margin: 0 0 8px 0; font-size: 24px; color: #1a1a1a; }
.getlabs-booking-header p { margin: 0; color: #666; }

.getlabs-address-confirm,
.getlabs-availability,
.getlabs-confirm {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.getlabs-address-confirm h4,
.getlabs-availability h4,
.getlabs-confirm h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.getlabs-subtitle { margin: 0 0 16px 0; color: #666; font-size: 14px; }
.getlabs-address-confirm p { margin: 0; line-height: 1.5; color: #555; }

.getlabs-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    background: #e9ecef;
    color: #333;
    transition: background 0.2s;
}

.getlabs-btn:hover { background: #dee2e6; }
.getlabs-btn-primary { background: #0066cc; color: #fff; }
.getlabs-btn-primary:hover { background: #0052a3; }
.getlabs-btn:disabled { opacity: 0.6; cursor: not-allowed; }

#getlabs-slots { display: flex; flex-direction: column; gap: 20px; }

.getlabs-day {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.getlabs-day-header {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.getlabs-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}

.getlabs-slot {
    padding: 10px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

.getlabs-slot:hover { border-color: #0066cc; background: #f0f7ff; }
.getlabs-slot.selected { border-color: #0066cc; background: #0066cc; color: #fff; }
.getlabs-slot.unavailable { opacity: 0.5; cursor: not-allowed; background: #f5f5f5; }

.getlabs-confirm { background: #e8f4fd; border: 1px solid #bee5eb; }
.getlabs-confirm h4 { color: #0c5460; }
#getlabs-selected-slot { font-size: 16px; margin-bottom: 16px; line-height: 1.5; color: #333; }
#getlabs-selected-slot strong { color: #0066cc; }

.getlabs-confirm-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.getlabs-confirm-buttons .getlabs-btn { flex: 1; min-width: 140px; }

.getlabs-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.getlabs-success h4 { color: #155724; margin: 0 0 8px 0; }
.getlabs-success p { color: #155724; margin: 0; }

.getlabs-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 16px;
    color: #721c24;
    margin-top: 16px;
}

.getlabs-loading { text-align: center; padding: 40px 20px; color: #666; }

.getlabs-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #ddd;
    border-top-color: #0066cc;
    border-radius: 50%;
    animation: getlabs-spin 0.8s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes getlabs-spin { to { transform: rotate(360deg); } }

.getlabs-no-slots { padding: 30px 20px; text-align: center; color: #666; background: #fff; border-radius: 8px; }
#getlabs-load-more { text-align: center; margin-top: 16px; padding-top: 16px; }
#getlabs-load-more-btn { min-width: 180px; }

@media (max-width: 480px) {
    .getlabs-booking { padding: 16px; }
    .getlabs-slots-grid { grid-template-columns: repeat(3, 1fr); }
    .getlabs-slot { padding: 12px 6px; font-size: 13px; }
    .getlabs-confirm-buttons { flex-direction: column; }
    .getlabs-confirm-buttons .getlabs-btn { width: 100%; }
}

/* ==========================================================================
   UNIFIED APPOINTMENT SECTIONS
   ========================================================================== */

.lyv-appointments-section {
    background: var(--lyv-white);
    border: 1px solid var(--lyv-border);
    border-radius: var(--lyv-radius);
    overflow: hidden;
}

/* Header */
.lyv-appts-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--lyv-border);
    background: var(--lyv-bg);
}

.lyv-appts-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0;
}

.lyv-appts-title h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--lyv-text);
    margin: 0;
}

.lyv-appts-icon {
    color: var(--lyv-primary);
    flex-shrink: 0;
}

/* List */
.lyv-appts-list {
    padding: 0;
}

.lyv-appts-list > * {
    border-bottom: 1px solid var(--lyv-border);
}

.lyv-appts-list > *:last-child {
    border-bottom: none;
}

/* Loading */
.lyv-appts-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2.5rem 1.5rem;
    color: var(--lyv-text-light);
    font-size: 0.875rem;
}

/* Empty State */
.lyv-appts-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.lyv-appts-empty-icon {
    color: #D1D5DB;
    margin-bottom: 1rem;
}

.lyv-appts-empty-icon svg {
    width: 40px;
    height: 40px;
}

.lyv-appts-empty-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--lyv-text);
    margin: 0 0 0.375rem 0;
}

.lyv-appts-empty-desc {
    font-size: 0.8125rem;
    color: var(--lyv-text-light);
    margin: 0 0 1.25rem 0;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.lyv-appts-empty .lyv-btn {
    display: inline-flex;
}

/* Error */
.lyv-appts-error {
    padding: 1rem 1.25rem;
    background: #FEF2F2;
    color: #991B1B;
    font-size: 0.875rem;
}

/* Provider appointments specifics */
.lyv-provider-appointments .lyv-appts-icon {
    color: var(--lyv-secondary);
}

/* Labs appointments specifics */
.lyv-labs-appointments .lyv-appts-icon {
    color: var(--lyv-primary);
}

/* Appointment card styling (unified) */
.lyv-appointments-section .getlabs-appointment-card,
.lyv-appointments-section .elation-appointment-card {
    border: none;
    border-radius: 0;
    padding: 1rem 1.25rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .lyv-appts-header {
        padding: 0.875rem 1rem;
    }
    
    .lyv-appts-title h3 {
        font-size: 0.9375rem;
    }
    
    .lyv-appts-empty {
        padding: 2rem 1rem;
    }
    
    .lyv-appts-empty-icon svg {
        width: 32px;
        height: 32px;
    }
}
