/* Give Basic Needs - Shield App v6.40.39 */
:root {
    --primary: #3f169a; /* GBN Purple */
    --secondary: #ffc042; /* GBN Gold */
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --text: #333;
    --bg: #f8f9fa;
    --card-bg: #fff;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.5;
}
* { box-sizing: inherit; }

#app {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

header {
    background: var(--primary);
    color: white;
    padding: 12px 16px;
    font-weight: bold;
    font-size: 1.1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#header-title {
    flex: 1 1 auto;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
}
.header-btn {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    font-size: 0.85rem !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    width: auto !important;
    margin: 0 !important;
    cursor: pointer;
    display: none;
    transition: background-color 0.2s ease;
    flex: 0 0 auto;
}
.header-btn:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
}
.header-btn:active {
    background-color: rgba(255, 255, 255, 0.35) !important;
}

.view { display: none; padding: 20px; flex: 1; }
.view.active { display: block; }

.form-group { margin-bottom: 15px; }
label { display: block; font-weight: bold; margin-bottom: 5px; font-size: 0.9rem; color: var(--primary); }
input[type="text"], input[type="number"], input[type="date"], select, textarea {
    width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; background: #fff; font-family: inherit;
}
textarea { resize: vertical; min-height: 80px; }

.error-text { color: var(--danger); font-size: 0.8rem; margin-top: 4px; display: none; font-weight: bold; }

/* Quick Pick Chips for Multi-Select */
.chip-group { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.chip { background: #f8f9fa; color: #333; padding: 4px 8px; border-radius: 12px; font-size: 0.75rem; cursor: pointer; border: 1px solid #ccc; transition: background 0.2s; white-space: nowrap; }
.chip:active { background: #d3d9df; }

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}
.checkbox-grid label { font-weight: normal; display: flex; align-items: center; margin: 0; color: var(--text); }
.checkbox-grid input[type="checkbox"] { width: 20px; height: 20px; margin-right: 10px; }

button {
    width: 100%; padding: 14px; border: none; border-radius: 6px; font-size: 1.1rem; font-weight: bold; cursor: pointer; margin-bottom: 10px;
    background: var(--secondary); color: #333; /* All buttons are Gold */
}
button:hover { filter: brightness(0.95); }

.pod-container { border: 2px solid var(--primary); border-radius: 8px; margin-bottom: 20px; overflow: hidden; }
.pod-header { background: var(--primary); color: white; padding: 10px; font-size: 0.9rem; font-weight: bold; }
.patient-card { padding: 15px; border-bottom: 1px solid #eee; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.patient-card:hover { background: #f8f9fa; }
.patient-card:last-child { border-bottom: none; }
.patient-info h4 { margin: 0 0 5px 0; color: var(--primary); }
.patient-info p { margin: 0; font-size: 0.85rem; color: #666; }
.badge { background: var(--secondary); color: #333; padding: 4px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: bold; }

.history-alert { background: #f8f9fa; color: var(--text); padding: 12px; border-radius: 6px; font-size: 0.9rem; margin-bottom: 20px; text-align: center; font-weight: bold; border: 1px solid #ccc; }
.safety-alert { background: #f8f9fa; color: var(--danger); padding: 15px; border-radius: 6px; font-size: 1rem; margin-bottom: 20px; text-align: left; font-weight: bold; border: 2px solid var(--danger); box-shadow: 0 4px 6px rgba(220,53,69,0.1); }
.safety-alert ul { margin: 5px 0 0 20px; padding: 0; font-weight: normal; }

.history-card { background: #f8f9fa; padding: 15px; border-radius: 6px; margin-bottom: 12px; font-size: 0.9rem; border-left: 4px solid var(--primary); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.history-card .hc-date { font-weight: bold; color: var(--primary); font-size: 1rem; margin-bottom: 8px; border-bottom: 1px solid #ccc; padding-bottom: 4px; }
.history-card .hc-row { display: flex; margin-bottom: 4px; }
.history-card .hc-label { font-weight: bold; color: #555; width: 90px; flex-shrink: 0; }
.history-card .hc-value { flex-grow: 1; color: #333; }

.vax-list { margin: 5px 0 15px 20px; padding: 0; font-size: 0.9rem; color: #333; }

.cheat-sheet { background: #f8f9fa; border: 1px solid #ccc; padding: 15px; border-radius: 6px; margin-top: 20px; font-size: 0.85rem; }
.cheat-sheet ul { margin: 5px 0 0 20px; padding: 0; }

.main-section-title { 
    background-color: var(--secondary); 
    color: #000; 
    padding: 12px 15px; 
    border-radius: 6px; 
    margin-top: 30px; 
    margin-bottom: 20px; 
    font-weight: bold; 
    font-size: 1.2rem; 
    text-align: center; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-title { 
    background-color: #f8f9fa; 
    color: #000; 
    padding: 10px 15px; 
    border-radius: 6px 6px 0 0; 
    border-bottom: 3px solid var(--secondary); 
    margin-top: 20px; 
    margin-bottom: 15px; 
    font-weight: bold; 
    font-size: 1.05rem; 
}

#network-banner { background: var(--warning); color: #000; text-align: center; padding: 8px; font-size: 0.9rem; font-weight: bold; display: none; }
.app-version { text-align: center; padding: 20px; color: #999; font-size: 0.8rem; }
