/*
* AI Development Guidelines for Modern Web Projects in Firebase Studio
* This CSS file is generated by an AI agent (Gemini) to adhere to the project's
* design and functionality blueprint. It uses modern, widely supported CSS
* features and a semantic class naming convention.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --bg-color: #FDFCFE;
  --text-slate-900: #1a202c;
  --text-slate-800: #1e293b;
  --text-slate-700: #334155;
  --text-slate-600: #475569;
  --text-slate-500: #64748b;
  --text-slate-400: #94a3b8;
  --text-slate-300: #cbd5e1;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-900: #0f172a;
  
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-300: #a5b4fc;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --indigo-800: #3730a3;
  --indigo-900: #312e81;

  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;

  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --rose-800: #9f1239;

  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-600: #d97706;

  --cyan-50: #ecfeff;
  --cyan-600: #0891b2;

  --blue-50: #eff6ff;
  --blue-600: #2563eb;
  
  --white: #ffffff;
}

/* --- BASE & TYPOGRAPHY --- */
body {
  background-color: var(--bg-color);
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f1f5f9' fill-opacity='0.25' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--text-slate-700);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

h1, h2, h3, h4 { color: var(--text-slate-800); font-family: 'Playfair Display', serif; font-weight: 700; }
p { font-size: 1rem; line-height: 1.6; color: var(--text-slate-500); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin: 1rem 0; }
h2 { font-size: 2.25rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; font-family: 'Inter', sans-serif; }
.highlight { color: var(--indigo-600); font-style: italic; }
.italic { font-style: italic; }

/* --- ANIMATIONS --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInFromBottom { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideInFromRight { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.spinner { animation: spin 1s linear infinite; }

/* --- BUTTONS --- */
button, .button { cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.2s ease-out; border: none; background: none; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
.primary-btn { background-color: var(--slate-900); color: var(--white); padding: 0.8rem 2rem; border-radius: 9999px; font-weight: 600; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); }
.primary-btn:hover:not(:disabled) { background-color: var(--slate-800); transform: translateY(-1px); }
.primary-btn.large-btn { padding: 1rem 2.5rem; font-size: 1.125rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.secondary-btn { background-color: transparent; color: var(--text-slate-600); padding: 0.8rem 2rem; border-radius: 9999px; font-weight: 600; border: 1px solid var(--slate-200); }
.secondary-btn:hover:not(:disabled) { background-color: var(--slate-50); }

/* --- NAVIGATION --- */
.navigation { padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; max-width: 72rem; margin: 0 auto; position: sticky; top: 0; background-color: rgba(253, 252, 254, 0.8); backdrop-filter: blur(12px); z-index: 50; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 900; font-style: italic; letter-spacing: -1px; cursor: pointer; color: var(--text-slate-900); text-decoration: none; }
.logo-icon { width: 2.25rem; height: 2.25rem; background-color: var(--indigo-600); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; transition: transform 0.3s; box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2), 0 4px 6px -2px rgba(79, 70, 229, 0.1); }
.logo:hover .logo-icon { transform: rotate(12deg); }
.logo-icon i { color: var(--white); width: 1.5rem; height: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-links #pricing-btn { display: none; }
@media (min-width: 768px) { .nav-links #pricing-btn { display: block; font-size: 0.875rem; font-weight: 700; color: var(--text-slate-500); } .nav-links #pricing-btn:hover { color: var(--slate-900); } }
.tier-badge { display: flex; align-items: center; gap: 0.5rem; font-size: 10px; font-weight: 700; color: var(--text-slate-500); text-transform: uppercase; letter-spacing: 0.1em; background-color: rgba(241, 245, 249, 0.5); padding: 0.5rem 1rem; border-radius: 9999px; border: 1px solid var(--slate-100); }
.tier-badge i { width: 0.75rem; height: 0.75rem; color: var(--emerald-500); }

/* --- LAYOUT & CONTAINERS --- */
.hero { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; animation: fadeIn 1s ease-out; }
.form-container, .roles-container, .dashboard-container, .detail-view-container { max-width: 56rem; margin: 2rem auto; padding: 1.5rem; animation: fadeIn 0.7s ease-out; }
.form-container { max-width: 28rem; } .roles-container { max-width: 42rem; text-align: center; }
footer { padding: 3rem 1.5rem; margin-top: 3rem; border-top: 1px solid var(--slate-100); text-align: center; color: var(--text-slate-400); font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em; }

/* --- LANDING --- */
.hero-icon { width: 5rem; height: 5rem; background-color: var(--indigo-600); border-radius: 1.5rem; display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.2), 0 10px 10px -5px rgba(79, 70, 229, 0.1); }
.hero-icon i { color: var(--white); width: 2.5rem; height: 2.5rem; }
.hero .subtitle { font-size: 1.125rem; max-width: 32rem; margin: 1.5rem 0 2.5rem; line-height: 1.7; }
.hero .button-group { display: flex; flex-direction: column; gap: 1rem; } 
@media (min-width: 640px) { .hero .button-group { flex-direction: row; } }
.encryption-note { margin-top: 2rem; font-size: 0.875rem; color: var(--text-slate-400); font-weight: 500; display: flex; align-items: center; gap: 0.5rem; }
.encryption-note i { width: 1rem; height: 1rem; }

/* --- LOGIN/GENDER --- */
.login-options, .gender-options { display: flex; flex-direction: column; gap: 1rem; } 
.form-container p { margin-bottom: 2rem; }
.social-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.75rem; border: 1px solid var(--slate-200); padding: 1rem; border-radius: 1rem; background-color: var(--white); font-weight: 500; color: var(--text-slate-700); }
.social-btn:hover { background-color: var(--slate-50); }
.social-btn img { width: 1.25rem; height: 1.25rem; }
.divider { position: relative; text-align: center; margin: 1rem 0; font-size: 0.75rem; text-transform: uppercase; color: var(--text-slate-400); }
.divider::before { content: ''; position: absolute; top: 50%; left: 0; right:0; height: 1px; background: var(--slate-100); z-index: -1; }
.divider::after { content: attr(data-content); background: var(--bg-color); padding: 0 1rem; }
input[type="email"] { width: 100%; padding: 1rem; border-radius: 1rem; border: 1px solid var(--slate-200); box-sizing: border-box; }
input[type="email"]:focus { outline: none; box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2); }
.login-options .primary-btn { width: 100%; padding: 1rem; background-color: var(--indigo-600); }
.login-options .primary-btn:hover { background-color: var(--indigo-700); }
.gender-btn { padding: 1.25rem; text-align: left; border: 1px solid var(--slate-200); border-radius: 1rem; background: var(--white); display: flex; justify-content: space-between; align-items: center; }
.gender-btn:hover { border-color: var(--indigo-600); background-color: rgba(238, 242, 255, 0.3); }
.gender-btn span { font-size: 1.125rem; font-weight: 500; color: var(--text-slate-700); }
.gender-btn i { color: var(--text-slate-300); transition: color 0.2s; }
.gender-btn:hover i { color: var(--indigo-600); }

/* --- ROLES --- */
.roles-container p { margin-bottom: 2.5rem; }
.roles-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .roles-grid { grid-template-columns: repeat(2, 1fr); } }
.role-card, .add-role-card { padding: 1.5rem; border-radius: 1.5rem; border: 2px solid var(--slate-100); background: var(--white); text-align: left; cursor: pointer; transition: all 0.2s ease-out; position: relative; }
.role-card:hover { border-color: var(--slate-300); }
.role-card.selected { border-color: var(--indigo-600); background-color: var(--indigo-50); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.selected-icon { position: absolute; top: 0.75rem; right: 0.75rem; }
.selected-icon i { width: 1.25rem; height: 1.25rem; color: var(--indigo-600); }
.role-icon { width: 3rem; height: 3rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; background-color: var(--slate-100); color: var(--text-slate-600); transition: all 0.2s ease-out; }
.role-card.selected .role-icon { background-color: var(--indigo-600); color: var(--white); }
.role-icon i { width: 1.5rem; height: 1.5rem; }
.role-card h3 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.role-card p { font-size: 0.875rem; }
.add-role-card { border-style: dashed; border-color: var(--slate-200); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-slate-400); min-height: 160px; }
.add-role-card:hover { background-color: var(--indigo-50); border-color: var(--indigo-300); color: var(--indigo-600); }
.add-role-card i { width: 2rem; height: 2rem; margin-bottom: 0.5rem; }
.add-role-card span { font-size: 0.875rem; font-weight: 500; }

/* --- DASHBOARD --- */
.dashboard-container header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2.5rem; }
.dashboard-container header h1 { font-size: 1.75rem; letter-spacing: -0.5px; margin: 0; }
.status-badge { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; }
.status-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background-color: var(--emerald-500); animation: pulse 1.5s infinite; }
.status-badge p { font-size: 10px; color: var(--text-slate-400); font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; }
.header-actions { display: flex; gap: 0.75rem; align-items: center; }
.header-actions button { padding: 0.625rem; border-radius: 1rem; background-color: var(--white); border: 1px solid var(--slate-100); box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); color: var(--text-slate-600); }
.header-actions button:hover { background-color: var(--slate-50); }
.header-actions button i { width: 1.25rem; height: 1.25rem; }
.profile-icon { width: 2.5rem; height: 2.5rem; border-radius: 1rem; background-color: var(--indigo-600); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.2s; box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2), 0 2px 4px -1px rgba(79, 70, 229, 0.1); }
.profile-icon:hover { transform: scale(1.05); }
.profile-icon i { width: 1.5rem; height: 1.5rem; color: var(--white); }

.summary-card { background-image: linear-gradient(to bottom right, var(--indigo-800), var(--indigo-700), var(--indigo-900)); border-radius: 2.5rem; padding: 2rem; color: var(--white); margin-bottom: 2rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); position: relative; overflow: hidden; }
.summary-card > div:first-child { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; position: relative; z-index: 10; }
.summary-card h3 { color: var(--indigo-200); font-weight: 700; display: flex; align-items: center; gap: 0.5rem; text-transform: uppercase; font-size: 10px; letter-spacing: 0.1em; }
.summary-card h3 i { width: 1rem; height: 1rem; color: var(--indigo-400); }
.summary-card > div:first-child span { font-size: 10px; background-color: rgba(255, 255, 255, 0.1); padding: 0.3rem 0.75rem; border-radius: 9999px; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); }
.summary-card > p { font-size: 1.25rem; font-weight: 300; margin-bottom: 2rem; line-height: 1.6; max-width: 42rem; color: var(--white); position: relative; z-index: 10; }
.summary-card .highlight-text { font-weight: 700; text-decoration: underline; text-decoration-color: var(--indigo-400); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.summary-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; position: relative; z-index: 10; }
.summary-actions button { background-color: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); padding: 0.75rem 1rem; border-radius: 1rem; font-size: 0.75rem; font-weight: 700; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: center; gap: 0.5rem; }
.summary-actions button:hover { background-color: rgba(255, 255, 255, 0.2); }
.summary-actions button.primary { background-color: var(--white); color: var(--indigo-900); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.05); }
.summary-actions button.primary:hover { transform: translateY(-2px); }
.summary-actions button i { width: 1rem; height: 1rem; }
.background-glow { position: absolute; top: -50px; right: -50px; width: 24rem; height: 24rem; background-color: rgba(129, 140, 248, 0.2); border-radius: 50%; filter: blur(100px); transition: background-color 1s ease-out; }
.summary-card:hover .background-glow { background-color: rgba(129, 140, 248, 0.3); }

.dashboard-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .dashboard-grid { grid-template-columns: repeat(2, 1fr); } }

.widget-card { background-color: var(--white); padding: 1.5rem; border-radius: 2.5rem; border: 1px solid var(--slate-100); box-shadow: 0 1px 3px 0 rgba(0,0,0,0.03); transition: box-shadow 0.3s ease-out; }
.widget-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.03); }
.widget-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.widget-title { display: flex; align-items: center; gap: 0.75rem; }
.widget-title h4 { font-weight: 700; font-size: 1rem; font-family: 'Inter', sans-serif; }
.widget-icon { padding: 0.75rem; border-radius: 1rem; background-color: var(--emerald-50); color: var(--emerald-600); }
.widget-icon i { fill: var(--emerald-600); }
.widget-header > span { font-size: 10px; font-weight: 700; padding: 0.25rem 0.5rem; border-radius: 0.375rem; text-transform: uppercase; letter-spacing: 0.05em; background-color: var(--emerald-50); color: var(--emerald-600); }
.widget-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.widget-card li { display: flex; gap: 1rem; align-items: flex-start; }
.action-icon { width: 1.5rem; height: 1.5rem; margin-top: 0.25rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background-color: var(--emerald-100); }
.action-icon i { width: 0.875rem; height: 0.875rem; color: var(--emerald-600); }
.action-icon.warning { background-color: var(--amber-50); border: 1px solid var(--amber-100); }
.action-icon.warning i { color: var(--amber-600); }
.widget-card li > div > p:first-child { font-size: 0.875rem; font-weight: 700; color: var(--text-slate-800); }
.widget-card li > div > p:last-child { font-size: 0.75rem; color: var(--text-slate-500); margin-top: 0.25rem; line-height: 1.5; }
.widget-card.dark { background-color: var(--slate-900); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1); position: relative; overflow: hidden; }
.widget-card.dark .widget-title h4 { color: var(--white); }
.widget-card.dark .widget-icon { background-color: rgba(255, 255, 255, 0.05); color: var(--indigo-400); }
.widget-card.dark .widget-icon i { fill: transparent; }
.console { font-family: monospace; font-size: 10px; line-height: 1.7; position: relative; z-index: 10; }
.console-line { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.console-line .ceo-agent { color: var(--emerald-400); }
.console-line .mother-agent, .console-line .mother-agent-dim { color: var(--indigo-400); }
.console-line .mother-agent-dim { opacity: 0.6; }
.console-line > span:last-child { color: var(--text-slate-300); }
.console-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 3rem; background: linear-gradient(to top, var(--slate-900), transparent); pointer-events: none; }
.widget-card.dark button { width: 100%; margin-top: 1.5rem; padding: 0.75rem; font-size: 0.75rem; font-weight: 700; color: var(--indigo-300); background-color: rgba(255, 255, 255, 0.05); border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.05); position: relative; z-index: 10; }
.widget-card.dark button:hover { background-color: rgba(255, 255, 255, 0.1); }

/* --- DETAIL VIEWS --- */
.back-btn { display: flex; align-items: center; gap: 0.5rem; color: var(--text-slate-400); margin-bottom: 2rem; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.back-btn:hover { color: var(--text-slate-800); }
.back-btn i { width: 1rem; height: 1rem; }
.detail-header { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; margin-bottom: 2.5rem; gap: 1rem; }
@media (min-width: 768px) { .detail-header { flex-direction: row; align-items: center; } }
.detail-header h2 { display: flex; align-items: center; gap: 0.75rem; font-size: 2rem; margin: 0; }
.detail-header h2 i { color: var(--indigo-600); }
.detail-header p { color: var(--text-slate-400); margin-top: 0.25rem; }
.detail-header .status-badge { font-size: 0.75rem; font-weight: 700; padding: 0.5rem 1rem; border-radius: 9999px; display: flex; align-items: center; gap: 0.5rem; }
.detail-header .status-badge.active { background-color: var(--emerald-50); color: var(--emerald-700); }
.detail-header .status-badge.active.primary { background-color: var(--indigo-600); color: var(--white); box-shadow: 0 4px 6px -1px rgba(79,70,229,0.2), 0 2px 4px -1px rgba(79,70,229,0.1); }
.detail-header .status-badge.active.primary i { fill: var(--white); }
.detail-header .status-badge.active.secondary { background-color: var(--indigo-50); color: var(--indigo-700); border: 1px solid var(--indigo-100); }

/* AVA SCHEDULE */
.timeline { display: flex; flex-direction: column; gap: 1rem; }
.timeline-entry { display: flex; gap: 1.5rem; align-items: flex-start; position: relative; background-color: var(--white); padding: 1.5rem; border-radius: 2rem; border: 1px solid var(--slate-100); box-shadow: 0 1px 2px 0 rgba(0,0,0,0.02); }
.timeline-time { display: flex; flex-direction: column; align-items: center; width: 4rem; flex-shrink: 0; }
.timeline-time span { font-size: 0.875rem; font-weight: 900; color: var(--text-slate-800); }
.timeline-line { width: 1px; height: 4rem; background-color: var(--slate-100); margin: 0.5rem 0; }
.timeline-entry:last-child .timeline-line { display: none; }
.timeline-content { flex-grow: 1; }
.timeline-content h4 { font-family: 'Inter', sans-serif; font-weight: 700; }
.timeline-meta { display: flex; align-items: center; gap: 1rem; margin-top: 0.5rem; font-size: 0.75rem; color: var(--text-slate-400); }
.timeline-meta span { display: flex; align-items: center; gap: 0.25rem; }
.timeline-meta .completed { color: var(--emerald-500); font-weight: 700; }
.ai-log { margin-top: 1rem; padding: 0.75rem; background-color: var(--slate-50); border-radius: 0.75rem; border: 1px solid var(--slate-100); display: flex; align-items: center; gap: 0.5rem; }
.ai-log i { color: var(--indigo-500); fill: var(--indigo-500); width: 0.75rem; height: 0.75rem; }
.ai-log span { font-size: 10px; font-weight: 700; color: var(--text-slate-500); text-transform: uppercase; letter-spacing: -0.02em; }
.timeline-entry.highlighted { background-color: var(--indigo-50); border: 2px solid var(--indigo-100); padding: 2rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.timeline-entry.highlighted .timeline-time span { color: var(--indigo-600); }
.timeline-entry.highlighted .timeline-line { background-color: var(--indigo-200); height: 6rem; }
.timeline-header { display: flex; justify-content: space-between; align-items: flex-start; }
.timeline-header h4 { font-size: 1.25rem; font-weight: 900; }
.highlight-subtitle { color: var(--indigo-600); font-weight: 500; font-style: italic; margin-top: 0.25rem; }
.timeline-icon { padding: 0.75rem; background-color: var(--white); border-radius: 1rem; box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); border: 1px solid var(--indigo-100); }
.timeline-icon i { color: var(--indigo-600); width: 1.25rem; height: 1.25rem; }
.timeline-entry.highlighted .timeline-meta span { background-color: var(--white); padding: 0.25rem 0.5rem; border-radius: 9999px; border: 1px solid var(--indigo-100); }
.ai-intervention { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.ai-intervention > div:first-child { background-color: var(--white); padding: 1rem; border-radius: 1rem; border: 1px solid var(--indigo-100); display: flex; align-items: flex-start; gap: 0.75rem; box-shadow: 0 1px 3px 0 rgba(0,0,0,0.03); }
.ai-intervention i { color: var(--indigo-600); fill: var(--indigo-600); width: 1rem; height: 1rem; margin-top: 0.25rem; }
.ai-intervention p:first-child { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; color: var(--text-slate-700); }
.ai-intervention p:last-child { font-size: 0.875rem; margin-top: 0.25rem; line-height: 1.5; }
.ai-intervention .highlight-text { text-decoration: underline; font-weight: 700; color: var(--indigo-600); }
.ai-intervention .button-group { display: flex; gap: 0.5rem; }
.ai-intervention .button-group button { flex: 1; padding: 0.5rem; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 0.25rem; border-radius: 0.75rem; }
.ai-intervention .button-group .primary-btn { background-color: var(--indigo-600); }
.ai-intervention .button-group .secondary-btn { background-color: var(--white); border-color: var(--indigo-100); color: var(--indigo-600); }
.timeline-entry.faded { opacity: 0.6; filter: grayscale(50%); }
.timeline-entry.faded:hover { opacity: 1; filter: grayscale(0); }
.insight-box { margin-top: 2.5rem; background-color: var(--slate-900); border-radius: 2.5rem; padding: 2rem; display: flex; flex-direction: column; md:flex-row; gap: 1.5rem; align-items: center; color: var(--white); }
.insight-icon { width: 4rem; height: 4rem; background-color: var(--indigo-600); border-radius: 1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.insight-icon i { width: 2rem; height: 2rem; }
.insight-text { flex-grow: 1; text-align: center; }
@media (min-width: 768px) { .insight-box { flex-direction: row; text-align: left;} }
.insight-text h4 { color: var(--indigo-300); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; font-family: 'Inter';}
.insight-text p { font-size: 0.875rem; font-weight: 300; color: var(--text-slate-300); line-height: 1.6; }
.insight-box button { background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1); padding: 0.75rem 1.5rem; border-radius: 1rem; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); }

/* VN STAFF LOGS */
.zalo-view { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .zalo-view { grid-template-columns: 2fr 1fr; } }
.zalo-chat { background: var(--white); border-radius: 2rem; border: 1px solid var(--slate-100); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02); overflow: hidden; display: flex; flex-direction: column; height: 600px; }
.chat-header { padding: 1rem; background-color: var(--slate-50); border-bottom: 1px solid var(--slate-100); display: flex; align-items: center; justify-content: space-between; }
.contact-info { display: flex; align-items: center; gap: 0.75rem; }
.contact-info .avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; background-color: var(--indigo-100); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--indigo-600); font-size: 0.75rem; border: 1px solid var(--indigo-200); }
.contact-info p:first-child { font-size: 0.875rem; font-weight: 700; color: var(--text-slate-800); }
.contact-info p:last-child { font-size: 10px; color: var(--emerald-500); font-weight: 700; text-transform: uppercase; }
.chat-actions { display: flex; gap: 0.5rem; }
.chat-actions button { color: var(--text-slate-400); }
.chat-actions button:hover { color: var(--indigo-600); }
.message-area { flex-grow: 1; padding: 1.5rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; background-color: var(--slate-50); }
.message { display: flex; flex-direction: column; max-width: 80%; }
.message p { padding: 1rem; border-radius: 1.25rem; font-size: 0.875rem; line-height: 1.5; }
.message span { font-size: 10px; color: var(--text-slate-400); font-weight: 500; margin-top: 0.25rem; }
.message.sent { align-self: flex-end; align-items: flex-end; }
.message.sent p { background-color: var(--indigo-600); color: var(--white); border-bottom-right-radius: 0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.message.received { align-self: flex-start; align-items: flex-start; }
.message.received p { background-color: var(--white); color: var(--text-slate-700); border: 1px solid var(--slate-100); box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); border-bottom-left-radius: 0; }
.chat-input { padding: 1rem; background-color: var(--white); border-top: 1px solid var(--slate-100); display: flex; gap: 0.5rem; align-items: center; }
.chat-input div { flex-grow: 1; background-color: var(--slate-50); border-radius: 9999px; padding: 0.5rem 1rem; font-size: 0.75rem; color: var(--text-slate-400); font-style: italic; }
.chat-input button { background-color: var(--indigo-100); color: var(--indigo-600); padding: 0.5rem; border-radius: 50%; }

.zalo-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget { background-color: var(--white); padding: 1.5rem; border-radius: 2rem; border: 1px solid var(--slate-100); box-shadow: 0 1px 3px 0 rgba(0,0,0,0.03); }
.sidebar-widget h4 { font-size: 0.75rem; font-weight: 700; color: var(--text-slate-400); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; font-family: 'Inter'; }
.sidebar-widget ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.sidebar-widget li { display: flex; justify-content: space-between; align-items: center; }
.sidebar-widget li span:first-child { font-size: 0.75rem; color: var(--text-slate-600); font-weight: 500; }
.sidebar-widget li span:last-child { font-size: 10px; font-weight: 700; }
.sidebar-widget .completed { color: var(--emerald-500); }
.sidebar-widget .monitoring { color: var(--indigo-500); text-decoration: underline; }
.sidebar-widget.dark { background-color: var(--slate-900); color: var(--white); }
.sidebar-widget.dark h4 { color: var(--indigo-400); display: flex; align-items: center; gap: 0.5rem; }
.sidebar-widget.dark h4 i { color: var(--indigo-400); fill: var(--indigo-400); }
.sidebar-widget.dark p { font-size: 0.75rem; font-weight: 300; color: var(--text-slate-400); font-style: italic; line-height: 1.6; }
.sidebar-widget.light { background-color: var(--indigo-50); padding: 1.5rem; border-radius: 2rem; }
.sidebar-widget.light h4 { color: var(--indigo-600); }
.sidebar-widget.light p { font-size: 0.75rem; color: var(--text-slate-600); font-weight: 500; line-height: 1.6; }

/* PARENTS HEALTH */
.health-grid, .log-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .health-grid { grid-template-columns: repeat(2, 1fr); } .log-grid { grid-template-columns: 2fr 1fr;} }
.health-card { background-color: var(--white); padding: 2rem; border-radius: 2.5rem; border: 1px solid var(--slate-100); box-shadow: 0 1px 3px 0 rgba(0,0,0,0.02); }
.profile-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.avatar-large { width: 4rem; height: 4rem; border-radius: 1.5rem; background-color: var(--slate-100); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 900; color: var(--text-slate-400); border: 2px solid var(--slate-50); flex-shrink: 0; }
.avatar-large.secondary { background-color: var(--indigo-50); color: var(--indigo-300); border-color: var(--indigo-50); }
.profile-header h3 { font-size: 1.25rem; font-family: 'Inter'; }
.profile-header .status-stable { font-size: 0.75rem; color: var(--emerald-500); font-weight: 700; text-transform: uppercase; }
.vitals-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
.vital-card { background-color: var(--slate-50); padding: 1rem; border-radius: 1rem; }
.vital-card.large { grid-column: span 2; }
.vital-card p:first-child { font-size: 10px; color: var(--text-slate-400); font-weight: 700; text-transform: uppercase; margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.25rem; }
.vital-card p:first-child i { width: 0.75rem; height: 0.75rem; }
.vital-card p:last-child { font-size: 1.5rem; font-weight: 900; color: var(--text-slate-800); }
.vital-card span { font-size: 10px; font-weight: 500; color: var(--text-slate-400); }
.medication-card { background-color: var(--indigo-50); padding: 1rem; border-radius: 1rem; border: 1px solid var(--indigo-100); }
.medication-card h4 { font-size: 10px; font-weight: 700; color: var(--indigo-600); text-transform: uppercase; margin-bottom: 0.5rem; font-family: 'Inter'; }
.medication-card div { display: flex; justify-content: space-between; align-items: center; }
.medication-card span:first-child { font-size: 0.75rem; color: var(--text-slate-700); font-weight: 500; }
.status-taken { font-size: 10px; font-weight: 700; color: var(--emerald-600); background-color: var(--white); padding: 0.25rem 0.5rem; border-radius: 0.5rem; box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); display: flex; align-items: center; gap: 0.25rem; }
.insight-card-small { background-color: var(--slate-900); border-radius: 1.5rem; padding: 1rem; color: var(--white); }
.insight-card-small p:first-child { color: var(--indigo-400); font-size: 10px; font-weight: 700; text-transform: uppercase; display: flex; align-items: center; gap: 0.25rem; }
.insight-card-small > p:last-child { font-size: 0.75rem; font-weight: 300; color: var(--text-slate-400); line-height: 1.6; }
.log-grid { margin-top: 2rem; }
.log-card { background-color: var(--slate-50); padding: 2rem; border-radius: 2.5rem; border: 1px solid var(--slate-100); }
.log-card h4 { font-size: 0.75rem; font-weight: 700; color: var(--text-slate-400); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; font-family: 'Inter'; }
.log-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.log-card li { display: flex; gap: 1rem; align-items: flex-start; }
.log-icon { width: 2rem; height: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.log-card li:first-child .log-icon { background-color: var(--indigo-100); color: var(--indigo-600); }
.log-card li:last-child .log-icon { background-color: var(--emerald-100); color: var(--emerald-600); }
.log-card li p:first-child { font-size: 0.875rem; font-weight: 700; color: var(--text-slate-800); font-style: italic; }
.log-card li p:last-child { font-size: 10px; color: var(--text-slate-500); margin-top: 0.25rem; line-height: 1.5; }
.emergency-card { background-color: var(--rose-50); padding: 2rem; border-radius: 2.5rem; border: 1px solid var(--rose-100); display: flex; flex-direction: column; justify-content: space-between; }
.emergency-card div div:first-child { color: var(--rose-600); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; display: flex; align-items: center; gap: 0.25rem; margin-bottom: 1rem; }
.emergency-card p { font-size: 10px; color: var(--rose-800); font-weight: 500; line-height: 1.6; }
.emergency-card button { width: 100%; background-color: var(--rose-600); color: var(--white); font-weight: 700; font-size: 10px; text-transform: uppercase; padding: 0.75rem; border-radius: 1rem; box-shadow: 0 4px 10px -3px rgba(225, 29, 72, 0.3); margin-top: 1.5rem; }
.emergency-card button:hover { background-color: var(--rose-700); }

/* INDIVIDUAL HEALTH */
.sync-buttons .primary-btn { display: flex; align-items: center; gap: 0.5rem; }
.health-metrics-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .health-metrics-grid { grid-template-columns: repeat(3, 1fr); } }
.metric-card { background-color: var(--white); padding: 1.5rem; border-radius: 2.5rem; border: 1px solid var(--slate-100); box-shadow: 0 1px 2px 0 rgba(0,0,0,0.02); display: flex; flex-direction: column; justify-content: space-between; min-height: 12rem; }
.metric-card > div:first-child { display: flex; justify-content: space-between; align-items: flex-start; }
.metric-card > div:first-child div { padding: 0.75rem; border-radius: 1rem; }
.metric-card:nth-child(1) > div:first-child div { background-color: var(--blue-50); color: var(--blue-600); }
.metric-card:nth-child(2) > div:first-child div { background-color: var(--cyan-50); color: var(--cyan-600); }
.metric-card:nth-child(3) > div:first-child div { background-color: var(--amber-50); color: var(--amber-600); }
.metric-card span { font-size: 10px; font-weight: 700; color: var(--text-slate-400); text-transform: uppercase; }
.metric-card > div:last-child p:first-child { font-size: 2.25rem; font-weight: 900; color: var(--text-slate-800); }
.metric-card > div:last-child p:first-child span { font-size: 1rem; font-weight: 500; }
.metric-card > div:last-child p:last-child { font-size: 0.75rem; font-weight: 700; margin-top: 0.25rem; color: var(--emerald-500); }
.metric-card > div:last-child .warning { color: var(--rose-500); }

.schedule-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .schedule-grid { grid-template-columns: repeat(2, 1fr); } }
.schedule-card { background-color: var(--white); padding: 2rem; border-radius: 2.5rem; border: 1px solid var(--slate-100); }
.schedule-card h4 { font-size: 0.75rem; font-weight: 700; color: var(--text-slate-400); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; font-family: 'Inter'; }
.schedule-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.schedule-card li { display: flex; gap: 1rem; align-items: center; }
.schedule-card li > div:first-child { width: 3rem; height: 3rem; border-radius: 1rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; background-color: var(--slate-50); border: 1px solid var(--slate-100); color: var(--text-slate-400); }
.schedule-card li > div:last-child p:first-child { font-size: 0.875rem; font-weight: 700; color: var(--text-slate-800); display: flex; align-items: center; gap: 0.25rem; }
.schedule-card li > div:last-child p:last-child { font-size: 0.75rem; font-style: italic; color: var(--text-slate-500); margin-top: 0.25rem; }
.schedule-card li.faded { opacity: 0.5; }
.schedule-card li.suggestion-accepted > div:first-child { background-color: var(--indigo-600); color: var(--white); border-color: var(--indigo-700); box-shadow: 0 4px 6px -1px rgba(79,70,229,0.2); }
.schedule-card li.suggestion-accepted i { color: var(--indigo-500); fill: var(--indigo-500); }

.suggestion-card { padding: 2rem; border-radius: 2.5rem; background-color: var(--slate-900); color: var(--white); transition: all 0.5s ease-out; }
.suggestion-card > div > div:first-child { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--indigo-400); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.suggestion-card h4 { color: var(--white); font-size: 1.5rem; margin-bottom: 1rem; }
.suggestion-card p { font-size: 1.125rem; font-weight: 300; line-height: 1.6; margin-bottom: 1.5rem; font-style: italic; color: var(--white); opacity: 0.9; }
.suggestion-card button { background-color: var(--indigo-600); padding: 0.75rem 1.5rem; border-radius: 0.75rem; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; box-shadow: 0 4px 10px -3px rgba(99, 102, 241, 0.3); border: 1px solid rgba(99, 102, 241, 0.5); }
.suggestion-card button:hover { background-color: var(--indigo-700); }
.suggestion-card.accepted { background-color: var(--indigo-600); box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.2); }
.suggestion-card.accepted > div > div:first-child { color: var(--indigo-200); }
.suggestion-card.accepted > div div:last-child { display: flex; align-items: center; gap: 0.5rem; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; background-color: rgba(255, 255, 255, 0.2); padding: 0.5rem 1rem; border-radius: 0.75rem; width: fit-content; }

