/* ============================================================
   THÉRAFLOW - CSS EXACT REPRODUCTION DU JSX
   Chaque valeur est copiée exactement du fichier original
   ============================================================ */

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d0d5dd;
    border-radius: 4px;
}

/* ============================================================
   ANIMATIONS - Animations douces et fluides
   ============================================================ */

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

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 152, 133, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(124, 152, 133, 0.2); }
}

@keyframes panelContentIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes panelSlideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

body {
    min-height: 100vh;
    background-color: #f8f9fa;
    font-family: 'Nunito', 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================================
   HEADER - Exactement comme le JSX
   ============================================================ */
.header {
    background-color: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c9885 0%, #a8c5d9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.header-logo-text h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    letter-spacing: -0.02em;
}

.header-logo-text p {
    margin: 0;
    font-size: 11px;
    color: #a0aec0;
}

/* Navigation */
.header-nav {
    display: flex;
    gap: 8px;
}

.header-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 14px;
    background-color: transparent;
    color: #718096;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
}

.header-nav-btn:hover {
    background-color: #f7fafc;
    transform: translateY(-1px);
}

.header-nav-btn:active {
    transform: scale(0.98);
}

.header-nav-btn.active {
    background-color: #7c988515;
    color: #7c9885;
    font-weight: 600;
}

/* Actions header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-teleconsult {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #7c9885;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: white;
    transition: all 0.2s ease;
}

.btn-offres {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #f7fafc;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #718096;
    transition: all 0.2s ease;
}

.btn-icon {
    padding: 10px;
    border: none;
    border-radius: 12px;
    background-color: transparent;
    color: #718096;
    cursor: pointer;
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a574 0%, #e8b4a0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    padding: 32px 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page header */
.page-header {
    margin-bottom: 28px;
    animation: fadeInUp 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.page-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 300;
    color: #2d3748;
    letter-spacing: -0.02em;
}

.page-header p {
    margin: 8px 0 0;
    font-size: 14px;
    color: #a0aec0;
}

/* Toggle Dashboard/Liste */
.view-toggle {
    display: flex;
    background-color: white;
    border-radius: 14px;
    padding: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background-color: transparent;
    color: #718096;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-toggle-btn:hover:not(.active) {
    background-color: rgba(124, 152, 133, 0.08);
}

.view-toggle-btn.active {
    background-color: #7c9885;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(124, 152, 133, 0.3);
}

/* ============================================================
   CARDS - Style exact du JSX
   ============================================================ */
.card {
    background-color: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.03);
}

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

.card-header {
    margin-bottom: 20px;
}

.card-header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.card-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    letter-spacing: -0.01em;
}

.card-header p {
    margin: 0;
    font-size: 13px;
    color: #a0aec0;
    padding-left: 32px;
}

/* Stat Value */
.stat-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.stat-value-number {
    font-size: 32px;
    font-weight: 300;
    color: #2d3748;
    letter-spacing: -0.02em;
}

.stat-value-unit {
    font-size: 14px;
    color: #a0aec0;
}

.stat-value-trend {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.stat-value-trend.up {
    color: #48bb78;
}

.stat-value-trend.down {
    color: #f56565;
}

/* ============================================================
   DASHBOARD GRID - Patients
   ============================================================ */
.dashboard-patients {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 20px;
    grid-template-areas:
        "stats stats next"
        "notes notes notes"
        "progress types birthdays"
        "evolution evolution wellbeing";
}

.dashboard-patients .card-stats { grid-area: stats; }
.dashboard-patients .card-next { grid-area: next; }
.dashboard-patients .card-notes { grid-area: notes; }
.dashboard-patients .card-progress { grid-area: progress; }
.dashboard-patients .card-types { grid-area: types; }
.dashboard-patients .card-birthdays { grid-area: birthdays; }
.dashboard-patients .card-evolution { grid-area: evolution; }
.dashboard-patients .card-wellbeing { grid-area: wellbeing; }

/* ============================================================
   DASHBOARD GRID - Séances
   ============================================================ */
.dashboard-seances {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 20px;
    grid-template-areas:
        "today today stats"
        "calendar calendar calendar"
        "types types reminders"
        "billing moods upcoming";
}

.dashboard-seances .card-today { grid-area: today; }
.dashboard-seances .card-stats { grid-area: stats; }
.dashboard-seances .card-calendar { grid-area: calendar; }
.dashboard-seances .card-types { grid-area: types; }
.dashboard-seances .card-reminders { grid-area: reminders; }
.dashboard-seances .card-billing { grid-area: billing; }
.dashboard-seances .card-moods { grid-area: moods; }
.dashboard-seances .card-upcoming { grid-area: upcoming; }

/* ============================================================
   DASHBOARD GRID - Factures
   ============================================================ */
.dashboard-factures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 20px;
    grid-template-areas:
        "revenue revenue pending"
        "recent recent recent"
        "stats methods methods"
        "unpaid unpaid yearly";
}

.dashboard-factures .card-revenue { grid-area: revenue; }
.dashboard-factures .card-pending { grid-area: pending; }
.dashboard-factures .card-recent { grid-area: recent; }
.dashboard-factures .card-stats { grid-area: stats; }
.dashboard-factures .card-methods { grid-area: methods; }
.dashboard-factures .card-unpaid { grid-area: unpaid; }
.dashboard-factures .card-yearly { grid-area: yearly; }

/* ============================================================
   MINI STATS GRID
   ============================================================ */
.mini-stats-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.mini-stat {
    text-align: center;
    padding: 12px;
    border-radius: 12px;
}

.mini-stat-value {
    font-size: 20px;
    font-weight: 300;
}

.mini-stat-label {
    font-size: 11px;
    color: #a0aec0;
}

/* ============================================================
   PROGRESS CIRCLE (SVG)
   ============================================================ */
.progress-circle {
    transform: rotate(-90deg);
}

.progress-circle-bg {
    fill: none;
    stroke: rgba(0,0,0,0.05);
    stroke-width: 6;
}

.progress-circle-fill {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

/* ============================================================
   PERSON LIST / AVATAR
   ============================================================ */
.person-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.person-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.avatar-sm {
    width: 36px;
    height: 36px;
    font-size: 13px;
}

.avatar-md {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 18px;
}

.person-info {
    flex: 1;
}

.person-name {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

.person-detail {
    font-size: 12px;
    color: #a0aec0;
}

/* Badge */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-sm {
    padding: 2px 8px;
    font-size: 10px;
}

/* ============================================================
   RDV ITEM
   ============================================================ */
.rdv-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rdv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
}

.rdv-item.highlight {
    background-color: #7c988508;
}

/* ============================================================
   NOTES GRID
   ============================================================ */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.note-card {
    padding: 16px;
    border-radius: 14px;
    border-left: 3px solid;
}

.note-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.note-patient {
    font-size: 13px;
    font-weight: 600;
}

.note-time {
    font-size: 11px;
    color: #a0aec0;
}

.note-content {
    margin: 0;
    font-size: 12px;
    color: #4a5568;
    line-height: 1.5;
}

/* ============================================================
   PROGRESS BARS
   ============================================================ */
.progress-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.progress-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.progress-item-label {
    font-size: 12px;
    color: #4a5568;
}

.progress-item-value {
    font-size: 12px;
    font-weight: 600;
}

.progress-bar {
    height: 6px;
    background-color: #f7fafc;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
}

/* ============================================================
   TYPES GRID
   ============================================================ */
.types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.type-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
}

.type-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.type-label {
    font-size: 12px;
    color: #4a5568;
    flex: 1;
}

.type-count {
    font-size: 14px;
    font-weight: 600;
}

/* ============================================================
   BIRTHDAYS LIST
   ============================================================ */
.birthdays-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.birthday-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.birthday-item:last-child {
    border-bottom: none;
}

.birthday-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.birthday-name {
    font-size: 13px;
    color: #4a5568;
}

.birthday-days {
    font-size: 12px;
    color: #a0aec0;
}

/* ============================================================
   BAR CHART
   ============================================================ */
.bar-chart {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: 100px;
    padding: 0 5px;
}

.bar-chart-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.bar-chart-bar {
    width: 18px;
    border-radius: 4px;
}

.bar-chart-label {
    font-size: 10px;
    color: #a0aec0;
}

.bar-chart-label.active {
    font-weight: 600;
}

/* Chart footer stats */
.chart-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-around;
}

.chart-footer-stat {
    text-align: center;
}

.chart-footer-value {
    font-size: 18px;
    font-weight: 500;
}

.chart-footer-label {
    font-size: 11px;
    color: #a0aec0;
}

/* ============================================================
   WELLBEING CARD
   ============================================================ */
.wellbeing-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    position: relative;
}

.wellbeing-value {
    position: absolute;
    text-align: center;
}

.wellbeing-value-number {
    font-size: 26px;
    font-weight: 300;
    color: #4a5568;
}

.wellbeing-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.wellbeing-stat {
    text-align: center;
}

.wellbeing-stat-value {
    font-size: 16px;
    font-weight: 500;
}

.wellbeing-stat-label {
    font-size: 10px;
    color: #a0aec0;
}

/* ============================================================
   SEANCES DU JOUR
   ============================================================ */
.seance-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.seance-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.seance-item.current {
    background-color: #8fa5b215;
    border: 2px solid #8fa5b240;
}

.seance-item.done {
    opacity: 0.5;
}

.seance-time {
    font-size: 13px;
    font-weight: 600;
    color: #718096;
    min-width: 45px;
}

.seance-item.current .seance-time {
    color: #8fa5b2;
}

.seance-info {
    flex: 1;
}

.seance-patient {
    font-size: 13px;
    font-weight: 500;
    color: #2d3748;
}

.seance-detail {
    font-size: 11px;
    color: #a0aec0;
}

.seance-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    background-color: #8fa5b2;
    color: white;
}

/* ============================================================
   CALENDAR WEEK
   ============================================================ */
.calendar-week {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.calendar-day {
    padding: 14px 10px;
    border-radius: 14px;
    background-color: #fafbfc;
    border: 1px solid transparent;
}

.calendar-day.current {
    background-color: #c9a87c10;
    border: 2px solid #c9a87c40;
}

.calendar-day-header {
    text-align: center;
    margin-bottom: 12px;
}

.calendar-day-name {
    font-size: 11px;
    color: #a0aec0;
}

.calendar-day.current .calendar-day-name {
    color: #c9a87c;
    font-weight: 600;
}

.calendar-day-number {
    font-size: 20px;
    font-weight: 300;
    color: #4a5568;
}

.calendar-day.current .calendar-day-number {
    color: #c9a87c;
}

.calendar-slots {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendar-slot {
    padding: 6px 8px;
    background-color: #f0f0f0;
    border-radius: 6px;
    font-size: 10px;
    color: #4a5568;
}

.calendar-day.current .calendar-slot {
    background-color: #c9a87c15;
}

.calendar-slot-time {
    font-weight: 600;
    color: #718096;
}

.calendar-day.current .calendar-slot-time {
    color: #c9a87c;
}

.calendar-more {
    text-align: center;
    font-size: 10px;
    color: #a0aec0;
    padding-top: 4px;
}

.calendar-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-footer-label {
    font-size: 13px;
    color: #718096;
}

.calendar-footer-stats {
    display: flex;
    gap: 20px;
}

.calendar-footer-value {
    font-size: 14px;
    font-weight: 600;
}

/* ============================================================
   TYPES SEANCES GRID (4 colonnes)
   ============================================================ */
.types-seances-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.type-seance-card {
    padding: 16px;
    border-radius: 14px;
    text-align: center;
}

.type-seance-icon {
    opacity: 0.8;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
}

.type-seance-count {
    font-size: 24px;
    font-weight: 300;
}

.type-seance-label {
    font-size: 11px;
    color: #718096;
    margin-top: 4px;
}

/* ============================================================
   REMINDERS
   ============================================================ */
.reminders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reminder-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background-color: #f9fafb;
}

.reminder-item.high {
    background-color: #d4a5a512;
}

.reminder-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.reminder-text {
    font-size: 12px;
    color: #4a5568;
}

/* ============================================================
   BILLING CARD
   ============================================================ */
.billing-total {
    text-align: center;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 14px;
}

.billing-total-value {
    font-size: 32px;
    font-weight: 300;
}

.billing-total-label {
    font-size: 12px;
    color: #718096;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    color: white;
}

/* ============================================================
   MOODS
   ============================================================ */
.moods-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
}

.mood-item {
    text-align: center;
}

.mood-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mood-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mood-value {
    font-size: 16px;
    font-weight: 500;
}

.mood-label {
    font-size: 10px;
    color: #a0aec0;
}

/* ============================================================
   FACTURES RECENTES
   ============================================================ */
.factures-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.facture-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.facture-item.attente {
    background-color: #c49a6c08;
}

.facture-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.facture-numero {
    font-size: 13px;
    font-weight: 600;
    min-width: 90px;
}

.facture-patient {
    font-size: 13px;
    color: #4a5568;
}

.facture-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.facture-date {
    font-size: 12px;
    color: #a0aec0;
}

.facture-montant {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    min-width: 50px;
    text-align: right;
}

.facture-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    min-width: 70px;
    text-align: center;
}

/* ============================================================
   STATS FACTURES
   ============================================================ */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-item-icon {
    opacity: 0.6;
}

.stat-item-label {
    font-size: 13px;
    color: #718096;
}

.stat-item-value {
    font-size: 15px;
    font-weight: 600;
    color: #4a5568;
}

/* ============================================================
   PAYMENT METHODS
   ============================================================ */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.method-card {
    padding: 16px;
    border-radius: 16px;
    text-align: center;
}

.method-percent {
    font-size: 24px;
    font-weight: 300;
}

.method-name {
    font-size: 12px;
    color: #718096;
    margin: 4px 0;
}

.method-amount {
    font-size: 13px;
    font-weight: 500;
}

/* ============================================================
   UNPAID / RELANCES
   ============================================================ */
.unpaid-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.unpaid-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 12px;
}

.unpaid-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.unpaid-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.unpaid-info-name {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

.unpaid-info-detail {
    font-size: 12px;
    color: #a0aec0;
}

.unpaid-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.unpaid-days {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.btn-relance {
    padding: 8px 14px;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================================
   FLOATING BUTTON
   ============================================================ */
.floating-btn {
    position: fixed;
    right: 40px;
    bottom: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #7c9885 0%, #a8c5d9 100%);
    color: white;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(124, 152, 133, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.floating-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 16px 48px rgba(124, 152, 133, 0.5);
}

.floating-btn:active {
    transform: scale(0.95);
}

/* ============================================================
   LISTE VIEW - Recherche et filtres
   ============================================================ */
.search-filters {
    background-color: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.search-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 2px solid #f0f0f0;
    border-radius: 14px;
    font-size: 15px;
    outline: none;
    font-family: inherit;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #7c9885;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.view-mode-toggle {
    display: flex;
    background-color: #f7fafc;
    border-radius: 12px;
    padding: 4px;
}

.view-mode-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #718096;
    font-family: inherit;
    font-size: 13px;
}

.view-mode-btn.active {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    color: #7c9885;
}

/* Filtres */
.filters-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 25px;
    background-color: white;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    color: #718096;
    font-weight: 400;
    transition: all 0.2s ease;
}

.filter-btn.active {
    font-weight: 600;
}

.filter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.filter-count {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background-color: #f0f0f0;
    color: #718096;
}

.filter-btn.active .filter-count {
    color: white;
}

.filter-clear {
    padding: 8px 16px;
    border: none;
    background-color: transparent;
    color: #e57373;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
}

/* Results info */
.results-info {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-count {
    font-size: 14px;
    color: #718096;
}

.results-sort {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

/* ============================================================
   CARDS VIEW (Liste patients)
   ============================================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.patient-card {
    background-color: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Staggered animation for cards */
.patient-card:nth-child(1) { animation-delay: 0.05s; }
.patient-card:nth-child(2) { animation-delay: 0.1s; }
.patient-card:nth-child(3) { animation-delay: 0.15s; }
.patient-card:nth-child(4) { animation-delay: 0.2s; }
.patient-card:nth-child(5) { animation-delay: 0.25s; }
.patient-card:nth-child(6) { animation-delay: 0.3s; }
.patient-card:nth-child(7) { animation-delay: 0.35s; }
.patient-card:nth-child(8) { animation-delay: 0.4s; }

.patient-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.patient-card-top {
    display: flex;
    gap: 16px;
}

.patient-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.patient-card-info {
    flex: 1;
    min-width: 0;
}

.patient-card-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.patient-card-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
}

.patient-card-meta {
    margin: 0 0 8px;
    font-size: 12px;
    color: #a0aec0;
}

.patient-card-motif {
    margin: 0;
    font-size: 13px;
    color: #718096;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.patient-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f7fafc;
}

.patient-card-stats {
    display: flex;
    gap: 16px;
}

.patient-card-stat-value {
    font-size: 16px;
    font-weight: 600;
}

.patient-card-stat-label {
    font-size: 10px;
    color: #a0aec0;
}

.patient-card-rdv {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

/* ============================================================
   TABLE VIEW (Liste)
   ============================================================ */
.table-container {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead tr {
    background-color: #f9fafb;
}

.table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table th.center {
    text-align: center;
}

.table th.right {
    text-align: right;
}

.table tbody tr {
    border-top: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.table tbody tr:hover {
    background-color: #f9fafb;
}

.table td {
    padding: 16px 20px;
}

.table-patient {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-patient-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.table-patient-name {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
}

.table-patient-meta {
    font-size: 12px;
    color: #a0aec0;
}

.table-motif {
    font-size: 13px;
    color: #4a5568;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-seances {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.table-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.table-progress-bar {
    width: 60px;
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.table-progress-fill {
    height: 100%;
    border-radius: 3px;
}

.table-progress-value {
    font-size: 12px;
    color: #718096;
}

.table-rdv {
    text-align: right;
    font-size: 13px;
    font-weight: 500;
}

/* ============================================================
   PANELS (Sliding)
   ============================================================ */
.panel-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        backdrop-filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-overlay.open {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 480px;
    background-color: white;
    z-index: 201;
    transform: translateX(100%);
    transition:
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0);
    will-change: transform;
}

.panel.open {
    transform: translateX(0);
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.12);
}

/* Animate panel content when panel opens */
.panel.open .panel-header {
    animation: panelContentIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.panel.open .panel-tabs {
    animation: panelContentIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.panel.open .panel-body {
    animation: panelContentIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.panel.open .panel-footer {
    animation: panelContentIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.panel-header {
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.panel-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background-color: #f7fafc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
}

.panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.panel-footer {
    padding: 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
}

.btn-cancel {
    flex: 1;
    padding: 14px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    background-color: white;
    font-size: 14px;
    font-weight: 500;
    color: #718096;
    cursor: pointer;
    font-family: inherit;
}

.btn-save {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background-color: #7c9885;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    font-family: inherit;
}

/* Form elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: #7c9885;
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s ease;
}

.form-textarea:focus {
    border-color: #7c9885;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    background-color: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ============================================================
   ABONNEMENTS PAGE
   ============================================================ */
.abonnements-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f0eb 50%, #e8f4f8 100%);
    padding: 60px 40px;
}

.abonnements-header {
    text-align: center;
    margin-bottom: 60px;
}

.abonnements-title {
    font-size: 42px;
    font-weight: 300;
    color: #2d3748;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.abonnements-subtitle {
    font-size: 18px;
    color: #718096;
    margin-bottom: 32px;
}

.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background-color: white;
    padding: 8px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.billing-option {
    font-size: 14px;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.billing-option.active {
    color: #2d3748;
    font-weight: 600;
}

.billing-switch {
    width: 50px;
    height: 26px;
    background-color: #e2e8f0;
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.billing-switch.active {
    background-color: #7c9885;
}

.billing-switch-knob {
    width: 22px;
    height: 22px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.billing-switch.active .billing-switch-knob {
    transform: translateX(24px);
}

.billing-discount {
    font-size: 12px;
    font-weight: 600;
    color: #7c9885;
    background-color: #7c988520;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Plans grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 80px;
}

.plan-card {
    background-color: white;
    border-radius: 28px;
    padding: 36px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.plan-card.popular {
    border: 2px solid #7c9885;
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #7c9885;
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: 28px;
}

.plan-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-icon.essentiel {
    background-color: #a8c5d920;
    color: #a8c5d9;
}

.plan-icon.pro {
    background-color: #7c988520;
    color: #7c9885;
}

.plan-icon.cabinet {
    background-color: #d4a57420;
    color: #d4a574;
}

.plan-name {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.plan-description {
    font-size: 14px;
    color: #718096;
    margin-bottom: 20px;
}

.plan-price {
    margin-bottom: 8px;
}

.plan-price-value {
    font-size: 42px;
    font-weight: 300;
    color: #2d3748;
}

.plan-price-period {
    font-size: 16px;
    color: #a0aec0;
}

.plan-price-annual {
    font-size: 13px;
    color: #a0aec0;
}

.plan-features {
    margin-bottom: 28px;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.plan-feature:last-child {
    border-bottom: none;
}

.plan-feature.excluded {
    opacity: 0.4;
}

.plan-feature-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-feature-icon.included {
    background-color: #7c988520;
    color: #7c9885;
}

.plan-feature-icon.excluded {
    background-color: #f0f0f0;
    color: #a0aec0;
}

.plan-feature-text {
    font-size: 14px;
    color: #4a5568;
}

.plan-cta {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.plan-cta.primary {
    background-color: #7c9885;
    color: white;
    border: none;
}

.plan-cta.outline {
    background-color: white;
    color: #7c9885;
    border: 2px solid #7c9885;
}

/* ============================================================
   TELECONSULTATION PAGE
   ============================================================ */
.teleconsult-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #faf8f5 0%, #e8ede9 50%, #a8c5d920 100%);
    font-family: 'Nunito', sans-serif;
    position: relative;
    overflow: hidden;
}

.teleconsult-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.teleconsult-bg-shape-1 {
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #7c988515, #a8c5d920);
}

.teleconsult-bg-shape-2 {
    bottom: -150px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #c9b8d420, #e8b4a015);
    filter: blur(80px);
}

.teleconsult-header {
    padding: 32px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.teleconsult-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.teleconsult-logo-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #7c9885, #a8c5d9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px #7c988530;
    color: white;
}

.teleconsult-logo h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    letter-spacing: -0.02em;
}

.teleconsult-logo p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #718096;
}

.teleconsult-back {
    padding: 12px 24px;
    background-color: white;
    border: none;
    border-radius: 14px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 8px;
}

.teleconsult-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 48px 60px;
    position: relative;
    z-index: 10;
}

.teleconsult-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
}

.video-container {
    background-color: white;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.video-preview {
    aspect-ratio: 16/10;
    background: linear-gradient(145deg, #3a3a4a, #2a2a3a);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a57460, #e8b4a080);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 300;
    color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.video-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4ade80;
    box-shadow: 0 0 12px #4ade80;
}

.video-badge-text {
    font-size: 13px;
    color: white;
    font-weight: 500;
}

.video-name {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 10px 18px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    font-size: 14px;
    color: white;
    font-weight: 500;
}

.video-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.video-control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid;
}

.video-control-btn.active {
    background-color: #7c988515;
    border-color: #7c9885;
}

.video-control-btn.inactive {
    background-color: #fef2f2;
    border-color: #fecaca;
}

.video-control-emoji {
    font-size: 24px;
}

.video-control-label {
    font-size: 12px;
    font-weight: 600;
}

.video-control-btn.active .video-control-label {
    color: #7c9885;
}

.video-control-btn.inactive .video-control-label {
    color: #ef4444;
}

/* Quality indicators */
.quality-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.quality-card {
    background-color: white;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.quality-emoji {
    font-size: 28px;
}

.quality-value {
    font-size: 18px;
    font-weight: 600;
    margin: 8px 0 4px;
}

.quality-label {
    font-size: 12px;
    color: #a0aec0;
}

/* Waiting room */
.waiting-room {
    background-color: white;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.waiting-room-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.waiting-room-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: #7c988515;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.waiting-room-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.waiting-room-subtitle {
    margin: 0;
    font-size: 12px;
    color: #a0aec0;
}

.waiting-patients {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.waiting-patient {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.waiting-patient:hover {
    background-color: #f9fafb;
}

.waiting-patient.ready {
    background-color: #7c988510;
    border: 2px solid #7c988530;
}

.waiting-patient-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
}

.waiting-patient-info {
    flex: 1;
}

.waiting-patient-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2px;
}

.waiting-patient-time {
    font-size: 12px;
    color: #a0aec0;
}

.waiting-patient-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.waiting-patient-status.online {
    background-color: #4ade80;
    box-shadow: 0 0 8px #4ade80;
}

.waiting-patient-status.offline {
    background-color: #e2e8f0;
}

.btn-start-call {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #7c9885, #a8c5d9);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    margin-top: 8px;
    box-shadow: 0 8px 20px #7c988540;
}

/* ============================================================
   LISTE VIEWS - NOUVELLES CLASSES
   ============================================================ */

/* Container */
.liste-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Filtres Card */
.liste-filters-card {
    background-color: white;
    border-radius: 20px;
    padding: 24px;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.05s both;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.liste-search-row {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.liste-search-input-wrapper {
    flex: 1;
    position: relative;
}

.liste-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.liste-search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 2px solid #f0f0f0;
    border-radius: 14px;
    font-size: 15px;
    outline: none;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.liste-search-input:focus {
    border-color: #7c9885;
}

.liste-view-toggle {
    display: flex;
    background-color: #f7fafc;
    border-radius: 12px;
    padding: 4px;
}

.liste-view-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #718096;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.liste-view-btn.active {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    color: #7c9885;
}

.liste-filters-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.liste-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 25px;
    background-color: white;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    color: #718096;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.liste-filter-btn:hover {
    border-color: var(--filter-color, #7c9885);
    color: var(--filter-color, #7c9885);
    transform: translateY(-1px);
}

.liste-filter-btn:active {
    transform: scale(0.97);
}

.liste-filter-btn.active {
    border-color: var(--filter-color, #7c9885);
    color: var(--filter-color, #7c9885);
    font-weight: 500;
}

.liste-filter-btn.simple {
    padding: 8px 14px;
}

.liste-filter-btn.simple.active {
    color: white;
}

.liste-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.liste-results-count {
    font-size: 14px;
    color: #718096;
}

.liste-sort-select {
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    background-color: white;
}

/* Patients Cards Grid */
.patients-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.patient-avatar-large {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.patient-card-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
}

.patient-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.patient-badge.urgent {
    background-color: #e5737320;
    color: #e57373;
}

.patient-stat-value {
    font-size: 16px;
    font-weight: 600;
}

.patient-stat-label {
    font-size: 10px;
    color: #a0aec0;
}

.patient-next-rdv {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.patient-next-rdv.pause {
    background-color: #f0f0f0;
    color: #a0aec0;
}

/* Patients Table */
.patients-table-wrapper {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.patients-table {
    width: 100%;
    border-collapse: collapse;
}

.patients-table thead {
    background-color: #f9fafb;
}

.patients-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.patients-table tbody tr {
    border-top: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.patients-table tbody tr:hover {
    background-color: #f9fafb;
}

.patients-table td {
    padding: 16px 20px;
}

.patient-row-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.patient-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.patient-row-name {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
}

.patient-row-meta {
    font-size: 12px;
    color: #a0aec0;
}

.patient-row-motif {
    font-size: 13px;
    color: #4a5568;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.patient-progress-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.patient-progress-bar {
    width: 80px;
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.patient-progress-fill {
    height: 100%;
    border-radius: 3px;
}

/* Seances Timeline */
.seances-timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.timeline-day {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-day-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.timeline-day-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
}

.timeline-day-line {
    flex: 1;
    height: 1px;
    background-color: #e2e8f0;
}

.timeline-day-count {
    font-size: 13px;
    color: #a0aec0;
    white-space: nowrap;
}

.timeline-seances {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seance-timeline-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    border-left: 4px solid;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Staggered animation for timeline items */
.seance-timeline-item:nth-child(1) { animation-delay: 0.05s; }
.seance-timeline-item:nth-child(2) { animation-delay: 0.1s; }
.seance-timeline-item:nth-child(3) { animation-delay: 0.15s; }
.seance-timeline-item:nth-child(4) { animation-delay: 0.2s; }
.seance-timeline-item:nth-child(5) { animation-delay: 0.25s; }

.seance-timeline-item:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.seance-time-col {
    text-align: center;
    min-width: 60px;
}

.seance-time {
    font-size: 15px;
    font-weight: 600;
    color: #4a5568;
}

.seance-duration {
    font-size: 11px;
    color: #a0aec0;
}

.seance-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.seance-info {
    flex: 1;
    min-width: 0;
}

.seance-patient-name {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
}

.seance-type {
    font-size: 12px;
    color: #a0aec0;
}

.seance-badges {
    display: flex;
    align-items: center;
    gap: 10px;
}

.seance-notes-icon {
    opacity: 0.7;
}

.seance-mood {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.seance-current-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

/* Seances Calendar View */
.seances-calendar-view {
    background-color: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-header-cell {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    padding: 12px;
}

.calendar-cell {
    min-height: 80px;
    padding: 8px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.calendar-cell.today {
    background-color: #7c988510;
    border-color: #7c9885;
}

.calendar-cell.has-seances:hover {
    background-color: #f9fafb;
    cursor: pointer;
}

.calendar-day-num {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.calendar-day-num.past {
    color: #a0aec0;
}

.calendar-seances-dots {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.calendar-seance-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.calendar-more-count {
    font-size: 10px;
    color: #a0aec0;
}

/* Factures Stats Row */
.factures-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.factures-stat-card {
    background-color: white;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Staggered animation for stat cards */
.factures-stat-card:nth-child(1) { animation-delay: 0.05s; }
.factures-stat-card:nth-child(2) { animation-delay: 0.1s; }
.factures-stat-card:nth-child(3) { animation-delay: 0.15s; }
.factures-stat-card:nth-child(4) { animation-delay: 0.2s; }

.factures-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.factures-stat-label {
    font-size: 12px;
    color: #718096;
    margin-bottom: 8px;
}

.factures-stat-value {
    font-size: 28px;
    font-weight: 300;
    color: #2d3748;
}

/* Factures Table */
.factures-table-wrapper {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.25s both;
}

.factures-table {
    width: 100%;
    border-collapse: collapse;
}

.factures-table thead {
    background-color: #f9fafb;
}

.factures-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.factures-table tbody tr {
    border-top: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.factures-table tbody tr:hover {
    background-color: #f9fafb;
}

.factures-table td {
    padding: 16px 20px;
}

.facture-numero {
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 13px;
    font-weight: 600;
}

.facture-patient-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.facture-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.facture-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.facture-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.facture-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: white;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    color: #718096;
    transition: all 0.2s ease;
}

.facture-action-btn:hover {
    background-color: #f7fafc;
    border-color: #cbd5e0;
}

.facture-action-btn.btn-download-pdf {
    color: #7c9885;
    border-color: #7c988540;
}

.facture-action-btn.btn-download-pdf:hover {
    background-color: #7c988510;
    border-color: #7c9885;
    color: #5a7363;
}

.facture-action-btn.btn-download-pdf svg {
    flex-shrink: 0;
}

.facture-action-btn.primary {
    border: none;
    color: white;
}

.facture-action-btn.primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-export {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background-color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    color: #4a5568;
    transition: all 0.2s ease;
}

.btn-export:hover {
    border-color: #7c9885;
    color: #7c9885;
}

/* ============================================================
   FACTURE PDF VIEWER
   ============================================================ */

.panel-pdf-viewer {
    display: flex;
    flex-direction: column;
    height: 90vh;
    max-height: 900px;
}

.panel-pdf-body {
    flex: 1;
    padding: 0 !important;
    overflow: hidden;
    background-color: #525659;
}

.facture-pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #525659;
}

.facture-viewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.facture-viewer-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.facture-viewer-actions {
    display: flex;
    gap: 12px;
}

.facture-viewer-actions button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.facture-viewer-actions .panel-btn-outline {
    background: white;
    border: 2px solid;
}

.facture-viewer-actions .panel-btn-outline:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.facture-viewer-actions .panel-btn-save {
    border: none;
    color: white;
}

.facture-viewer-actions .panel-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   PANELS - Large Panels (80% width)
   ============================================================ */

.panel.panel-large {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 1200px;
    height: 100vh;
    background-color: #f8f9fa;
    box-shadow: -30px 0 100px rgba(0, 0, 0, 0);
    transform: translateX(100%);
    transition:
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 201;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.panel.panel-large.open {
    transform: translateX(0);
    box-shadow: -40px 0 100px rgba(0, 0, 0, 0.15);
}

/* Animate large panel content */
.panel.panel-large.open .panel-header {
    animation: panelContentIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

.panel.panel-large.open .panel-tabs,
.panel.panel-large.open .panel-steps {
    animation: panelContentIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.panel.panel-large.open .panel-body {
    animation: panelContentIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.panel.panel-large.open .panel-footer {
    animation: panelContentIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.panel-header {
    padding: 24px 28px;
    background-color: white;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
}

.panel-subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: #a0aec0;
}

.panel-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background-color: #f7fafc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 24px;
    font-weight: 300;
    transition: all 0.2s ease;
}

.panel-close-btn:hover {
    background-color: #edf2f7;
}

.panel-tabs {
    display: flex;
    padding: 0 28px;
    background-color: white;
    border-bottom: 1px solid #f0f0f0;
    gap: 8px;
}

.panel-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border: none;
    border-bottom: 3px solid transparent;
    background-color: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #718096;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.panel-tab:hover {
    color: #4a5568;
    background-color: rgba(0,0,0,0.02);
}

.panel-tab.active {
    border-bottom-color: currentColor;
}

.panel-body {
    animation: fadeInUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    overflow: auto;
    padding: 28px;
}

.panel-footer {
    padding: 20px 28px;
    background-color: white;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
}

.panel-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #a0aec0;
    font-size: 14px;
}

.panel-btn-cancel {
    flex: 1;
    padding: 14px;
    background-color: #f7fafc;
    color: #718096;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.panel-btn-cancel:hover {
    background-color: #edf2f7;
}

.panel-btn-save {
    flex: 2;
    padding: 14px;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.panel-btn-save:hover {
    opacity: 0.9;
}

.panel-btn-save:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.panel-btn-primary {
    padding: 12px 24px;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-btn-secondary {
    width: 100%;
    padding: 12px 16px;
    background-color: white;
    border: 1px solid;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    margin-top: 16px;
}

.panel-btn-outline {
    padding: 12px 24px;
    background-color: white;
    border: 1px solid;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-btn-text {
    padding: 10px 16px;
    background-color: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    color: #718096;
    cursor: pointer;
    font-family: inherit;
    margin-top: 20px;
}

.panel-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.panel-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-section {
    background-color: white;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
}

.panel-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.panel-section-title h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #4a5568;
}

.panel-section-icon {
    display: flex;
}

.panel-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.panel-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.panel-form-group.full {
    grid-column: span 2;
    margin-bottom: 16px;
}

.panel-label {
    font-size: 12px;
    color: #718096;
    font-weight: 500;
}

.panel-input {
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.panel-input:focus {
    border-color: #7c9885;
}

.panel-select {
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    background-color: white;
}

.panel-textarea {
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    resize: vertical;
}

.panel-textarea:focus {
    border-color: #7c9885;
}

.panel-patient-header {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
}

.panel-patient-avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    flex-shrink: 0;
}

.panel-patient-fields {
    flex: 1;
}

.panel-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.panel-stat-card {
    padding: 16px;
    border-radius: 14px;
    text-align: center;
}

.panel-stat-value {
    font-size: 24px;
    font-weight: 600;
}

.panel-stat-label {
    font-size: 11px;
    color: #718096;
    margin-top: 4px;
}

.panel-objectifs-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.panel-objectif-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.panel-objectif-item:last-child {
    border-bottom: none;
}

.panel-objectif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 8px;
}

.panel-progress-bar {
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.panel-progress-fill {
    height: 100%;
    border-radius: 3px;
}

.panel-historique-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.panel-historique-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.panel-historique-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-historique-date {
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
}

.panel-historique-type {
    font-size: 12px;
    color: #a0aec0;
}

.panel-historique-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-historique-duration {
    font-size: 12px;
    color: #718096;
}

.panel-historique-mood {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.panel-graph-card {
    background-color: white;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
}

.panel-graph-card h4 {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}

.panel-graph-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100px;
    gap: 8px;
}

.panel-graph-bar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.panel-graph-bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
}

.panel-graph-label {
    font-size: 10px;
    color: #a0aec0;
}

.panel-new-note-card {
    padding: 20px;
    border-radius: 16px;
    border: 1px solid;
}

.panel-new-note-card h4 {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #4a5568;
}

.panel-notes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panel-note-item {
    padding: 14px;
    background-color: white;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    border-left: 4px solid;
}

.panel-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.panel-note-type {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.panel-note-date {
    font-size: 12px;
    color: #a0aec0;
}

.panel-note-content {
    margin: 0;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.5;
}

.panel-upload-zone {
    padding: 32px;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
}

.panel-upload-zone:hover {
    border-color: #7c9885;
    background-color: #7c988508;
}

.panel-upload-text {
    margin: 12px 0 4px;
    font-size: 14px;
    color: #4a5568;
}

.panel-upload-hint {
    margin: 0;
    font-size: 12px;
    color: #a0aec0;
}

.panel-docs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel-doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    background-color: white;
}

.panel-doc-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-doc-icon {
    display: flex;
}

.panel-doc-name {
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
}

.panel-doc-date {
    font-size: 11px;
    color: #a0aec0;
}

.panel-doc-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-doc-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.panel-doc-btn {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: white;
    font-size: 11px;
    font-weight: 500;
    color: #718096;
    cursor: pointer;
    font-family: inherit;
}

.panel-finance-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.panel-finance-stat {
    padding: 20px;
    border-radius: 14px;
    text-align: center;
}

.panel-finance-value {
    font-size: 28px;
    font-weight: 300;
}

.panel-finance-label {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

.panel-factures-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel-facture-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.panel-facture-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.panel-facture-numero {
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 13px;
    font-weight: 600;
}

.panel-facture-date {
    font-size: 11px;
    color: #a0aec0;
}

.panel-facture-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-facture-montant {
    font-size: 15px;
    font-weight: 600;
    color: #4a5568;
}

.panel-facture-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.panel-steps {
    padding: 20px 28px;
    background-color: white;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.panel-step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.panel-step-label {
    font-size: 14px;
    color: #a0aec0;
    font-weight: 400;
}

.panel-step.active .panel-step-label {
    color: #4a5568;
    font-weight: 600;
}

.panel-step-line {
    width: 40px;
    height: 2px;
    background-color: #e2e8f0;
    margin-left: 12px;
}

.panel-facture-step1 {
    max-width: 600px;
    margin: 0 auto;
}

.panel-facture-step-title {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 600;
    color: #4a5568;
    text-align: center;
}

.panel-facture-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.panel-facture-quick-stat {
    padding: 16px;
    border-radius: 14px;
    text-align: center;
}

.panel-facture-quick-value {
    font-size: 28px;
    font-weight: 300;
}

.panel-facture-quick-label {
    font-size: 12px;
    color: #718096;
}

.panel-facture-patients-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel-facture-patient-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 14px;
    background-color: white;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.panel-facture-patient-item:hover {
    border-color: #7c988550;
    background-color: #7c988508;
}

.panel-facture-patient-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
}

.panel-facture-patient-info {
    flex: 1;
}

.panel-facture-patient-name {
    font-size: 15px;
    font-weight: 500;
    color: #4a5568;
}

.panel-facture-patient-seances {
    font-size: 13px;
    color: #a0aec0;
}

.panel-facture-patient-amount {
    font-size: 18px;
    font-weight: 600;
}

.panel-facture-patient-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.panel-facture-patient-selected h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.panel-facture-patient-selected p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #a0aec0;
}

.panel-facture-seances-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel-facture-seance-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    background-color: white;
    border: 1px solid #f0f0f0;
    cursor: pointer;
}

.panel-facture-seance-item.selected {
    border-width: 2px;
}

.panel-facture-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.panel-facture-seance-info {
    flex: 1;
}

.panel-facture-seance-date {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

.panel-facture-seance-type {
    font-size: 12px;
    color: #a0aec0;
}

.panel-facture-seance-amount {
    font-size: 16px;
    font-weight: 600;
}

.panel-facture-preview {
    padding: 24px;
    background-color: white;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
}

.panel-facture-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 24px;
}

.panel-facture-preview-label {
    font-size: 11px;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.panel-facture-preview-numero {
    font-size: 18px;
    font-weight: 600;
}

.panel-facture-preview-date {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

.panel-facture-preview-patient {
    padding: 16px;
    background-color: #fafbfc;
    border-radius: 12px;
    margin-bottom: 20px;
}

.panel-facture-preview-patient-name {
    font-size: 15px;
    font-weight: 500;
    color: #4a5568;
}

.panel-facture-preview-details {
    margin-bottom: 20px;
}

.panel-facture-preview-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.panel-facture-preview-line-type {
    font-size: 13px;
    color: #4a5568;
}

.panel-facture-preview-line-date {
    font-size: 11px;
    color: #a0aec0;
}

.panel-facture-preview-line-amount {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

.panel-facture-preview-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
}

.panel-facture-preview-total span:first-child {
    font-size: 15px;
    font-weight: 600;
    color: #4a5568;
}

.panel-facture-preview-total-amount {
    font-size: 24px;
    font-weight: 600;
}

.panel-facture-preview-options {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.panel-facture-success {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 0;
}

.panel-facture-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.panel-facture-success h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
}

.panel-facture-success p {
    margin: 0 0 32px;
    font-size: 15px;
    color: #718096;
}

.panel-facture-success-summary {
    padding: 20px;
    background-color: #fafbfc;
    border-radius: 14px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.panel-facture-success-stat-label {
    font-size: 11px;
    color: #a0aec0;
    margin-bottom: 4px;
}

.panel-facture-success-stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}

.panel-facture-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.panel-search-input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.panel-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.panel-search-input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}

.panel-patients-select-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel-patient-select-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    background-color: white;
    border: 1px solid #f0f0f0;
    border-left: 4px solid;
    cursor: pointer;
}

.panel-patient-select-item:hover {
    background-color: #f9fafb;
    transform: translateX(4px);
}

.panel-patient-select-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.panel-patient-select-info {
    flex: 1;
}

.panel-patient-select-name {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

.panel-patient-select-next {
    font-size: 12px;
    color: #a0aec0;
}

.panel-modalite-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.panel-modalite-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    color: #718096;
    font-size: 14px;
}

.panel-modalite-option.selected {
    border-width: 2px;
}

.panel-seance-en-cours {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.panel-seance-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: white;
    border-radius: 16px;
}

.panel-seance-patient-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.panel-seance-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.panel-seance-patient-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.panel-seance-patient-info p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #a0aec0;
}

.panel-seance-timer {
    text-align: center;
}

.panel-timer-value {
    font-size: 32px;
    font-weight: 300;
}

.panel-timer-label {
    font-size: 12px;
    color: #a0aec0;
    text-transform: uppercase;
}

.panel-notes-live {
    min-height: 200px;
}

.panel-objectifs-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panel-checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
}

.panel-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.panel-checkbox-item span {
    font-size: 13px;
    color: #4a5568;
}

.panel-mood-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.panel-mood-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    font-size: 13px;
    color: #718096;
}

.panel-mood-option:hover {
    border-color: #7c9885;
}

.panel-compte-rendu {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.panel-cr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: white;
    border-radius: 16px;
}

.panel-cr-patient {
    display: flex;
    align-items: center;
    gap: 16px;
}

.panel-cr-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.panel-cr-patient h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.panel-cr-patient p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #a0aec0;
}

.panel-cr-stats {
    display: flex;
    gap: 24px;
}

.panel-cr-stat {
    text-align: center;
}

.panel-cr-stat-value {
    font-size: 18px;
    font-weight: 600;
}

.panel-cr-stat-label {
    font-size: 12px;
    color: #a0aec0;
}

.panel-tags-input {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background-color: white;
}

.panel-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.panel-tags-input input {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    flex: 1;
    min-width: 100px;
}

.panel-cr-next {
    padding: 16px;
    background-color: white;
    border-radius: 14px;
    border: 1px solid #f0f0f0;
}

/* ============================================================
   VISIO PAGE - Interface de téléconsultation raffinée
   ============================================================ */

.visio-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: linear-gradient(145deg, #f8faf8 0%, #f0f4f1 100%);
    overflow: hidden;
}

/* Header */
.visio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: white;
    border-bottom: 1px solid #e8efe9;
    box-shadow: 0 2px 12px rgba(122, 158, 126, 0.06);
    z-index: 100;
}

.visio-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.visio-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: #f8faf8;
    border-radius: 12px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
}

.visio-back-btn:hover {
    background: #e8efe9;
    color: #7a9e7e;
}

.visio-session-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.visio-session-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.visio-live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.visio-session-type {
    color: #718096;
    font-size: 14px;
}

.visio-header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.visio-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f8faf8, #e8efe9);
    border-radius: 24px;
    border: 1px solid #d4e4d7;
}

.visio-timer-value {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

.visio-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.visio-header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e8efe9;
    background: white;
    border-radius: 12px;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s ease;
}

.visio-header-btn:hover {
    border-color: #7a9e7e;
    color: #7a9e7e;
    background: #f8faf8;
}

.visio-end-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #e57373, #d32f2f);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(229, 115, 115, 0.3);
}

.visio-end-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 115, 115, 0.4);
}

/* Main Content */
.visio-main {
    flex: 1;
    display: flex;
    gap: 20px;
    padding: 20px;
    overflow: hidden;
}

/* Video Section */
.visio-video-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.visio-video-main {
    flex: 1;
    position: relative;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.visio-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.visio-video-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 600;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.visio-video-name {
    color: white;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.visio-video-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.visio-connection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.visio-connection-dot.good {
    background: #4ade80;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
}

/* PiP (Picture in Picture) */
.visio-pip {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 180px;
    height: 120px;
    background: linear-gradient(135deg, #2d3748, #1a202c);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
    cursor: move;
    transition: all 0.3s ease;
    z-index: 10;
}

.visio-pip:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.visio-pip #local-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    z-index: 1;
}

.visio-pip-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d3748, #1a202c);
    z-index: 2;
}

.visio-pip-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7a9e7e, #5a7e5e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.visio-pip-label {
    position: absolute;
    bottom: 8px;
    left: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 500;
    z-index: 5;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Video Controls */
.visio-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.visio-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 16px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.visio-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.visio-control-btn.active {
    background: #7a9e7e;
}

.visio-control-btn.muted {
    background: #e57373;
}

/* Quality indicator */
.visio-quality {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
}

.visio-quality-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.visio-quality-bars .bar {
    width: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.visio-quality-bars .bar:nth-child(1) { height: 4px; }
.visio-quality-bars .bar:nth-child(2) { height: 7px; }
.visio-quality-bars .bar:nth-child(3) { height: 10px; }
.visio-quality-bars .bar:nth-child(4) { height: 14px; }

.visio-quality-bars .bar.active {
    background: #4ade80;
}

.visio-quality-bars .bar.warning {
    background: #fbbf24;
}

.visio-quality-bars .bar.error {
    background: #ef4444;
}

/* Video Elements */
.visio-remote-video,
#remote-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

/* Hidden class for placeholders */
.hidden {
    display: none !important;
}

/* Connection Status Dot */
.visio-connection-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse-dot 2s infinite;
}

.visio-connection-dot.connecting {
    background: #fbbf24;
}

.visio-connection-dot.connected {
    background: #4ade80;
    animation: none;
}

.visio-connection-dot.error {
    background: #ef4444;
    animation: none;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Control button states */
.visio-control-btn.active {
    background: #e57373;
    color: white;
}

.visio-control-btn.active:hover {
    background: #ef5350;
}

/* Mic level indicator */
.visio-control-btn.mic-btn {
    position: relative;
    overflow: visible;
}

.mic-level-ring {
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    border: 3px solid #4ade80;
    opacity: 0;
    transform: scale(1);
    transition: transform 0.05s ease-out, opacity 0.05s ease-out;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.6);
}

.visio-control-btn.active .mic-level-ring {
    display: none;
}

/* No audio available state */
.visio-control-btn.no-audio {
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.5;
    cursor: not-allowed;
}

.visio-control-btn.no-audio::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 70%;
    background: #ef4444;
    transform: rotate(45deg);
}

/* Sidebar */
.visio-sidebar {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.visio-panel {
    background: white;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 4px 20px rgba(122, 158, 126, 0.08);
    border: 1px solid #e8efe9;
}

.visio-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.visio-panel-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.visio-panel-expand {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8faf8;
    border: none;
    border-radius: 8px;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s ease;
}

.visio-panel-expand:hover {
    background: #e8efe9;
    color: #7a9e7e;
}

/* Patient Panel */
.visio-patient-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: linear-gradient(135deg, #f8faf8, #f0f4f1);
    border-radius: 14px;
    margin-bottom: 14px;
}

.visio-patient-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
}

.visio-patient-info {
    flex: 1;
}

.visio-patient-name {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
}

.visio-patient-details {
    font-size: 12px;
    color: #718096;
    margin-top: 2px;
}

.visio-patient-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.visio-meta-row {
    display: flex;
    gap: 12px;
}

.visio-meta-item {
    flex: 1;
}

.visio-meta-label {
    display: block;
    font-size: 11px;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.visio-meta-value {
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
}

.visio-patient-dossier-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: transparent;
    border: 1px solid;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.visio-patient-dossier-btn:hover {
    background: #f8faf8;
}

/* Objectives Panel */
.visio-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.visio-objectives-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.visio-objective-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: #f8faf8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.visio-objective-item:hover {
    background: #e8efe9;
}

.visio-objective-item input {
    display: none;
}

.visio-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid;
    border-radius: 5px;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.2s ease;
}

.visio-objective-item input:checked + .visio-checkbox {
    background: #7a9e7e;
    border-color: #7a9e7e;
}

.visio-objective-item input:checked + .visio-checkbox::after {
    content: '✓';
    display: block;
    color: white;
    font-size: 12px;
    text-align: center;
    line-height: 14px;
}

.visio-objective-text {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.4;
}

.visio-add-objective-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px dashed #d4e4d7;
    border-radius: 10px;
    color: #7a9e7e;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.visio-add-objective-btn:hover {
    background: #f8faf8;
    border-style: solid;
}

/* Mood Panel */
.visio-mood-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.visio-mood-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: #f8faf8;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.visio-mood-btn:hover {
    background: #e8efe9;
}

.visio-mood-btn.selected {
    border-width: 2px;
}

.visio-mood-emoji {
    font-size: 24px;
}

.visio-mood-btn span:last-child {
    font-size: 11px;
    color: #718096;
    font-weight: 500;
}

/* Bottom Section */
.visio-bottom {
    display: flex;
    gap: 16px;
    padding: 0 20px 20px;
    height: 220px;
}

.visio-notes-section,
.visio-chat-section,
.visio-tools-section {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(122, 158, 126, 0.08);
    border: 1px solid #e8efe9;
    display: flex;
    flex-direction: column;
}

.visio-notes-header,
.visio-chat-header,
.visio-tools-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.visio-notes-header h3,
.visio-chat-header h3,
.visio-tools-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.visio-notes-expand-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8faf8;
    border: none;
    border-radius: 8px;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s ease;
}

.visio-notes-expand-btn:hover {
    background: #e8efe9;
    color: #7a9e7e;
}

/* Notes Timeline */
.visio-notes-timeline {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.visio-note-item {
    display: flex;
    gap: 10px;
    padding: 8px 10px;
    background: #f8faf8;
    border-radius: 10px;
}

.visio-note-time {
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.visio-note-text {
    font-size: 12px;
    color: #4a5568;
    line-height: 1.4;
}

.visio-notes-input-wrapper {
    display: flex;
    gap: 8px;
}

.visio-notes-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e8efe9;
    border-radius: 12px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.visio-notes-input:focus {
    border-color: #7a9e7e;
    box-shadow: 0 0 0 3px rgba(122, 158, 126, 0.1);
}

.visio-notes-send-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.visio-notes-send-btn:hover {
    transform: scale(1.05);
}

/* Chat Section */
.visio-chat-badge {
    padding: 2px 8px;
    background: #e57373;
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.visio-chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.visio-chat-message {
    display: flex;
    gap: 10px;
}

.visio-chat-message.patient {
    align-self: flex-start;
}

.visio-chat-message.self {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.visio-chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.visio-chat-bubble {
    max-width: 200px;
    padding: 10px 14px;
    background: #f0f4f1;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
}

.visio-chat-message.self .visio-chat-bubble {
    color: white;
    border-radius: 16px;
    border-bottom-right-radius: 4px;
}

.visio-chat-bubble p {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.visio-chat-time {
    font-size: 10px;
    opacity: 0.7;
}

.visio-chat-input-wrapper {
    display: flex;
    gap: 8px;
}

.visio-chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e8efe9;
    border-radius: 12px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.visio-chat-input:focus {
    border-color: #7a9e7e;
    box-shadow: 0 0 0 3px rgba(122, 158, 126, 0.1);
}

.visio-chat-send-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.visio-chat-send-btn:hover {
    transform: scale(1.05);
}

/* Tools Section */
.visio-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    flex: 1;
}

.visio-tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    background: #f8faf8;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
}

.visio-tool-btn:hover {
    background: #e8efe9;
    border-color: #d4e4d7;
    color: #7a9e7e;
}

.visio-tool-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Responsive adjustments for visio */
@media (max-width: 1400px) {
    .visio-sidebar {
        width: 280px;
    }

    .visio-bottom {
        height: 200px;
    }
}

@media (max-width: 1200px) {
    .visio-main {
        flex-direction: column;
    }

    .visio-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        gap: 12px;
    }

    .visio-panel {
        min-width: 280px;
    }

    .visio-bottom {
        flex-wrap: wrap;
        height: auto;
    }

    .visio-notes-section,
    .visio-chat-section,
    .visio-tools-section {
        min-width: calc(50% - 8px);
        height: 200px;
    }
}

/* Bouton déconnexion */
.btn-logout {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #fee2e2;
    color: #dc2626;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 8px;
}
.btn-logout:hover {
    background: #dc2626;
    color: white;
}


/* Avatar Menu Dropdown */
.avatar-menu {
    position: relative;
}
.header-avatar {
    cursor: pointer;
}
.avatar-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 180px;
    padding: 8px;
    display: none;
    z-index: 1000;
}
.avatar-dropdown.show {
    display: block;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}
.dropdown-item:hover {
    background: #f5f5f5;
}
.dropdown-item.logout {
    color: #dc2626;
}
.dropdown-item.logout:hover {
    background: #fee2e2;
}
