:root {
  --bg: #F0F2F5; /* Soft light gray */
  --surface: #FFFFFF;
  --text-main: #111827;
  --text-muted: #6B7280;
  
  --accent: #2563EB;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --green: #10B981;
  --green-soft: rgba(16, 185, 129, 0.1);
  --amber: #F59E0B;
  --amber-soft: rgba(245, 158, 11, 0.1);
  --red: #EF4444;
  --red-soft: rgba(239, 68, 68, 0.1);
  --purple: #8B5CF6;
  --purple-soft: rgba(139, 92, 246, 0.1);
  --dark: #111827;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body); background-color: var(--bg);
  color: var(--text-main); display: flex; height: 100vh; overflow: hidden;
}

/* Sidebar */
.sidebar { width: 80px; background-color: var(--surface); display: flex; flex-direction: column; z-index: 100; position: relative; box-shadow: 2px 0 10px rgba(0,0,0,0.02); }
.sidebar-header { height: 80px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #F3F4F6; }
.logo-box { width: 40px; height: 40px; background: var(--dark); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 800; font-size: 20px; color: white; }
.sidebar-nav { flex: 1; padding: 20px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.nav-item { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 20px; transition: all 0.2s; }
.nav-item:hover { background: #F3F4F6; color: var(--text-main); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }
.sidebar-footer { padding-bottom: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.user-profile { display: flex; justify-content: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-heading); color: white; }
.avatar.m { background-color: var(--accent); }
.avatar.a { background-color: var(--purple); }
.avatar.s { background-color: var(--amber); }

.avatar-small { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; font-family: var(--font-heading); color: white; }
.avatar-small.m { background-color: var(--accent); }
.avatar-small.a { background-color: var(--purple); }
.avatar-small.s { background-color: var(--amber); }

/* Main Content */
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.top-header { height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; background: var(--surface); box-shadow: 0 2px 10px rgba(0,0,0,0.02); z-index: 10; }
.top-nav { display: flex; align-items: center; gap: 30px; }
.top-brand { font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: var(--dark); }
.top-links { display: flex; gap: 10px; }
.pill-nav { background: transparent; border: none; padding: 8px 16px; border-radius: 999px; font-family: var(--font-heading); font-weight: 500; font-size: 14px; color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.pill-nav:hover { background: #F3F4F6; color: var(--text-main); }
.pill-nav.active { background: var(--dark); color: white; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.icon-btn { background: #F3F4F6; border: none; width: 40px; height: 40px; border-radius: 50%; color: var(--text-muted); font-size: 16px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: #E5E7EB; color: var(--text-main); }

.pill-btn { padding: 10px 20px; border-radius: 999px; font-family: var(--font-heading); font-weight: 500; font-size: 14px; cursor: pointer; border: none; transition: all 0.2s; }
.pill-btn.black { background: var(--dark); color: white; }
.pill-btn.black:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.pill-btn.outline { background: transparent; border: 1px solid #D1D5DB; color: var(--text-main); }
.pill-btn.outline:hover { background: #F3F4F6; }
.mt-3 { margin-top: 15px; }
.mb-4 { margin-bottom: 24px; }
.flex-1 { flex: 1; }

.content-container { flex: 1; padding: 30px 40px; overflow-y: auto; }
.view { display: none; animation: fadeIn 0.3s ease-out; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Grids */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.span-2 { grid-column: span 2; }

/* Components */
.soft-card { background: var(--surface); border-radius: 24px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); padding: 24px; }
.kpi-card { display: flex; justify-content: space-between; align-items: center; transition: transform 0.2s; }
.kpi-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); }
.kpi-icon { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; background: var(--blue-soft); color: var(--accent); }
.kpi-icon.purple { background: var(--purple-soft); color: var(--purple); }
.kpi-icon.amber { background: var(--amber-soft); color: var(--amber); }
.kpi-icon.green { background: var(--green-soft); color: var(--green); }
.kpi-details { flex: 1; }
.kpi-label { font-size: 13px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.kpi-value { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: var(--text-main); }
.kpi-delta { font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 5px; margin-top: 4px;}
.kpi-delta.pos { color: var(--green); }
.kpi-delta.neg { color: var(--red); }
.kpi-delta.neutral { color: var(--text-muted); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card-header h2 { font-family: var(--font-heading); font-size: 18px; font-weight: 600; }
.chart-container { position: relative; flex: 1; min-height: 250px; width: 100%; }

/* News & LinkedIn */
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-item { padding: 12px; background: #F9FAFB; border-radius: 12px; border-left: 3px solid var(--accent); }
.news-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; display: inline-block; margin-bottom: 5px; }
.news-tag.market { background: var(--purple-soft); color: var(--purple); }
.news-tag.team { background: var(--green-soft); color: var(--green); }
.news-item p { font-size: 13px; color: var(--text-main); line-height: 1.4; }
.add-news { display: flex; gap: 10px; margin-top: 15px; }
.add-news input { flex: 1; padding: 10px 15px; border-radius: 999px; border: 1px solid #D1D5DB; outline: none; font-family: var(--font-body); }
.add-news input:focus { border-color: var(--accent); }

.linkedin-feed { display: flex; flex-direction: column; gap: 10px; }
.li-item { display: flex; gap: 12px; padding: 12px; background: #F9FAFB; border-radius: 12px; }
.li-icon { width: 32px; height: 32px; border-radius: 50%; background: #0A66C2; color: white; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.li-content { font-size: 13px; line-height: 1.4; }
.li-time { display: block; font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Tables */
.table-responsive { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 12px 15px; font-size: 12px; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid #F3F4F6; font-weight: 600; }
.data-table td { padding: 15px; border-bottom: 1px solid #F3F4F6; font-size: 14px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.font-mono { font-family: monospace; font-size: 15px; }

/* Badges */
.badge-soft { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.badge-soft.tech { background: var(--blue-soft); color: var(--accent); }
.badge-soft.marketing { background: var(--purple-soft); color: var(--purple); }
.badge-soft.blue { background: var(--blue-soft); color: var(--accent); }
.badge-solid { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; color: white; }
.badge-solid.green { background: var(--green); }
.badge-solid.amber { background: var(--amber); }

/* Campaigns */
.campaign-list { display: flex; flex-direction: column; gap: 15px; }
.campaign-item { background: #F9FAFB; border-radius: 16px; padding: 15px; display: flex; justify-content: space-between; align-items: center; }
.camp-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.camp-info p { font-size: 13px; color: var(--text-muted); }
.camp-stats { display: flex; gap: 20px; text-align: center; }
.camp-stats div { font-size: 12px; color: var(--text-muted); }
.camp-stats strong { font-size: 16px; color: var(--text-main); display: block; margin-bottom: 2px; }

/* Team Cards */
.team-card { text-align: center; align-items: center; display: flex; flex-direction: column; }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; font-family: var(--font-heading); color: white; margin-bottom: 15px; }
.team-avatar.m { background: var(--accent); }
.team-avatar.a { background: var(--purple); }
.team-card h3 { font-size: 18px; margin-bottom: 5px; }
.team-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 15px; }
.team-meta { background: #F3F4F6; padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 500; }

/* Calendar */
.calendar-wrapper { display: flex; flex-direction: column; gap: 15px; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; }
.calendar-header h3 { font-size: 16px; font-family: var(--font-heading); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day-name { text-align: center; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; padding-bottom: 10px; }
.day { background: #F9FAFB; border-radius: 12px; min-height: 80px; padding: 8px; font-size: 14px; font-weight: 500; display: flex; flex-direction: column; gap: 4px; }
.day.empty { background: transparent; color: #D1D5DB; }
.day.active { background: #FFFFFF; border: 2px solid var(--accent); }
.event { font-size: 11px; padding: 4px 6px; border-radius: 6px; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event.blue { background: var(--accent); }
.event.purple { background: var(--purple); }
.event.green { background: var(--green); }

/* Transcription / Meetings */
.transcription-area { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.transcription-area label { font-size: 14px; font-weight: 500; }
.transcription-area textarea { flex: 1; padding: 15px; border-radius: 16px; border: 1px solid #D1D5DB; background: #F9FAFB; font-family: var(--font-body); font-size: 14px; outline: none; resize: none; }
.transcription-area textarea:focus { border-color: var(--accent); background: #FFFFFF; }
.transcription-actions { display: flex; justify-content: flex-end; }
.mom-list { display: flex; flex-direction: column; gap: 15px; }
.mom-item { padding: 15px; background: #F9FAFB; border-radius: 16px; border-left: 4px solid var(--accent); }
.mom-date { font-size: 12px; color: var(--text-muted); margin-bottom: 5px; }
.mom-item h3 { font-size: 16px; margin-bottom: 8px; }
.mom-item p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* Documents */
.upload-area { border: 2px dashed #D1D5DB; border-radius: 20px; padding: 40px 20px; text-align: center; margin-bottom: 20px; background: #F9FAFB; transition: all 0.2s; cursor: pointer; }
.upload-area:hover { border-color: var(--accent); background: var(--accent-soft); }
.upload-icon { font-size: 40px; color: var(--text-muted); margin-bottom: 10px; }
.upload-area h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.upload-area p { font-size: 13px; color: var(--text-muted); }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; }
.doc-card { display: flex; align-items: center; gap: 15px; padding: 15px; background: #F9FAFB; border-radius: 16px; transition: transform 0.2s; }
.doc-card:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.doc-icon { font-size: 24px; width: 40px; text-align: center; }
.doc-icon.blue { color: var(--accent); }
.doc-icon.red { color: var(--red); }
.doc-info { flex: 1; overflow: hidden; }
.doc-info h4 { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.doc-info p { font-size: 12px; color: var(--text-muted); }

/* Brainstorming */
.brainstorm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.idea-card { background: #FEF3C7; border-radius: 16px; padding: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.idea-card.image-idea { background: #DBEAFE; }
.idea-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.idea-author { font-weight: 600; font-size: 13px; }
.idea-content { font-size: 14px; line-height: 1.5; }
.idea-image-placeholder { margin-top: 10px; background: rgba(0,0,0,0.05); border-radius: 8px; padding: 20px; text-align: center; color: var(--text-muted); font-size: 12px; display: flex; flex-direction: column; gap: 5px; }

/* Modals */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(17, 24, 39, 0.4); backdrop-filter: blur(4px); z-index: 1000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { width: 100%; max-width: 500px; padding: 30px; }
.modal-content h3 { margin-bottom: 15px; font-family: var(--font-heading); }
.modal-content textarea { width: 100%; padding: 15px; border-radius: 12px; border: 1px solid #D1D5DB; font-family: var(--font-body); font-size: 14px; outline: none; resize: none; margin-bottom: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
