/* /Components/Common/AiChatPanel.razor.rz.scp.css */
/* ============================================
   AiChatPanel — iOS Style
   ============================================ */

.ai-chat-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

.ai-chat-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border: none;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-ios);
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 2;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--color-primary) 30%, transparent);
}

.ai-chat-btn:hover {
    transform: scale(1.06);
}

.ai-chat-btn:active {
    transform: scale(0.95);
}

.ai-chat-window {
    position: absolute;
    bottom: 68px;
    right: 0;
    width: 360px;
    height: 520px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.97);
    transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 1;
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-float);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.ai-chat-panel.open .ai-chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

@keyframes voicyPulse-b-ihxnd1t3dd {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary) 40%, transparent); transform: scale(1); }
    70% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--color-primary) 0%, transparent); transform: scale(1.04); }
    100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary) 0%, transparent); transform: scale(1); }
}



.voicy-btn:hover {
    transform: scale(1.08);
}

.voicy-icon {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0px 1px 3px rgba(0,0,0,0.15));
}

@media (max-width: 639px) {
    .ai-chat-panel {
        bottom: 16px;
        right: 16px;
    }

    .ai-chat-window {
        width: calc(100vw - 32px);
        right: -4px;
        height: calc(100vh - 120px);
        max-height: 600px;
        border-radius: var(--radius-xl);
    }
}
/* /Components/Layout/LandingLayout.razor.rz.scp.css */
/* ============================================
   Landing Layout — iOS Style
   ============================================ */

.landing-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--color-background) !important;
    color: var(--color-text-primary) !important;
    font-family: var(--font-family);
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg-thick) !important;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--color-separator);
}

.landing-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-logo img {
    height: 36px;
    object-fit: contain;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background-color: var(--color-surface) !important;
    color: var(--color-text-primary) !important;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-fast);
    min-height: var(--touch-target-min);
}

.btn-login:hover {
    background-color: var(--color-fill-tertiary) !important;
    border-color: var(--color-border-strong);
}

.landing-main {
    flex: 1;
}

.landing-footer {
    background-color: var(--color-surface) !important;
    border-top: 1px solid var(--color-separator);
    padding: 28px 24px;
    text-align: center;
}

.landing-footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.landing-footer p {
    color: var(--color-text-tertiary) !important;
    font-size: var(--font-size-sm);
    margin: 0;
}

@media (max-width: 639px) {
    .landing-header-container {
        padding: 12px 16px;
    }
    
    .landing-logo img {
        height: 28px;
    }

    .btn-login {
        padding: 8px 16px;
        font-size: var(--font-size-xs);
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* ============================================
   ReconnectModal — iOS Style
   ============================================ */

.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-pause-visible,
.components-resume-failed-visible,
.components-rejoining-animation {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
#components-reconnect-modal.components-reconnect-retrying,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
    display: block;
}

#components-reconnect-modal {
    display: none !important;
    background-color: var(--color-surface);
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-float);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-cyi2212yb1 0.5s both;
    &[open] {
        animation: components-reconnect-modal-slideUp-b-cyi2212yb1 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-cyi2212yb1 0.5s ease-in-out 0.3s;
        animation-fill-mode: both;
    }
}

#components-reconnect-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: components-reconnect-modal-fadeInOpacity-b-cyi2212yb1 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-cyi2212yb1 {
    0% { transform: translateY(30px) scale(0.95); }
    100% { transform: translateY(0); }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-cyi2212yb1 {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-cyi2212yb1 {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.components-reconnect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p {
    margin: 0;
    text-align: center;
    color: var(--color-text-primary);
    font-family: var(--font-family);
}

#components-reconnect-modal button {
    border: 0;
    background-color: var(--color-primary);
    color: white;
    padding: 8px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: var(--touch-target-min);
}

#components-reconnect-modal button:hover {
    background-color: var(--color-primary-hover);
}

#components-reconnect-modal button:active {
    transform: scale(0.97);
}

.components-rejoining-animation {
    position: relative;
    width: 80px;
    height: 80px;
}

.components-rejoining-animation div {
    position: absolute;
    border: 3px solid var(--color-primary);
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation-b-cyi2212yb1 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes components-rejoining-animation-b-cyi2212yb1 {
    0% { top: 40px; left: 40px; width: 0; height: 0; opacity: 0; }
    4.9% { top: 40px; left: 40px; width: 0; height: 0; opacity: 0; }
    5% { top: 40px; left: 40px; width: 0; height: 0; opacity: 1; }
    100% { top: 0; left: 0; width: 80px; height: 80px; opacity: 0; }
}
/* /Components/Pages/Client/AiChat.razor.rz.scp.css */
/* ============================================
   AiChat — iOS Style Typing Indicator
   ============================================ */

.typing-indicator span {
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: var(--color-text-tertiary);
    border-radius: 50%;
    margin-right: 4px;
    animation: typing-b-hjnl7luv2k 1.4s infinite both;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-b-hjnl7luv2k {
    0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}
/* /Components/Pages/Client/AiSettings.razor.rz.scp.css */
/* ============================================
   AI Settings — iOS Settings Style
   ============================================ */

.ios-settings-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.ios-page-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.5px;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.ios-page-subtitle {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    margin-bottom: 28px;
}

.ios-section {
    margin-bottom: 28px;
}

.ios-section-header {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-left: 16px;
    margin-bottom: 8px;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.5px;
}

.ios-section-footer {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    margin-left: 16px;
    margin-right: 16px;
    margin-top: 8px;
    line-height: 1.4;
}

.ios-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.ios-card-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-separator);
}

.ios-card-item:last-child {
    border-bottom: none;
}

.ios-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

 .ios-textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid var(--color-border-strong) !important;
    border-radius: var(--radius-md) !important;
    resize: vertical;
    font-size: var(--font-size-base) !important;
    line-height: 1.6 !important;
    color: var(--color-text-primary) !important;
    background-color: var(--color-fill-tertiary) !important;
    padding: 14px 16px !important;
    font-family: var(--font-family) !important;
    transition: all var(--transition-fast);
}

 .ios-textarea:focus {
    outline: none !important;
    border-color: var(--color-primary) !important;
    background-color: var(--color-surface) !important;
    box-shadow: 0 0 0 3px var(--color-primary-light) !important;
}

.ios-button {
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    width: 100%;
    cursor: pointer;
    transition: all var(--transition-ios);
    min-height: var(--touch-target-min);
}

.ios-button:hover {
    background-color: var(--color-primary-hover);
}

.ios-button:active {
    transform: scale(0.98);
}

.ios-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ios-icon-wrapper {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-icon-voicy {
    background-color: var(--color-indigo);
}

.ios-icon-analysis {
    background-color: var(--color-pink);
}

.ios-warning-alert {
    background-color: var(--color-warning-light);
    color: var(--color-warning);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: var(--font-size-sm);
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

@media (max-width: 639px) {
    .ios-settings-container {
        padding: 12px;
    }

    .ios-card-item {
        padding: 12px 14px;
    }
}
/* /Components/Pages/Client/AssistantDetails.razor.rz.scp.css */
/* ============================================
   AssistantDetails — iOS Style
   ============================================ */

.ad-container {
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease-out;
}

.ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-separator);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.ad-title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    letter-spacing: -0.5px;
}

.ad-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
}

@media (max-width: 1024px) {
    .ad-grid {
        grid-template-columns: 1fr;
    }
}

.ad-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.ad-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.ad-card:hover {
    box-shadow: var(--shadow-md);
}

.ad-card-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-card-title::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
}

.ad-info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-separator);
    font-size: var(--font-size-base);
}

.ad-info-row:last-child {
    border-bottom: none;
}

.ad-info-label {
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-regular);
}

.ad-info-val {
    color: var(--color-text-primary);
    font-weight: var(--font-weight-medium);
    text-align: right;
}

.ad-prompt-box {
    background: var(--color-fill-tertiary);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    font-family: 'SF Mono', 'Fira Code', 'Menlo', monospace;
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: var(--color-text-primary);
    white-space: pre-wrap;
    max-height: 600px;
    overflow-y: auto;
}

.ad-prompt-box::-webkit-scrollbar {
    width: 4px;
}
.ad-prompt-box::-webkit-scrollbar-thumb {
    background: var(--color-text-quaternary);
    border-radius: 10px;
}

@media (max-width: 639px) {
    .ad-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .ad-info-val {
        text-align: left;
    }

    .ad-card {
        padding: var(--spacing-md);
    }
}
/* /Components/Pages/Client/CallDetails.razor.rz.scp.css */
/* ============================================
   CallDetails — iOS Style Scoped Styles
   iMessage chat + Apple Music player
   ============================================ */

.cd-container {
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease-out;
}

.cd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-separator);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.cd-title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    letter-spacing: -0.5px;
}

.cd-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-xl);
}

@media (max-width: 1200px) {
    .cd-grid {
        grid-template-columns: 1fr;
    }
}

.cd-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.cd-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.cd-card:hover {
    box-shadow: var(--shadow-md);
}

.cd-card-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cd-card-title::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
}

/* ── Info Rows — iOS Settings Style ── */
.cd-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-separator);
    font-size: var(--font-size-base);
}

.cd-info-row:last-child {
    border-bottom: none;
}

.cd-info-label {
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-regular);
}

.cd-info-val {
    color: var(--color-text-primary);
    font-weight: var(--font-weight-medium);
    text-align: right;
}

@media (max-width: 480px) {
    .cd-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .cd-info-val {
        text-align: left;
    }
}

/* ── Audio Player — Apple Music Style ── */
.cd-audio-wrapper {
    background: linear-gradient(145deg, var(--color-surface-elevated), var(--color-surface));
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .cd-audio-wrapper {
    background: linear-gradient(145deg, #2C2C2E, #1C1C1E);
    border-color: rgba(255,255,255,0.08);
}

.cd-audio {
    width: 100%;
    height: 40px;
    outline: none;
    border-radius: var(--radius-sm);
}

[data-theme="dark"] .cd-audio {
    filter: invert(1) hue-rotate(180deg) brightness(0.85);
}

.cd-audio-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--spacing-xs);
}

/* ── No Data State ── */
.cd-no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    text-align: center;
    color: var(--color-text-tertiary);
    font-size: var(--font-size-sm);
    background: var(--color-fill-tertiary);
    border-radius: var(--radius-md);
    border: 1px dashed var(--color-border);
}

.cd-no-data-icon {
    font-size: 24px;
    opacity: 0.4;
}

/* ── Variables / Erfasste Daten ── */
.cd-vars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.cd-var-card {
    background: var(--color-fill-tertiary);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cd-var-card:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.cd-var-card.empty {
    opacity: 0.5;
}

.cd-var-card.empty:hover {
    opacity: 0.7;
    border-color: var(--color-border-strong);
    background: var(--color-fill-tertiary);
}

.cd-var-name {
    font-size: var(--font-size-2xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-text-tertiary);
}

.cd-var-value {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    line-height: 1.4;
    word-break: break-word;
}

.cd-var-empty {
    color: var(--color-text-tertiary);
    font-weight: var(--font-weight-regular);
}

/* Legacy pill style */
.cd-var-pill {
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.cd-var-val {
    color: var(--color-text-primary);
    font-weight: var(--font-weight-regular);
}

/* ── Evaluation / Auswertung ── */
.cd-eval-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.cd-eval-item {
    background: var(--color-fill-tertiary);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    border-left: 3px solid var(--color-border-strong);
    transition: all var(--transition-fast);
}

.cd-eval-item:hover {
    transform: translateX(3px);
    box-shadow: var(--shadow-sm);
}

.cd-eval-item.success {
    border-left-color: var(--color-success);
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.06), transparent);
}

.cd-eval-item.fail {
    border-left-color: var(--color-danger);
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.06), transparent);
}

.cd-eval-item.neutral {
    border-left-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.06), transparent);
}

.cd-eval-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.cd-eval-icon {
    font-size: 15px;
    flex-shrink: 0;
}

.cd-eval-title {
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
}

.cd-eval-desc {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    margin-left: 23px;
    line-height: 1.5;
}

.cd-eval-result {
    margin-left: 23px;
}

.cd-eval-text-value {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    background: var(--color-surface);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    display: inline-block;
    word-break: break-word;
    max-width: 100%;
}

/* Legacy eval box */
.cd-eval-box {
    background: var(--color-fill-tertiary);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 10px;
    border-left: 3px solid var(--color-primary);
}

.cd-eval-box.success {
    border-left-color: var(--color-success);
}
.cd-eval-box.fail {
    border-left-color: var(--color-danger);
}

/* ── Type Badges ── */
.type-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
}

.type-inbound {
    background: var(--color-success-light);
    color: var(--color-success);
}

.type-outbound {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.type-transfer {
    background: var(--color-warning-light);
    color: var(--color-warning);
}

.type-default {
    background: var(--color-fill);
    color: var(--color-text-secondary);
}

/* ════════════════════════════════════════════
   Chat Styles — iMessage Style
   ════════════════════════════════════════════ */
.cd-chat-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 800px;
    overflow-y: auto;
    padding-right: 8px;
}

.cd-chat-container::-webkit-scrollbar {
    width: 4px;
}
.cd-chat-container::-webkit-scrollbar-thumb {
    background: var(--color-text-quaternary);
    border-radius: 10px;
}

.cd-msg {
    display: flex;
    flex-direction: column;
    max-width: 92%;
    animation: slideUp 0.3s ease-out;
}

.cd-msg.ai {
    align-self: flex-start;
}

.cd-msg.user {
    align-self: flex-end;
}

.cd-msg-header {
    font-size: var(--font-size-2xs);
    color: var(--color-text-tertiary);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cd-msg.user .cd-msg-header {
    flex-direction: row-reverse;
}

/* iMessage-style bubbles */
.cd-bubble {
    padding: 12px 16px;
    border-radius: 20px;
    font-size: var(--font-size-base);
    line-height: 1.45;
}

.cd-msg.ai .cd-bubble {
    background: var(--color-fill);
    color: var(--color-text-primary);
    border-bottom-left-radius: 4px;
}

.cd-msg.user .cd-bubble {
    background: var(--color-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.cd-bubble::selection,
.cd-bubble *::selection {
    background: #000000 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .cd-msg.ai .cd-bubble {
    background: var(--color-surface-elevated);
}

.cd-empty {
    text-align: center;
    padding: 40px;
    color: var(--color-text-tertiary);
    font-size: var(--font-size-sm);
}
/* /Components/Pages/Home.razor.rz.scp.css */
/* ============================================
   VoiceBoard PRO MAX — Deep Space Purple/Blue
   ============================================ */

.pro-landing {
    --brand-blue: #3b82f6;
    --brand-blue-glow: rgba(59, 130, 246, 0.5);
    --brand-purple: #8b5cf6;
    --brand-purple-glow: rgba(139, 92, 246, 0.5);
    
    --bg-dark: #030014;
    --glass-surface: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-highlight: rgba(139, 92, 246, 0.3);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    background-color: var(--bg-dark) !important;
    color: var(--text-main) !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    position: relative;
    padding-bottom: 100px;
    transition: background-color 0.3s, color 0.3s;
}

html[data-theme="light"] .pro-landing {
    --bg-dark: #f8fafc;
    --glass-surface: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 1);
    --glass-border-highlight: rgba(139, 92, 246, 0.5);
    
    --text-main: #0f172a;
    --text-muted: #475569;
}

/* Custom Dark Header */
.dark-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: rgba(3, 0, 20, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
}

.dark-header img {
    height: 32px;
    filter: brightness(0) invert(1); /* Makes the logo white */
}

.dark-header .btn-login {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 20px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.dark-header .btn-login:hover {
    background: white;
    color: black;
}

html[data-theme="light"] .pro-landing .dark-header {
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

html[data-theme="light"] .pro-landing .dark-header img {
    filter: none;
}

html[data-theme="light"] .pro-landing .dark-header .btn-login {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(226, 232, 240, 1);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .pro-landing .dark-header .btn-login:hover {
    background: #f1f5f9;
    color: black;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-right: 16px;
    padding: 0;
}

.theme-toggle:hover {
    background: white;
    color: black;
}

html[data-theme="light"] .pro-landing .theme-toggle {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 1);
    color: #6366f1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .pro-landing .theme-toggle:hover {
    background: #f1f5f9;
    color: #4f46e5;
    transform: scale(1.1) rotate(15deg);
}

html[data-theme="light"] .pro-landing .glow-purple {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
}

html[data-theme="light"] .pro-landing .glow-blue {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
}

/* Background Ambient Orbs */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    animation: orbFloat-b-foq60tskvx 15s infinite alternate ease-in-out;
}

.glow-purple {
    top: -5%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
}

.glow-blue {
    bottom: 0%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    animation-delay: -7s;
    animation-duration: 20s;
}

@keyframes orbFloat-b-foq60tskvx {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    33% { transform: translate(5vw, 5vh) scale(1.1); opacity: 0.8; }
    66% { transform: translate(-3vw, 8vh) scale(0.9); opacity: 0.6; }
    100% { transform: translate(-5vw, -2vh) scale(1.05); opacity: 0.7; }
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

/* Typography */
.text-gradient {
    background: linear-gradient(to right, #a78bfa, #60a5fa, #a78bfa);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: gradientShine-b-foq60tskvx 4s linear infinite;
}

@keyframes gradientShine-b-foq60tskvx {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Hero Section */
.hero-section {
    padding: 180px 0 100px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a78bfa;
    margin-bottom: 32px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    animation: subtleFloat-b-foq60tskvx 3s ease-in-out infinite alternate;
}

html[data-theme="light"] .pro-landing .hero-badge {
    background: #ffffff;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.12);
    color: #7c3aed;
}

@keyframes subtleFloat-b-foq60tskvx {
    from { transform: translateY(0px); }
    to { transform: translateY(-8px); }
}

.hero-title {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.btn-pro {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-blue) 100%);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
    animation: pulse-glow-btn-b-foq60tskvx 3s infinite alternate ease-in-out;
}

.btn-pro::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    animation: shine-btn-b-foq60tskvx 4s infinite cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes shine-btn-b-foq60tskvx {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

@keyframes pulse-glow-btn-b-foq60tskvx {
    0% { box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3); transform: scale(1); }
    100% { box-shadow: 0 15px 35px rgba(59, 130, 246, 0.6); transform: scale(1.01); }
}

.btn-pro:hover {
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.8) !important;
    color: white;
}

.btn-pro i, .btn-pro svg {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-pro:hover i, .btn-pro:hover svg {
    transform: translateX(4px) scale(1.1);
}

/* Glass Panels (Features) */
.glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.glass-card {
    background: var(--glass-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.hide-initial {
    opacity: 0 !important;
    transform: translateY(100px) !important;
}

.glass-card.animate-up {
    animation: fadeUp-b-foq60tskvx 1.2s cubic-bezier(0.23, 1, 0.32, 1) backwards;
}

/* Stagger card animations based on order */
.glass-card.animate-up:nth-child(1) { animation-delay: 0.1s; }
.glass-card.animate-up:nth-child(2) { animation-delay: 0.25s; }
.glass-card.animate-up:nth-child(3) { animation-delay: 0.4s; }
.glass-card.animate-up:nth-child(4) { animation-delay: 0.55s; }
.glass-card.animate-up:nth-child(5) { animation-delay: 0.7s; }
.glass-card.animate-up:nth-child(6) { animation-delay: 0.85s; }

@keyframes fadeUp-b-foq60tskvx {
    0% { opacity: 0; transform: translateY(100px); }
    100% { opacity: 1; transform: translateY(0); }
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
    border-color: var(--glass-border-highlight);
    z-index: 100;
}

html[data-theme="light"] .pro-landing .glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.65) 100%);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04), 0 0 0 1px rgba(255, 255, 255, 1) inset;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

html[data-theme="light"] .pro-landing .glass-card:hover {
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.08), 0 0 0 1px rgba(255, 255, 255, 1) inset;
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-8px) scale(1.02);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #a78bfa;
    margin-bottom: 24px;
    transition: transform 0.3s;
}

.glass-card:hover .card-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-blue) 100%);
    color: white;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.card-desc {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.05rem;
}

.card-list {
    margin-top: 24px;
    list-style: none;
    padding: 0;
}

.card-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card-list li i {
    color: #a78bfa;
    font-size: 1.1rem;
}

/* Section Title */
.pro-section-title {
    text-align: center;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.pro-section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 60px;
}

/* ============================================
   Hover Popups (Details)
   ============================================ */
.card-popup {
    position: absolute;
    width: 450px;
    background: #1e293b; /* Distinct solid background */
    border: 1px solid var(--glass-border-highlight);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

html[data-theme="light"] .pro-landing .card-popup {
    background: #f5f3ff; /* Distinct tinted solid background for light mode */
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.popup-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .pro-landing .popup-image {
    border-color: rgba(0,0,0,0.05);
}

.popup-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}
.popup-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.popup-connector {
    position: absolute;
    background: linear-gradient(90deg, var(--brand-purple), var(--brand-blue));
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
}

/* POPUP RIGHT */
.popup-right {
    top: 50%;
    left: 100%;
    transform: translateY(-50%) translateX(10px) scale(0.95);
}
.glass-card:hover .popup-right {
    opacity: 1;
    transform: translateY(-50%) translateX(40px) scale(1);
}
.popup-right .popup-connector {
    top: 50%;
    right: 100%;
    height: 3px;
    width: 0px;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}
.glass-card:hover .popup-right .popup-connector {
    width: 40px;
    opacity: 1;
}

/* POPUP LEFT */
.popup-left {
    top: 50%;
    right: 100%;
    transform: translateY(-50%) translateX(-10px) scale(0.95);
}
.glass-card:hover .popup-left {
    opacity: 1;
    transform: translateY(-50%) translateX(-40px) scale(1);
}
.popup-left .popup-connector {
    top: 50%;
    left: 100%;
    height: 3px;
    width: 0px;
    transform: translateY(-50%);
    background: linear-gradient(270deg, var(--brand-purple), var(--brand-blue));
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}
.glass-card:hover .popup-left .popup-connector {
    width: 40px;
    opacity: 1;
}

/* POPUP BOTTOM (For middle cards) */
.popup-bottom {
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.95);
}
.glass-card:hover .popup-bottom {
    opacity: 1;
    transform: translateX(-50%) translateY(40px) scale(1);
}
.popup-bottom .popup-connector {
    bottom: 100%;
    left: 50%;
    width: 3px;
    height: 0px;
    transform: translateX(-50%);
    background: linear-gradient(0deg, var(--brand-purple), var(--brand-blue));
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}
.glass-card:hover .popup-bottom .popup-connector {
    height: 40px;
    opacity: 1;
}

@media (max-width: 1200px) {
    .card-popup {
        display: none !important;
    }
}

/* ============================================
   Mobile Responsiveness
   ============================================ */
@media (max-width: 768px) {
    .dark-header {
        padding: 0 20px;
        height: 60px;
    }
    
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .btn-pro {
        padding: 14px 28px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .glass-card {
        padding: 24px;
    }
    
    .glass-grid {
        grid-template-columns: 1fr;
    }
    
    .dark-header .btn-login {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}

/* ============================================
   Contact & Map Section
   ============================================ */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

html[data-theme="light"] .pro-landing .form-input {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 1);
    color: #0f172a;
}

html[data-theme="light"] .pro-landing .form-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================
   Logo Animation (Hero to Navbar)
   ============================================ */



.logo-link {
    display: inline-flex;
    align-items: center;
    width: 150px;
    height: 40px;
}

.pro-logo {
    position: absolute;
    top: 140px; 
    left: 50%; 
    transform: translate(-50%, -50%) scale(2);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2000;
    will-change: transform, top, left;
    filter: drop-shadow(0 10px 30px rgba(139, 92, 246, 0.4));
}

.hero-section {
    padding-top: 220px !important; /* Push text down predictably to make room for the logo */
}

.dark-header.scrolled .pro-logo {
    top: 50%;
    left: 24px;
    transform: translate(0, -50%) scale(1);
    filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.2));
}

/* Dark Mode Logo Fixes */
[data-theme="dark"] .pro-logo {
    filter: brightness(0) invert(1) drop-shadow(0 10px 30px rgba(139, 92, 246, 0.4));
}

[data-theme="dark"] .dark-header.scrolled .pro-logo {
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .pro-logo {
        top: 20vh; /* Move it down further on small screens */
        transform: translate(-50%, -50%) scale(1.6); /* Smaller scale on mobile so it doesn't get cut off */
    }
    .dark-header.scrolled .pro-logo {
        left: 16px;
    }
}
