/* TrayCare Demo Styles */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --card-bg: rgba(255, 255, 255, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --text-main: #1e293b;
    --border-radius: 16px;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f8fafc;
    color: var(--text-main);
}

.premium-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    z-index: -1;
}

/* Header */
.site-header {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand img { height: 32px; }

.header-badge {
    background: #eff6ff;
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Hero Section */
.header-section {
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.header-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}
.header-section .subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem 100px;
}

/* Stat Cards */
.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.4);
}
.stat-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.stat-label { font-size: 0.85rem; color: var(--secondary-color); }

.stat-total { border-left: 4px solid var(--primary-color); }
.stat-active { border-left: 4px solid var(--success-color); }
.stat-pending { border-left: 4px solid var(--warning-color); }
.stat-unpaid { border-left: 4px solid var(--danger-color); }

/* Clean Card Styles */
.clean-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.4);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.att-table th {
    background: #f1f5f9;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    padding: 1rem;
}
.att-table td { padding: 1rem; font-size: 0.9rem; }

/* Batch Overlay */
.batch-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* Console */
.console-box {
    background: #0f172a;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Courier New', Courier, monospace;
    color: #38bdf8;
    line-height: 1.5;
}

/* Mobile View Container */
.mobile-view {
    position: sticky;
    top: 100px;
}

/* iPhone Frame */
.iphone-frame {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    margin: 0 auto;
    padding: 12px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.3);
    position: relative;
}
.iphone-frame::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 42px;
    border: 2px solid #272727;
    pointer-events: none;
}
.notch {
    position: absolute;
    top: 12px; left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #000;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 100;
}
.iphone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Mobile Screen Components */
.m-view {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 60px;
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.m-header {
    padding: 40px 1.5rem 1rem;
    background: #f8fafc;
}
.m-content { padding: 1.5rem; }
.m-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}

.cms-logo-mock {
    font-weight: 800;
    color: #1e3a8a;
    font-size: 1.2rem;
    border: 2px solid #1e3a8a;
    display: inline-block;
    padding: 2px 8px;
    font-style: italic;
}

/* Buttons for Mobile */
.app-btn {
    width: 100%;
    padding: 0.8rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: all 0.2s;
}
.app-btn-primary { background: var(--primary-color); color: #fff; }
.app-btn-primary:hover { background: var(--primary-hover); }
.app-btn-outline { background: transparent; border: 1px solid var(--primary-color); color: var(--primary-color); }

.m-nav {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    height: 60px;
    background: #fff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.m-nav div { text-align: center; color: var(--secondary-color); font-size: 0.65rem; cursor: pointer; }
.m-nav div i { font-size: 1.1rem; margin-bottom: 2px; }
.m-nav div.active { color: var(--primary-color); }

/* Overlays */
.ars-overlay, .receipt-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}
.ars-box { padding: 2rem; }
.ars-loader {
    width: 40px; height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Receipt Paper */
.receipt-paper {
    background: #fff;
    width: 85%;
    padding: 1.5rem;
    border-radius: 8px;
    color: #334155;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}
.receipt-row span { color: var(--secondary-color); }

/* Scenario Bar */
.scenario-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 2000;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
}

.scenario-steps { display: flex; gap: 0.5rem; }
.step-dot {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-dot.active { background: var(--primary-color); color: #fff; }

@media (max-width: 991px) {
    .iphone-frame { transform: scale(0.9); margin-bottom: 3rem; }
    .scenario-controls { flex-direction: column; gap: 0.75rem; text-align: center; height: auto; padding: 1.5rem; }
}
