/* ===================================================
   VIRTUAL CONSULTATION - SOFT UI
   Neumorphic + Glassmorphic Design
   =================================================== */

/* === Shell === */
.vc-shell {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
    height: 100%;
    overflow-y: auto;
    background: linear-gradient(135deg, #e2e6ee, #edf0f5, #e4e8f0);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* === Header Card === */
.vc-header-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    box-shadow: 6px 6px 14px rgba(163, 177, 198, 0.35),
                -6px -6px 14px rgba(255, 255, 255, 0.65);
}

.vc-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.12);
    box-shadow: 3px 3px 8px rgba(163, 177, 198, 0.3),
                -3px -3px 8px rgba(255, 255, 255, 0.6);
}

.vc-header-icon .material-icons {
    font-size: 26px;
    color: #3b82f6;
}

.vc-header-text {
    flex: 1;
}

.vc-header-text h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a2332;
}

.vc-header-text p {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: #5a6a7e;
}

.vc-header-actions {
    display: flex;
    gap: 0.5rem;
}

/* === Buttons === */
.vc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.45);
    color: #364152;
    box-shadow: 3px 3px 8px rgba(163, 177, 198, 0.3),
                -3px -3px 8px rgba(255, 255, 255, 0.6);
}

.vc-btn:hover {
    box-shadow: 6px 6px 14px rgba(163, 177, 198, 0.35),
                -6px -6px 14px rgba(255, 255, 255, 0.65);
    transform: translateY(-1px);
}

.vc-btn:active {
    box-shadow: inset 2px 2px 5px rgba(163, 177, 198, 0.4),
                inset -2px -2px 5px rgba(255, 255, 255, 0.6);
    transform: translateY(0);
}

.vc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.vc-btn-ghost {
    background: transparent;
    box-shadow: none;
    border-color: transparent;
    color: #5a6a7e;
    padding: 0.5rem;
    border-radius: 12px;
}

.vc-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 3px 3px 8px rgba(163, 177, 198, 0.3),
                -3px -3px 8px rgba(255, 255, 255, 0.6);
}

.vc-btn-accent {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}

.vc-btn-accent:hover {
    background: rgba(59, 130, 246, 0.22);
}

.vc-btn-call {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.2);
}

.vc-btn-call:hover {
    background: rgba(16, 185, 129, 0.25);
}

.vc-btn-send-link {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.18);
}

.vc-btn-send-link:hover {
    background: rgba(59, 130, 246, 0.2);
}

.vc-btn-complete {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.2);
}

.vc-btn-complete:hover {
    background: rgba(245, 158, 11, 0.22);
}

.vc-btn-complete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vc-btn-full {
    width: 100%;
    justify-content: center;
}

.vc-btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.4);
    color: #5a6a7e;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 3px 3px 8px rgba(163, 177, 198, 0.3),
                -3px -3px 8px rgba(255, 255, 255, 0.6);
}

.vc-btn-icon:hover {
    color: #3b82f6;
    box-shadow: 6px 6px 14px rgba(163, 177, 198, 0.35),
                -6px -6px 14px rgba(255, 255, 255, 0.65);
}

.vc-btn-icon:active {
    box-shadow: inset 2px 2px 5px rgba(163, 177, 198, 0.4),
                inset -2px -2px 5px rgba(255, 255, 255, 0.6);
}

.vc-btn-icon .material-icons {
    font-size: 18px;
}

.vc-btn-icon-call {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.15);
}

.vc-btn-icon-call:hover {
    background: rgba(16, 185, 129, 0.22);
    color: #059669;
}

/* === Action Cards Row === */
.vc-action-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.vc-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 6px 6px 14px rgba(163, 177, 198, 0.35),
                -6px -6px 14px rgba(255, 255, 255, 0.65);
}

.vc-action-card:hover {
    box-shadow: 8px 8px 18px rgba(163, 177, 198, 0.4),
                -8px -8px 18px rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.vc-action-card:active {
    box-shadow: inset 2px 2px 5px rgba(163, 177, 198, 0.4),
                inset -2px -2px 5px rgba(255, 255, 255, 0.6);
    transform: translateY(0);
}

.vc-action-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 3px 3px 8px rgba(163, 177, 198, 0.3),
                -3px -3px 8px rgba(255, 255, 255, 0.6);
}

.vc-icon-blue {
    background: rgba(59, 130, 246, 0.12);
}

.vc-icon-blue .material-icons {
    color: #3b82f6;
    font-size: 22px;
}

.vc-icon-green {
    background: rgba(16, 185, 129, 0.12);
}

.vc-icon-green .material-icons {
    color: #10b981;
    font-size: 22px;
}

.vc-action-body {
    flex: 1;
    min-width: 0;
}

.vc-action-body h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a2332;
}

.vc-action-body p {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    color: #5a6a7e;
}

.vc-action-arrow {
    color: #b0bac8;
    font-size: 16px;
    transition: transform 0.2s;
}

.vc-action-card:hover .vc-action-arrow {
    transform: translateX(3px);
    color: #3b82f6;
}

/* === Join Card === */
.vc-join-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 6px 6px 14px rgba(163, 177, 198, 0.35),
                -6px -6px 14px rgba(255, 255, 255, 0.65);
}

.vc-join-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.vc-join-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a2332;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vc-join-header h4 .material-icons {
    color: #3b82f6;
    font-size: 20px;
}

.vc-join-body {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* === Input === */
.vc-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: rgba(228, 232, 240, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    box-shadow: inset 2px 2px 5px rgba(163, 177, 198, 0.4),
                inset -2px -2px 5px rgba(255, 255, 255, 0.6);
    transition: all 0.25s ease;
}

.vc-input-wrap:focus-within {
    background: rgba(255, 255, 255, 0.45);
    box-shadow: inset 2px 2px 5px rgba(163, 177, 198, 0.4),
                inset -2px -2px 5px rgba(255, 255, 255, 0.6),
                0 0 0 3px rgba(59, 130, 246, 0.12);
}

.vc-input-wrap .material-icons {
    color: #8a96a8;
    font-size: 20px;
    flex-shrink: 0;
}

.vc-input-wrap input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 0.9rem;
    color: #1a2332;
    font-family: inherit;
}

.vc-input-wrap input::placeholder {
    color: #8a96a8;
}

/* === Search === */
.vc-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    background: rgba(228, 232, 240, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: inset 2px 2px 5px rgba(163, 177, 198, 0.4),
                inset -2px -2px 5px rgba(255, 255, 255, 0.6);
    transition: all 0.25s ease;
    min-width: 200px;
}

.vc-search-wrap:focus-within {
    background: rgba(255, 255, 255, 0.45);
    box-shadow: inset 2px 2px 5px rgba(163, 177, 198, 0.4),
                inset -2px -2px 5px rgba(255, 255, 255, 0.6),
                0 0 0 3px rgba(59, 130, 246, 0.12);
}

.vc-search-wrap .material-icons {
    color: #8a96a8;
    font-size: 18px;
    flex-shrink: 0;
}

.vc-search-wrap input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 0.82rem;
    color: #1a2332;
    font-family: inherit;
    min-width: 0;
}

.vc-search-wrap input::placeholder {
    color: #8a96a8;
}

/* === Toast === */
.vc-toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-radius: 14px;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: vc-toast-in 0.3s ease;
}

.vc-toast-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.2);
    color: #059669;
    box-shadow: 3px 3px 8px rgba(163, 177, 198, 0.3),
                -3px -3px 8px rgba(255, 255, 255, 0.6);
}

.vc-toast .material-icons {
    font-size: 20px;
    flex-shrink: 0;
}

.vc-toast span {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
}

@keyframes vc-toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Patients Card === */
.vc-patients-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    box-shadow: 6px 6px 14px rgba(163, 177, 198, 0.35),
                -6px -6px 14px rgba(255, 255, 255, 0.65);
    overflow: hidden;
}

.vc-patients-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(228, 232, 240, 0.3);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.vc-patients-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vc-patients-title .material-icons {
    font-size: 20px;
    color: #3b82f6;
}

.vc-patients-title h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a2332;
}

.vc-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    font-size: 0.75rem;
    font-weight: 700;
}

/* === Loading & Empty === */
.vc-loading,
.vc-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #5a6a7e;
}

.vc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(228, 232, 240, 0.7);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: vc-spin-anim 0.8s linear infinite;
    margin: 0 auto 1rem;
}

.vc-empty .material-icons {
    font-size: 56px;
    color: #b0bac8;
    margin-bottom: 0.75rem;
}

.vc-empty h4 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #1a2332;
}

.vc-empty p {
    margin: 0;
    font-size: 0.85rem;
}

.vc-spin {
    animation: vc-spin-anim 1s linear infinite;
}

@keyframes vc-spin-anim {
    100% { transform: rotate(360deg); }
}

/* === Patient List === */
.vc-patient-list {
    padding: 0.5rem;
}

.vc-patient-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.vc-patient-row:hover {
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 3px 3px 8px rgba(163, 177, 198, 0.25),
                -3px -3px 8px rgba(255, 255, 255, 0.5);
}

.vc-patient-row.vc-selected {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: inset 2px 2px 5px rgba(163, 177, 198, 0.2),
                inset -2px -2px 5px rgba(255, 255, 255, 0.4);
}

.vc-patient-row.vc-urgent {
    border-left: 3px solid #f59e0b;
}

.vc-patient-row.vc-selected.vc-urgent {
    border-left: 3px solid #f59e0b;
}

/* Avatar */
.vc-patient-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.12);
    flex-shrink: 0;
    box-shadow: 3px 3px 8px rgba(163, 177, 198, 0.3),
                -3px -3px 8px rgba(255, 255, 255, 0.6);
}

.vc-patient-avatar .material-icons {
    font-size: 22px;
    color: #3b82f6;
}

/* Info */
.vc-patient-info {
    flex: 1;
    min-width: 0;
}

.vc-patient-name-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.2rem;
}

.vc-patient-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: #1a2332;
}

.vc-patient-id {
    font-size: 0.75rem;
    color: #5a6a7e;
    background: rgba(228, 232, 240, 0.6);
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
}

.vc-patient-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: #5a6a7e;
}

.vc-meta {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.vc-meta .material-icons {
    font-size: 14px;
}

.vc-meta-complaint {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Badges */
.vc-priority-badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.35rem;
}

.vc-priority-urgent {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.vc-priority-stat {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.vc-link-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.5rem;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 500;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    margin-top: 0.35rem;
    margin-left: 0.5rem;
}

.vc-link-badge .material-icons {
    font-size: 12px;
}

/* Patient Actions */
.vc-patient-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* === Selected Panel === */
.vc-selected-panel {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 6px 6px 14px rgba(163, 177, 198, 0.35),
                -6px -6px 14px rgba(255, 255, 255, 0.65);
}

.vc-selected-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.vc-selected-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.12);
    box-shadow: 3px 3px 8px rgba(163, 177, 198, 0.3),
                -3px -3px 8px rgba(255, 255, 255, 0.6);
}

.vc-selected-avatar .material-icons {
    font-size: 26px;
    color: #3b82f6;
}

.vc-selected-info {
    flex: 1;
}

.vc-selected-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2332;
}

.vc-selected-id {
    font-size: 0.8rem;
    color: #5a6a7e;
}

/* Details */
.vc-selected-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.vc-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.vc-detail-item > .material-icons {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(228, 232, 240, 0.5);
    color: #3b82f6;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 2px 2px 6px rgba(163, 177, 198, 0.25),
                -2px -2px 6px rgba(255, 255, 255, 0.5);
}

.vc-detail-item div {
    flex: 1;
}

.vc-detail-item label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8a96a8;
    margin-bottom: 0.15rem;
}

.vc-detail-item span {
    font-size: 0.88rem;
    color: #1a2332;
    font-weight: 500;
}

/* Actions */
.vc-selected-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* === Responsive === */
@media (max-width: 768px) {
    .vc-shell {
        padding: 1rem;
        gap: 1rem;
    }

    .vc-action-row {
        grid-template-columns: 1fr;
    }

    .vc-join-body {
        flex-direction: column;
    }

    .vc-btn-accent {
        width: 100%;
        justify-content: center;
    }

    .vc-patients-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .vc-search-wrap {
        width: 100%;
    }

    .vc-patient-row {
        flex-wrap: wrap;
    }

    .vc-patient-actions {
        width: 100%;
        margin-top: 0.5rem;
    }

    .vc-btn-call {
        flex: 1;
        justify-content: center;
    }
}

/* === Focus / Accessibility === */
.vc-shell *:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

.vc-shell button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
