﻿/* Transcripe Header */
.dt-header-item {
    display: flex;
    flex-direction: row;
    min-width: 0;
}

.dt-header-label {
    font-size: 17px;
    line-height: 1.2;
    margin-right: 15px;
}

.dt-header-value {
    font-size: 17px;
    line-height: 1.2;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
}

.dt-header-item--user {
    min-width: 160px;
}

.dt-header-item--patient {
    min-width: 180px;
}

.dt-header-item--language {
    min-width: 110px;
}

.dt-header-item--date {
    min-width: 185px;
}

.dt-header-status {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-right: 0;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    flex: 0 0 auto;
    min-width: 150px;
    color: var(--dt-border);
    background: var(--dt-text-muted);
}

.dt-header-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.dt-header-status.is-online .dt-header-status-dot {
    background: var(--ds-success, #16a34a);
    box-shadow: 0 0 0 6px var(--ds-success-muted, rgba(22, 163, 74, 0.10));
}

.dt-header-status.is-offline .dt-header-status-dot {
    background: var(--ds-error, #dc2626);
    box-shadow: 0 0 0 6px var(--ds-error-muted, rgba(220, 38, 38, 0.10));
}

.dt-header-status .dt-header-value {
    font-size: 16px;
}

.dt-header-status-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

@media (max-width: 1023.98px) {

    .dt-header-item {
        min-width: calc(50% - 8px);
    }

    .dt-header-status {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {

    .dt-header-item {
        min-width: 100%;
    }

    .dt-header-value {
        white-space: normal;
    }

    .dt-header-label {
        margin-right: 8px;
    }
}

/* ── Transcript Display ────────────────────────────────────────────────– */
.transcript-scroll-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.segment-card {
    border-radius: 16px;
    background: var(--ds-surface, #ffffff);
}

.live-segment-card {
    border-radius: 16px;
    background: rgba(59, 130, 246, .04);
    border-style: dashed;
}

.segment-text,
.live-segment-text {
    white-space: pre-wrap;
    line-height: 1.6;
}

.live-segment-text {
    font-style: italic;
}

.live-transcript-box {
    opacity: 0.85;
    border-style: dashed;
}

.live-transcript-text {
    font-style: italic;
}

.empty-state {
    border-radius: 20px;
    text-align: center;
    border-style: dashed;
}
 /* ── Textarea Container ────────────────────────────────────────────────– */
.trx-container {
    overflow-y: auto;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--ds-border, rgba(0, 0, 0, 0.08));
    font-family: "Inter", system-ui, sans-serif;
}

.trx-line {
    display: flex;
    gap: 12px;
    padding: 6px 4px;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.trx-row-even {
    background: transparent;
}

.trx-row-odd {
    background: rgba(0, 0, 0, 0.035);
}

.trx-time {
    font-family: monospace;
    font-weight: 600;
    color: #6366f1;
    min-width: 70px;
}

.trx-text {
    flex: 1;
    white-space: pre-wrap;
}

.trx-live {
    background: rgba(59, 130, 246, 0.06);
    border: 1px dashed rgba(59, 130, 246, 0.25);
    font-style: italic;
}


/*Mainlayout Appbar*/ 
.top-appbar {
    background: linear-gradient(90deg, #5d4df1 0%, #5b48eb 100%);
    color: white;
    height: 56px;
    min-height: 56px;
    padding-left: 12px;
    padding-right: 12px;
}

.appbar-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.appbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}

.menu-btn {
    color: white !important;
}

.app-title {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.appbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.user-email {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    white-space: nowrap;
}

.logout-btn {
    color: rgba(255, 255, 255, 0.95) !important;
    text-transform: none;
    font-weight: 500;
    min-width: unset;
    padding-left: 8px;
    padding-right: 8px;
}

.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(33, 24, 110, 0.45);
    color: white !important;
}

.appbar-right-mobile {
    display: flex;
    align-items: center;
}

.mobile-email {
    font-size: 0.9rem;
    color: var(--mud-palette-text-primary);
    max-width: 240px;
    word-break: break-word;
}

/* Small devices */
@media (max-width: 600px) {
    .top-appbar {
        padding-left: 8px;
        padding-right: 8px;
    }

    .app-title {
        font-size: 0.95rem;
    }
}

/* Dashboard */
.hero-card {
    padding: 34px 34px 28px 34px;
    border-radius: 28px;
    margin-bottom: 26px;
    background: radial-gradient(circle at top right, rgba(var(--mud-palette-primary-rgb), 0.08), transparent 28%), linear-gradient(180deg, var(--mud-palette-background) 0%, var(--mud-palette-background-grey) 100%);
    border: 1px solid var(--mud-palette-lines-default);
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.hero-title {
    color: var(--mud-palette-text-primary);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 14px;
}

.hero-subtitle {
    color: var(--mud-palette-text-secondary);
    font-weight: 400;
    line-height: 1.7;
    max-width: 650px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.hero-btn {
    min-height: 50px;
    border-radius: 14px;
    padding-left: 22px;
    padding-right: 22px;
    text-transform: none;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: none !important;
}

.hero-btn-primary {
    background: linear-gradient(90deg, var(--mud-palette-primary) 0%, var(--mud-palette-primary-darken) 100%) !important;
    color: var(--mud-palette-text-primary) !important;
}

.hero-btn-secondary {
    background: var(--mud-palette-background-grey) !important;
    border: 1px solid var(--mud-palette-lines-default) !important;
}

.hero-meta {
    color: var(--mud-palette-text-disabled);
    font-size: 0.96rem;
    line-height: 1.6;
}

/* HERO VISUAL */
.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual {
    position: relative;
    width: 100%;
    min-height: 320px;
    border-radius: 28px;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, rgba(var(--mud-palette-primary-rgb), 0.14), transparent 26%), radial-gradient(circle at 80% 30%, rgba(var(--mud-palette-secondary-rgb), 0.12), transparent 24%), linear-gradient(180deg, var(--mud-palette-background-grey) 0%, var(--mud-palette-background) 100%);
    border: 1px solid var(--mud-palette-lines-default);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.hero-visual-center {
    text-align: center;
    max-width: 310px;
    z-index: 2;
}

.doctor-avatar {
    margin: 0 auto 16px auto;
    width: 84px !important;
    height: 84px !important;
    background: linear-gradient(180deg, var(--mud-palette-primary) 0%, var(--mud-palette-primary-darken) 100%);
    color: var(--mud-palette-text-primary);
    box-shadow: 0 10px 30px rgba(var(--mud-palette-primary-rgb), 0.22);
}

.hero-visual-title {
    color: var(--mud-palette-text-primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-visual-subtitle {
    color: var(--mud-palette-text-secondary);
    line-height: 1.7;
}

.hero-floating {
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--mud-palette-background-grey);
    border: 1px solid var(--mud-palette-lines-default);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mud-palette-primary);
    box-shadow: 0 10px 30px rgba(var(--mud-palette-primary-rgb), 0.08);
    backdrop-filter: blur(6px);
}

.hero-floating-text {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--mud-palette-primary);
}

.hero-floating-top-left {
    top: 24px;
    left: 24px;
}

.hero-floating-top-right {
    top: 22px;
    right: 24px;
}

.hero-floating-right-mid {
    top: 110px;
    right: 10px;
}

.hero-floating-left-mid {
    top: 120px;
    left: 8px;
}

.wave-lines {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
    height: 40px;
}

    .wave-lines span {
        display: block;
        width: 7px;
        border-radius: 999px;
        background: linear-gradient(180deg, var(--mud-palette-primary-lighten) 0%, var(--mud-palette-primary) 100%);
        opacity: 0.9;
    }

        .wave-lines span:nth-child(1) {
            height: 14px;
        }

        .wave-lines span:nth-child(2) {
            height: 26px;
        }

        .wave-lines span:nth-child(3) {
            height: 36px;
        }

        .wave-lines span:nth-child(4) {
            height: 24px;
        }

        .wave-lines span:nth-child(5) {
            height: 16px;
        }

/* SECTION SPACING */
.section-gap {
    margin-top: 0;
    margin-bottom: 24px;
}

/* ACTION CARDS */
.action-card {
    background: #ffffff;
    border: 1px solid #eaedf8;
    border-radius: 22px;
    padding: 22px 20px;
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.clickable-card {
    cursor: pointer;
}

    .clickable-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 32px rgba(88, 73, 180, 0.10);
        border-color: #dddffd;
    }

.action-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-purple {
    background: linear-gradient(180deg, #f3efff 0%, #ede8ff 100%);
    color: #6b4eff;
}

.action-content {
    flex: 1;
}

.action-title {
    color: #1f2543;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.action-description {
    color: #727894;
    line-height: 1.65;
}


/* STATS */
.stats-grid {
    margin-bottom: 10px;
}

.stat-card {
    background: linear-gradient(180deg, #f8f9ff 0%, #f4f6fd 100%);
    border: 1px solid #e9ecf7;
    border-radius: 22px;
    padding: 22px 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-purple {
    background: linear-gradient(180deg, #efeaff 0%, #e8e2ff 100%);
    color: #6b4eff;
}

.stat-blue {
    background: linear-gradient(180deg, #eaf5ff 0%, #e2f0ff 100%);
    color: #3490ff;
}

.stat-violet {
    background: linear-gradient(180deg, #f5eefe 0%, #efe5ff 100%);
    color: #8a5cf6;
}

.stat-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    color: #626a88;
    font-weight: 500;
    line-height: 1.4;
}

.stat-number {
    color: #1e2442;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 1260px) {
    .hero-title {
        font-size: 2.4rem !important;
    }
}

@media (max-width: 960px) {
    .dashboard-page {
        padding: 16px;
    }

    .hero-card {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 22px;
    }

    .hero-visual {
        min-height: 270px;
        margin-top: 4px;
    }

    .action-card,
    .stat-card {
        border-radius: 18px;
    }
}

@media (max-width: 600px) {
    .dashboard-page {
        padding: 12px;
    }

    .hero-card {
        padding: 18px 16px;
        border-radius: 18px;
        margin-bottom: 18px;
    }

    .hero-title {
        font-size: 1.65rem !important;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 0.96rem !important;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-meta {
        font-size: 0.88rem;
    }

    .hero-visual {
        min-height: 240px;
        padding: 18px;
        border-radius: 20px;
    }

    .doctor-avatar {
        width: 72px !important;
        height: 72px !important;
    }

    .hero-floating {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .hero-floating-top-left {
        top: 16px;
        left: 16px;
    }

    .hero-floating-top-right {
        top: 16px;
        right: 16px;
    }

    .hero-floating-right-mid {
        top: 96px;
        right: 8px;
    }

    .hero-floating-left-mid {
        top: 100px;
        left: 8px;
    }

    .action-card,
    .stat-card {
        padding: 18px 16px;
        border-radius: 16px;
        gap: 14px;
    }

    .action-icon,
    .stat-icon {
        width: 52px;
        height: 52px;
        min-width: 52px;
        border-radius: 14px;
    }

    .section-gap {
        margin-bottom: 18px;
    }
}