/* assets/css/pos.css - Modern Medical POS Kiosk Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;
    --accent: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --card-bg: #ffffff;
    --body-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 25px -5px rgba(2, 132, 199, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 40px -15px rgba(2, 132, 199, 0.15);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Kiosk Top Navigation Bar */
.kiosk-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 0.8rem 1.5rem;
}

.kiosk-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--primary-dark);
    text-decoration: none;
}

.kiosk-brand i {
    font-size: 1.8rem;
    color: var(--primary);
    animation: heartPulse 2s infinite ease-in-out;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
}

.user-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Stepper Progress Bar */
.kiosk-stepper {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0 2rem 0;
    position: relative;
}

.kiosk-stepper::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 8px auto;
    transition: all 0.3s ease;
}

.step-item.active .step-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 0 6px var(--primary-light);
}

.step-item.completed .step-icon {
    background: var(--success);
    border-color: var(--success);
    color: #ffffff;
}

.step-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.step-item.active .step-title {
    color: var(--primary-dark);
    font-weight: 700;
}

/* Main POS Card Container */
.pos-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.pos-card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Big Action Buttons */
.btn-kiosk {
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-kiosk:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.3);
}

.btn-kiosk-start {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    padding: 1.25rem 3rem;
}

.btn-kiosk-start:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
}

/* Live Measurement Gauge & Animations */
.measurement-chamber {
    text-align: center;
    padding: 3rem 1rem;
}

.pulse-ring-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-circle {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 3.5rem;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.4);
    z-index: 2;
}

.pulse-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--accent);
    opacity: 0;
    animation: rippleWave 2s infinite ease-out;
}

.pulse-ripple.delay {
    animation-delay: 0.8s;
}

@keyframes rippleWave {
    0% { transform: scale(0.7); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

.live-status-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.live-status-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Result Cards */
.result-stat-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.result-stat-box .title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.result-stat-box .value {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
    margin: 8px 0;
}

.result-stat-box .unit {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.category-banner {
    border-radius: 16px;
    padding: 1.5rem 2rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Payment QR Display */
.qr-display-box {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    border: 2px dashed #0284c7;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

/* Setup Instruction Cards */
.setup-guide-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.25s ease;
}

.setup-guide-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.setup-guide-card .guide-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Receipt Iframe Modal for Auto-Printing */
.hidden-print-frame {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    border: none;
}
