/* ==========================================================================
   Cetasika AI — Streamlined Mobile Chat App CSS
   ========================================================================== */

/* 1. Design Tokens & CSS Variables */
:root {
    /* Color Palette - Dark Mode Default */
    --bg-canvas: #060b19;
    --bg-phone: #0d1527;
    --bg-header: rgba(13, 21, 39, 0.85);
    --bg-card: rgba(22, 34, 57, 0.7);
    --bg-card-hover: rgba(30, 46, 75, 0.9);
    --bg-input: rgba(18, 29, 49, 0.9);
    --bg-bubble-bot: linear-gradient(135deg, rgba(22, 37, 64, 0.95), rgba(15, 26, 46, 0.98));
    --bg-bubble-user: linear-gradient(135deg, #0077b6, #00b4d8);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(0, 180, 216, 0.3);
    
    --text-main: #f0f4f8;
    --text-muted: #94a3b8;
    --text-sub: #cbd5e1;
    
    --primary: #00b4d8;
    --primary-hover: #0096c7;
    --primary-glow: rgba(0, 180, 216, 0.25);
    --accent: #48cae4;
    --danger: #ff4d6d;
    --success: #2ec4b6;
    --warning: #ffb703;
    
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(0, 180, 216, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-canvas: #f1f5f9;
    --bg-phone: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.9);
    --bg-card: #f8fafc;
    --bg-card-hover: #f1f5f9;
    --bg-input: #f1f5f9;
    --bg-bubble-bot: linear-gradient(135deg, #f0f7ff, #e4effc);
    --bg-bubble-user: linear-gradient(135deg, #0284c7, #00b4d8);
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-accent: rgba(0, 180, 216, 0.4);
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-sub: #475569;
    
    --primary: #0284c7;
    --shadow-soft: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* 2. Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* 3. Desktop Viewport Wrapper & Controls */
.app-viewport-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.desktop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 440px;
    margin-bottom: 12px;
    padding: 0 10px;
}

.brand-badge {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.desktop-actions {
    display: flex;
    gap: 8px;
}

/* 4. Phone Device Frame Simulator */
.phone-frame {
    width: 100%;
    max-width: 420px;
    height: 850px;
    background: var(--bg-phone);
    border-radius: 44px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 12px #1e293b, 0 0 0 14px rgba(255,255,255,0.1);
    overflow: hidden;
    transition: var(--transition);
}

@media (max-width: 480px) {
    .app-viewport-wrapper {
        padding: 0;
    }
    .desktop-controls {
        display: none;
    }
    .phone-frame {
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
}

.phone-frame.full-mode {
    max-width: 100vw;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
}

/* Phone Top Speaker Notch */
.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 28px;
    background: #1e293b;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.notch-camera {
    width: 10px;
    height: 10px;
    background: #0f172a;
    border-radius: 50%;
}

.notch-speaker {
    width: 45px;
    height: 4px;
    background: #0f172a;
    border-radius: 4px;
}

/* 5. Main Mobile App Layout */
.mobile-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    background: var(--bg-phone);
}

/* Status Bar */
.status-bar {
    height: 42px;
    padding: 12px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-sub);
    z-index: 90;
}

.status-icons {
    display: flex;
    gap: 6px;
}

/* Header */
.app-header {
    height: 60px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 80;
}

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

.avatar-ring {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #0077b6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: var(--shadow-glow);
}

.header-title h1 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.status-indicator {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot-online {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.header-actions {
    display: flex;
    gap: 8px;
}

/* 6. App Body & Chat Container */
.app-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.suggestions-scroller {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-color);
    scrollbar-width: none;
}

.suggestions-scroller::-webkit-scrollbar {
    display: none;
}

.chip-suggestion {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-sub);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.chip-suggestion:hover {
    background: var(--primary-glow);
    border-color: var(--border-accent);
    color: var(--primary);
}

.chip-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.chip-email {
    background: rgba(0, 180, 216, 0.15);
    color: var(--primary);
    border-color: rgba(0, 180, 216, 0.4);
}

.chip-email:hover {
    background: var(--primary);
    color: #ffffff;
}

.chip-call {
    background: rgba(46, 196, 182, 0.15);
    color: var(--success);
    border-color: rgba(46, 196, 182, 0.4);
}

.chip-call:hover {
    background: var(--success);
    color: #ffffff;
}

.chip-sos {
    background: rgba(255, 77, 109, 0.18);
    color: var(--danger);
    border-color: rgba(255, 77, 109, 0.4);
}

.chip-sos:hover {
    background: var(--danger);
    color: #ffffff;
}


.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.message {
    display: flex;
    gap: 10px;
    max-width: 94%;
    width: auto;
    box-sizing: border-box;
}

.message.bot-message {
    align-self: flex-start;
}

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

.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 180, 216, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.message.user-message .msg-avatar {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.msg-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

.msg-bubble {
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 0.88rem;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.msg-bubble a.chat-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    word-break: break-all;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.msg-bubble a.chat-email-link {
    background: rgba(0, 180, 216, 0.15);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-accent);
    text-decoration: none;
    font-size: 0.84rem;
    margin: 2px 0;
}

.msg-bubble a.chat-email-link:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}


.bot-message .msg-bubble {
    background: var(--bg-bubble-bot);
    border-top-left-radius: 4px;
    color: var(--text-main);
    border: 1px solid var(--border-accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.user-message .msg-bubble {
    background: var(--bg-bubble-user);
    border-top-right-radius: 4px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

/* Step Cards & Action Pills */
.step-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0;
    padding: 8px 12px;
    background: rgba(0, 180, 216, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: 12px;
    transition: var(--transition);
}

.step-card:hover {
    background: rgba(0, 180, 216, 0.14);
    border-color: var(--primary);
}

.step-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #0077b6);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
    box-shadow: 0 2px 6px var(--primary-glow);
}

.step-content {
    flex: 1;
    font-size: 0.86rem;
    line-height: 1.4;
    color: var(--text-main);
}

.action-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 180, 216, 0.15);
    border: 1px solid rgba(0, 180, 216, 0.35);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
}

[data-theme="light"] .action-pill {
    background: rgba(0, 119, 182, 0.1);
    color: #0077b6;
    border-color: rgba(0, 119, 182, 0.3);
}

/* Message Footer & Audio Button */
.msg-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding: 0 2px;
    gap: 8px;
}

.msg-time {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

.user-message .msg-footer {
    justify-content: flex-end;
}

.text-speech-btn {
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid rgba(0, 180, 216, 0.25);
    color: var(--primary);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition);
}

.text-speech-btn:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 10px var(--primary-glow);
    transform: scale(1.1);
}

.text-speech-btn.speaking {
    background: #ff4d6d !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(255, 77, 109, 0.6) !important;
    animation: pulseGlow 1.2s infinite ease-in-out;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.typing-indicator .dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulseDot 1.4s infinite ease-in-out both;
}

.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulseDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.1); opacity: 1; }
}

/* Chat Input Bar */
.chat-input-bar {
    padding: 10px 14px 14px 14px;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.voice-lang-select {
    background: rgba(0, 180, 216, 0.12);
    color: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 6px 8px;
    font-size: 0.74rem;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    appearance: auto;
}

.voice-lang-select:hover, .voice-lang-select:focus {
    background: var(--primary-glow);
    border-color: var(--primary);
}

.btn-listening {
    color: #ff4d6d !important;
    background: rgba(255, 77, 109, 0.2) !important;
    animation: micPulse 1.2s infinite ease-in-out;
}

@keyframes micPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(255, 77, 109, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 77, 109, 0); }
}


.input-wrapper {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.input-wrapper textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 0.88rem;
    resize: none;
    overflow: hidden;
    max-height: 80px;
    -webkit-appearance: none;
    appearance: none;
}


/* Buttons */
.icon-btn, .icon-btn-accent, .btn-send {
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
}

.icon-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.12);
}

.icon-btn-accent {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--primary);
    background: rgba(0, 180, 216, 0.15);
}

.btn-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-send:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.btn-secondary {
    border: none;
    border-radius: var(--radius-md);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg-card);
    color: var(--text-sub);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.hidden { display: none !important; }

/* ==========================================================================
   In-Chat Interactive Healthcare Checker Styles
   ========================================================================== */
.chip-health {
    background: linear-gradient(135deg, rgba(72, 202, 228, 0.25), rgba(0, 119, 182, 0.35)) !important;
    border: 1px solid rgba(72, 202, 228, 0.4) !important;
    color: #48cae4 !important;
}

.chip-health:hover {
    background: linear-gradient(135deg, rgba(72, 202, 228, 0.4), rgba(0, 119, 182, 0.5)) !important;
    transform: translateY(-2px);
}

.health-chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

.btn-chat-opt {
    background: rgba(0, 180, 216, 0.12);
    border: 1px solid rgba(0, 180, 216, 0.35);
    color: var(--primary);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

.btn-chat-opt:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--primary-glow);
    transform: translateY(-1px);
}

.chat-form-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 14px;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
    animation: fadeIn 0.25s ease-out;
}

.chat-form-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.chat-form-group {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-sizing: border-box;
}

.chat-form-group label {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-sub);
}

.chat-form-group input, .chat-form-group select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 10px;
    color: var(--text-main);
    font-size: 0.84rem;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: var(--transition);
}

.chat-form-group input:focus, .chat-form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.btn-chat-submit {
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, var(--primary), #0077b6);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 10px;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    margin-top: 6px;
    box-shadow: 0 3px 10px var(--primary-glow);
    transition: var(--transition);
}

.btn-chat-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px var(--primary-glow);
}


/* ==========================================================================
   In-App Navigation & Dedicated Healthcare Checker Screen Styles
   ========================================================================== */
.view-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

/* Bottom Navigation Bar */
.app-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 6px 12px 10px 12px;
}

.nav-item {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 600;
    transition: var(--transition);

}

.nav-item i {
    font-size: 1.15rem;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    transform: translateY(-2px);
    color: var(--primary);
}

/* Health Screen View */
.health-screen {
    background: var(--bg-app);
    padding: 14px;
    overflow-y: auto;
}

.health-screen-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

.health-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px;
    gap: 6px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

.health-tab {
    flex: 1;
    padding: 10px 6px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.health-tab.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.health-pane-container {
    flex: 1;
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.form-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

.form-group label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group input, .form-group select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 9px 12px;
    color: var(--text-main);
    font-size: 0.86rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.btn-primary-block {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), #0077b6);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 11px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: var(--transition);
    margin-top: 4px;
}

.btn-primary-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.result-card {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0, 180, 216, 0.12);
    border: 1px solid rgba(0, 180, 216, 0.3);
    animation: fadeIn 0.3s ease-out;
}

.result-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.result-cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(72, 202, 228, 0.25);
    color: #48cae4;
    margin-left: 6px;
}

.result-msg {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-top: 4px;
    line-height: 1.4;
}

.latest-metric-box {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.btn-link-sm {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-link-sm:hover {
    text-decoration: underline;
}

.metric-display {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-sub);
    background: rgba(0,0,0,0.25);
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}


