
:root {
    /* These will be overwritten by JSON */
    --primary: #4F46E5;
    --primary-dark: #3730A3;
    --bg-color: #F3F4F6;
    --surface: #FFFFFF;
    --text-main: #111827;
    --text-muted: #6B7280;
    --font-heading: 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --radius-lg: 16px;
    --radius-md: 12px;
}

body { font-family: var(--font-body); background-color: var(--bg-color); }
.ons-page { background-color: var(--bg-color); }
h1, h2, h3, .center { font-family: var(--font-heading); }

/* Toolbars */
.custom-toolbar { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,0.05); border: none; }
.custom-toolbar .center { color: var(--text-main); }
.custom-toolbar ons-icon, .custom-toolbar ons-back-button { color: var(--text-main); }
.transparent-toolbar { background: transparent; border: none; position: absolute; z-index: 10; width: 100%; box-shadow: none; }
.transparent-toolbar .center { color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.transparent-toolbar ons-back-button { color: white; }

/* Search */
.search-container { padding: 15px 20px; background: var(--surface); }
.search-box { display: flex; align-items: center; background: var(--bg-color); padding: 12px 15px; border-radius: var(--radius-md); }
.search-box ons-icon { color: var(--text-muted); font-size: 20px; margin-right: 10px; }
.search-box input { border: none; background: transparent; flex: 1; outline: none; font-family: var(--font-body); font-size: 15px; color: var(--text-main); }
.qr-btn { color: var(--primary) !important; cursor: pointer; margin-left: 10px; }

/* Event Cards */
.event-list { padding: 15px 20px; }
.event-card { background: var(--surface); border-radius: var(--radius-lg); padding: 15px; margin-bottom: 15px; display: flex; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.03); cursor: pointer; border: 1px solid rgba(0,0,0,0.02); }
.event-card img { width: 70px; height: 70px; border-radius: var(--radius-md); object-fit: cover; margin-right: 15px; }
.event-details { flex: 1; }
.event-title { font-size: 16px; font-weight: 600; font-family: var(--font-heading); color: var(--text-main); margin-bottom: 5px; }
.event-meta { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }

/* Splash Screen */
.splash-screen { height: 100vh; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 40px 20px; color: white; }
.splash-content { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.splash-content img { width: 120px; height: 120px; border-radius: 24px; object-fit: cover; box-shadow: 0 15px 35px rgba(0,0,0,0.2); margin-bottom: 30px; background: white; padding: 10px; }
.splash-title { font-size: 28px; font-weight: 700; margin: 0 0 30px 0; }
.custom-spinner circle { stroke: rgba(255,255,255,0.8); stroke-width: 4px; }
.splash-footer { width: 100%; display: flex; flex-direction: column; gap: 15px; }
.btn-primary { background: white; color: var(--primary); border: none; padding: 16px; border-radius: var(--radius-md); font-size: 16px; font-weight: 600; font-family: var(--font-heading); cursor: pointer; }
.btn-skip { background: transparent; color: rgba(255,255,255,0.8); border: none; padding: 15px; font-size: 15px; font-family: var(--font-body); cursor: pointer; }

/* Home Workspace */
.page-background-color { min-height: 100vh; background-color: var(--bg-color); }
.home-banner { height: 280px; width: 100%; background-size: cover; background-position: center; border-bottom-left-radius: 30px; border-bottom-right-radius: 30px; position: relative; }
.home-banner::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.3) 100%); border-bottom-left-radius: 30px; border-bottom-right-radius: 30px; }
.workspace-card { position: relative; margin: -60px 20px 20px 20px; z-index: 2; background: var(--surface); border-radius: var(--radius-lg); box-shadow: 0 10px 30px rgba(0,0,0,0.08); padding: 25px 15px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 10px; }
.menu-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.icon-wrapper { width: 56px; height: 56px; border-radius: 16px; background: var(--primary); opacity: 0.9; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.icon-wrapper img { width: 26px; height: 26px; filter: brightness(0) invert(1); } /* Make generic icons white */
.menu-item span { font-size: 13px; font-weight: 500; font-family: var(--font-heading); color: var(--text-main); text-align: center; line-height: 1.2; }

/* People List */
.people-list { padding: 10px 20px; }
.group-title { font-size: 14px; font-weight: 600; color: var(--text-muted); margin: 20px 0 10px 5px; text-transform: uppercase; font-family: var(--font-heading); }
.person-card { display: flex; align-items: center; background: var(--surface); padding: 15px; border-radius: var(--radius-md); margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); cursor: pointer; }
.person-card img { width: 50px; height: 50px; border-radius: 25px; object-fit: cover; margin-right: 15px; border: 2px solid var(--primary); padding: 2px; }
.person-info { flex: 1; }
.person-name { font-weight: 600; font-size: 15px; font-family: var(--font-heading); color: var(--text-main); }
.person-title { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
