:root {
    /* Color Palette */
    --color-primary: #03C2CC; /* Cyan */
    --color-primary-light: #E6FAFB;
    --color-primary-dark: #029BA3;
    --color-secondary: #B9CE29; /* Olive */
    
    --color-bg: #F8FAFB;
    --color-surface: #FFFFFF;
    
    --color-text: #1F2937; /* Anthracite */
    --color-text-muted: #6B7280;
    
    --color-status-pending: #EF4444; /* Red */
    --color-status-active: #22C55E; /* Green */
    --color-status-done: #9CA3AF; /* Grey */
    
    --color-border: #E5E7EB;
    
    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --text-xs: 0.75rem; /* 12px */
    --text-sm: 0.875rem; /* 14px */
    --text-base: 1rem; /* 16px */
    --text-lg: 1.125rem; /* 18px */
    --text-xl: 1.25rem; /* 20px */
    --text-2xl: 1.5rem; /* 24px */
    
    /* Layout */
    --header-height: 64px;
    --nav-height: 72px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Accessibility Defaults */
    --icon-size-base: 24px;
    --icon-size-large: 32px;
    --touch-target-min: 48px;
}

/* Accessibility Mode Overrides */
body.accessibility-mode {
    --color-primary: #000000;
    --color-primary-light: #F3F4F6;
    --color-primary-dark: #000000;
    --color-secondary: #000000;
    
    --color-bg: #FFFFFF;
    --color-surface: #F9FAFB;
    
    --color-text: #000000;
    --color-text-muted: #111827;
    
    --color-border: #000000;
    
    --text-xs: 1rem; /* 16px */
    --text-sm: 1.125rem; /* 18px */
    --text-base: 1.25rem; /* 20px */
    --text-lg: 1.5rem; /* 24px */
    --text-xl: 1.75rem; /* 28px */
    --text-2xl: 2rem; /* 32px */
    
    --icon-size-base: 32px;
    --icon-size-large: 48px;
    --touch-target-min: 64px;
    
    --shadow-md: 0 0 0 2px #000;
    --shadow-lg: 0 0 0 3px #000;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden; /* Prevent pull-to-refresh on mobile */
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.5;
    font-size: var(--text-base);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
    display: flex;
    align-items: center;
    justify-content: center;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Utility */
.text-muted { color: var(--color-text-muted); }
.font-bold { font-weight: 700; }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }

/* Buttons */
.btn {
    padding: 0 1rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--text-base);
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(3, 194, 204, 0.39);
}
.btn-primary:active { transform: scale(0.98); background-color: var(--color-primary-dark); }
.btn-primary.disabled {
    background-color: var(--color-border);
    color: var(--color-text-muted);
    box-shadow: none;
    pointer-events: none;
}

.btn-secondary {
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
}
.btn-secondary:active { background-color: #D1F4F6; }

.btn-large {
    min-height: calc(var(--touch-target-min) + 8px);
    font-size: var(--text-lg);
}

.btn-full { width: 100%; }

.icon-btn {
    border-radius: var(--radius-full);
    color: var(--color-text);
    font-size: var(--icon-size-base);
    transition: background-color 0.2s;
}
.icon-btn:active { background-color: var(--color-border); }

/* Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 40;
    box-shadow: var(--shadow-sm);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.context-info h1 {
    font-size: var(--text-sm);
    font-weight: 700;
    margin-bottom: 2px;
}
.context-info p {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Main Layout */
#app-main {
    position: fixed;
    top: var(--header-height);
    bottom: var(--nav-height);
    left: 0;
    right: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--color-bg);
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    padding: 1.5rem 1rem 2rem;
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    display: block;
}

.screen-header {
    margin-bottom: 1.5rem;
}
.screen-header h2 {
    font-size: var(--text-xl);
}
.screen-header.with-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: -0.5rem;
}

/* Hidden Utility */
.hidden { display: none !important; }

/* Language Modal */
#screen-language {
    z-index: 50;
    background-color: var(--color-surface);
    top: 0;
    bottom: 0;
    height: 100vh;
    padding: 0;
    transform: translateY(100%);
    display: flex;
    flex-direction: column;
}
#screen-language.active {
    transform: translateY(0);
}

.modal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    overflow-y: auto;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
}
.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: var(--text-2xl);
}
.logo-text span { color: var(--color-primary); }

.welcome-title { font-size: var(--text-2xl); margin-bottom: 0.5rem; }
.welcome-subtitle { color: var(--color-text-muted); font-size: var(--text-sm); }

.language-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.lang-card {
    background-color: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}
.lang-card.selected {
    border-color: var(--color-primary);
    background-color: var(--color-primary-light);
}
.lang-card .flag { font-size: 2rem; }
.lang-card .name { font-weight: 600; text-align: center; font-size: var(--text-sm);}

.modal-footer {
    position: sticky;
    bottom: 0;
    padding: 1rem 0;
    background: linear-gradient(to top, var(--color-surface) 80%, transparent);
    margin-top: auto;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.category-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all 0.2s;
    text-align: center;
}
.category-card i {
    font-size: var(--icon-size-large);
    color: var(--color-primary);
}
.category-card span {
    font-weight: 600;
    font-size: var(--text-sm);
    line-height: 1.3;
}
.category-card:active { transform: scale(0.96); }

/* Request Details Form */
.selected-category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    margin-left: -0.5rem;
}
.selected-category-header h3 {
    font-size: var(--text-lg);
    color: var(--color-primary);
}

.sub-motifs-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.sub-motif-item {
    background-color: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s;
    display: flex;
    justify-content: flex-start;
}
.sub-motif-item.selected {
    border-color: var(--color-primary);
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.input-with-actions {
    position: relative;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-surface);
    overflow: hidden;
    transition: border-color 0.2s;
}
.input-with-actions:focus-within {
    border-color: var(--color-primary);
}

textarea {
    width: 100%;
    border: none;
    resize: none;
    padding: 1rem;
    font-family: inherit;
    font-size: var(--text-base);
    color: var(--color-text);
    background: transparent;
    outline: none;
}

.input-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem;
    gap: 0.5rem;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.action-btn {
    min-width: 40px;
    min-height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--color-surface);
    color: var(--color-text);
    font-size: var(--icon-size-base);
    box-shadow: var(--shadow-sm);
}
.action-btn.record { color: var(--color-status-pending); }
.action-btn.active { background-color: var(--color-status-pending); color: white; animation: pulse 1.5s infinite; }

.photo-attachment {
    margin-bottom: 2rem;
}
.photo-preview-container {
    position: relative;
    margin-top: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.photo-preview-container img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.remove-photo {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: rgba(0,0,0,0.5);
    color: white;
    min-width: 32px;
    min-height: 32px;
}

/* Requests List */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.request-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}
.request-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}
.request-card.status-pending::before { background-color: var(--color-status-pending); }
.request-card.status-active::before { background-color: var(--color-status-active); }
.request-card.status-done::before { background-color: var(--color-status-done); }

.req-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    flex-shrink: 0;
}
.req-content {
    flex: 1;
    min-width: 0;
}
.req-title {
    font-weight: 600;
    font-size: var(--text-base);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.req-time {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}
.req-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.status-pending .req-badge { background-color: #FEE2E2; color: #DC2626; }
.status-active .req-badge { background-color: #DCFCE7; color: #16A34A; }
.status-done .req-badge { background-color: #F3F4F6; color: #4B5563; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Request Detail */
.req-detail-summary {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    text-align: center;
}
.req-detail-summary .req-icon {
    width: 64px;
    height: 64px;
    font-size: 32px;
    margin: 0 auto 1rem;
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
}
.req-detail-summary h3 { font-size: var(--text-xl); margin-bottom: 0.5rem; }
.req-detail-summary p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* Progress Bar */
.progress-container {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.progress-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 1rem;
}
.progress-track::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: var(--color-border);
    z-index: 1;
}
.progress-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 33%;
}
.step-dot {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background-color: var(--color-border);
    border: 4px solid var(--color-surface);
    transition: background-color 0.3s;
}
.step-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-align: center;
}
.progress-step.completed .step-dot,
.progress-step.current .step-dot {
    background-color: var(--color-primary);
}
.progress-step.current .step-label {
    color: var(--color-primary);
}

/* Scoped Chat */
.chat-container {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 300px;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.chat-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}
.chat-bubble.staff {
    align-self: flex-start;
    background-color: var(--color-bg);
    border-bottom-left-radius: 4px;
}
.chat-bubble.patient {
    align-self: flex-end;
    background-color: var(--color-primary);
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-input {
    display: flex;
    padding: 0.75rem;
    border-top: 1px solid var(--color-border);
    gap: 0.5rem;
}
.chat-input input {
    flex: 1;
    border: none;
    background-color: var(--color-bg);
    border-radius: var(--radius-full);
    padding: 0 1rem;
    outline: none;
}
.chat-input button {
    background-color: var(--color-primary);
    color: white;
    border-radius: var(--radius-full);
}

/* Info Grid */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.info-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.info-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: transparent;
    width: 100%;
    justify-content: flex-start;
}
.info-card-header i.icon-main {
    font-size: var(--icon-size-large);
    color: var(--color-secondary);
}
.info-card-header h3 {
    font-size: var(--text-base);
    flex: 1;
    text-align: left;
}
.info-card-header i.caret {
    color: var(--color-text-muted);
    transition: transform 0.3s;
}
.info-card.open .caret { transform: rotate(180deg); }
.info-doc-list {
    display: none;
    padding: 0 1rem 1rem;
    border-top: 1px solid var(--color-border);
}
.info-card.open .info-doc-list { display: block; }
.doc-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--color-text);
    text-decoration: none;
}
.doc-item i { color: var(--color-status-pending); }
.doc-item span { font-size: var(--text-sm); }

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background-color: var(--color-surface);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
    z-index: 40;
    padding-bottom: env(safe-area-inset-bottom); /* iOS safe area */
}
.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--color-text-muted);
    transition: color 0.2s;
}
.nav-item i { font-size: var(--icon-size-base); }
.nav-item span { font-size: 10px; font-weight: 600; }
.nav-item.active { color: var(--color-primary); }

.nav-fab {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background-color: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -24px;
    box-shadow: 0 4px 10px rgba(3, 194, 204, 0.4);
}
.nav-item.active .nav-fab { background-color: var(--color-primary-dark); }
.nav-fab i { font-size: var(--icon-size-large); }

/* Chatbot FAB & Drawer */
.chatbot-fab {
    position: fixed;
    bottom: calc(var(--nav-height) + 1.5rem);
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background-color: var(--color-secondary);
    color: white;
    font-size: var(--icon-size-large);
    box-shadow: var(--shadow-lg);
    z-index: 45;
}
.fab-pulse {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-secondary);
    animation: pulse 2s infinite;
    z-index: -1;
}

.chatbot-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60vh;
    background-color: var(--color-surface);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.1);
    z-index: 60;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.chatbot-drawer.open { transform: translateY(0); }

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}
.chatbot-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.chatbot-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
}
.chatbot-info h3 { font-size: var(--text-base); }
.chatbot-info p { font-size: var(--text-xs); color: var(--color-status-active); font-weight: 600;}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--color-bg);
}

.drawer-footer {
    padding: 1rem;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
}
.quick-replies {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scrollbar-width: none;
}
.quick-replies::-webkit-scrollbar { display: none; }
.quick-reply-chip {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-primary);
}

.chat-input-area {
    display: flex;
    gap: 0.5rem;
}
.chat-input-area input {
    flex: 1;
    background-color: var(--color-bg);
    border: none;
    border-radius: var(--radius-full);
    padding: 0 1rem;
    outline: none;
}
.chat-input-area .send {
    background-color: var(--color-primary);
    color: white;
}

/* App Overlay */
.app-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.app-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* Desktop / Tablet optimizations */
@media (min-width: 768px) {
    body {
        background-color: #E5E7EB;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Simulate mobile frame */
    .app-header, #app-main, .bottom-nav, #screen-language, .chatbot-drawer, .app-overlay, .chatbot-fab {
        max-width: 414px; /* iPhone Max width */
        margin: 0 auto;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    
    .app-header, .bottom-nav { width: 414px; }
    
    #app-main {
        width: 414px;
        height: 896px; /* iPhone Max height */
        position: relative;
        top: 0;
        bottom: 0;
        background-color: var(--color-bg);
        border-left: 1px solid var(--color-border);
        border-right: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        overflow: hidden;
    }
    
    .app-header {
        position: absolute;
        top: 0;
        transform: none;
        left: 0;
        width: 100%;
    }
    
    .bottom-nav {
        position: absolute;
        bottom: 0;
        transform: none;
        left: 0;
        width: 100%;
        padding-bottom: 0;
    }
    
    .screen {
        top: var(--header-height);
        bottom: var(--nav-height);
        height: auto;
        overflow-y: auto;
    }
    
    #screen-language {
        position: absolute;
        top: 0;
        left: 0;
        transform: translateY(100%);
    }
    
    .chatbot-fab {
        position: absolute;
        bottom: calc(var(--nav-height) + 1.5rem);
        right: 1.5rem;
        transform: none;
        left: auto;
    }
    
    .chatbot-drawer {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        transform: translateY(100%);
    }
    
    .app-overlay {
        position: absolute;
        inset: 0;
        transform: none;
        left: 0;
    }
}

/* Meal Wizard */
.meal-wizard {
    display: flex;
    flex-direction: column;
}
.meal-steps {
    display: flex;
    flex-direction: column;
}
.meal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}
.meal-card {
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-surface);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}
.meal-card.selected {
    border-color: var(--color-primary);
    box-shadow: 0 4px 14px 0 rgba(3, 194, 204, 0.39);
}
.meal-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}
.meal-card-title {
    padding: 0.75rem 0.5rem;
    font-size: var(--text-sm);
    font-weight: 600;
}

