/* TimeGrain - Newspaper Style Application */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Source+Serif+Pro:wght@400;600;700&display=swap');

/* CSS Variables */
:root {
  --primary: #1F2937;
  --secondary: #4B5563;
  --accent: #DC2626;
  --background: #F5F5F4;
  --surface: #FFFFFF;
  --text: #111827;
  --text-secondary: #6B7280;
  --border-radius: 2px;
  --sidebar-width: 240px;
  --header-height: 64px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Source Serif Pro', serif;
  font-weight: 400;
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  line-height: 1.3;
}

/* Layout Structure */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--surface);
  border-right: 1px solid #E5E7EB;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid #E5E7EB;
}

.sidebar-logo h1 {
  font-size: 24px;
  color: var(--primary);
  font-family: 'Libre Baskerville', serif;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
}

.nav-list {
  list-style: none;
}

.nav-item {
  margin: 4px 0;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--secondary);
  text-decoration: none;
  transition: background-color 0.2s ease;
  position: relative;
  font-size: 15px;
}

.nav-link:hover {
  background-color: var(--background);
}

.nav-link.active {
  background-color: #F9FAFB;
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--accent);
}

.nav-icon {
  margin-right: 12px;
  font-size: 18px;
}

/* Main Content Area */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  height: var(--header-height);
  background-color: var(--surface);
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left h1 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 2px;
}

.header-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Content Area */
.content {
  padding: 32px;
  flex: 1;
}

/* Cards */
.card {
  background-color: var(--surface);
  border: 1px solid #E5E7EB;
  border-radius: var(--border-radius);
  padding: 24px;
  transition: background-color 0.2s ease;
}

.card:hover {
  background-color: #FAFAFA;
}

.card-title {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 16px;
  font-family: 'Libre Baskerville', serif;
}

/* Metric Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.metric-card {
  background-color: var(--surface);
  border: 1px solid #E5E7EB;
  border-radius: var(--border-radius);
  padding: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.metric-card:hover {
  background-color: #FAFAFA;
}

.metric-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 32px;
  color: var(--primary);
  font-weight: 700;
  font-family: 'Libre Baskerville', serif;
  margin-bottom: 8px;
}

.metric-trend {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #E5E7EB;
}

.trend-up {
  color: var(--accent);
}

.trend-down {
  color: var(--text-secondary);
}

/* Grid Layouts */
.two-column-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 20px;
  margin-bottom: 24px;
}

.three-column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border: 1px solid #E5E7EB;
  border-radius: var(--border-radius);
  background-color: var(--surface);
  color: var(--text);
  font-family: 'Source Serif Pro', serif;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background-color: var(--background);
}

.btn-primary {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: #B91C1C;
}

.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

/* Dropdown/Select */
select, .select {
  padding: 8px 32px 8px 12px;
  border: 1px solid #E5E7EB;
  border-radius: var(--border-radius);
  background-color: var(--surface);
  color: var(--text);
  font-family: 'Source Serif Pro', serif;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%234B5563' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* Input Fields */
input[type="text"],
input[type="search"],
input[type="number"] {
  padding: 10px 12px;
  border: 1px solid #E5E7EB;
  border-radius: var(--border-radius);
  background-color: var(--surface);
  color: var(--text);
  font-family: 'Source Serif Pro', serif;
  font-size: 14px;
  width: 100%;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="number"]:focus {
  outline: none;
  border-color: var(--accent);
}

.search-input {
  width: 400px;
  padding-left: 40px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 13C10.3137 13 13 10.3137 13 7C13 3.68629 10.3137 1 7 1C3.68629 1 1 3.68629 1 7C1 10.3137 3.68629 13 7 13Z' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 15L11.5 11.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}

/* Timeline */
.timeline-bar {
  height: 80px;
  background: linear-gradient(to right, #F3F4F6, #F3F4F6);
  border: 1px solid #E5E7EB;
  border-radius: var(--border-radius);
  position: relative;
  margin-top: 16px;
  display: flex;
  align-items: flex-end;
  padding: 8px;
  gap: 2px;
}

.timeline-segment {
  flex: 1;
  background-color: var(--primary);
  border-radius: 1px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  position: relative;
}

.timeline-segment:hover {
  opacity: 0.8;
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* App List */
.app-list {
  list-style: none;
}

.app-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #E5E7EB;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.app-item:last-child {
  border-bottom: none;
}

.app-item:hover {
  background-color: #FAFAFA;
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
}

.app-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius);
  background-color: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 16px;
}

.app-info {
  flex: 1;
}

.app-name {
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
}

.app-time {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-right: 12px;
}

.progress-bar {
  height: 6px;
  background-color: #E5E7EB;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  background-color: var(--accent);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Insight Cards */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.insight-card {
  background-color: var(--surface);
  border: 1px solid #E5E7EB;
  border-radius: var(--border-radius);
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.insight-card:hover {
  border-color: var(--accent);
}

.insight-category {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.insight-headline {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 12px;
  font-family: 'Libre Baskerville', serif;
}

.insight-body {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.insight-timestamp {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.link-accent {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.link-accent:hover {
  text-decoration: underline;
}

/* Featured Card */
.featured-card {
  background-color: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--border-radius);
  padding: 32px;
  margin-bottom: 24px;
}

.featured-label {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  font-weight: 600;
}

.featured-headline {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 20px;
  font-family: 'Libre Baskerville', serif;
}

.featured-body {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.7;
}

.recommendation-section {
  background-color: var(--background);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-top: 20px;
}

.recommendation-section h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.recommendation-section ul {
  margin-left: 20px;
  color: var(--text-secondary);
}

.recommendation-section li {
  margin-bottom: 8px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 24px;
}

.tab {
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tab:hover {
  color: var(--primary);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* Table */
.table-container {
  background-color: var(--surface);
  border: 1px solid #E5E7EB;
  border-radius: var(--border-radius);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background-color: var(--background);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-family: 'Libre Baskerville', serif;
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  border-bottom: 1px solid #E5E7EB;
  cursor: pointer;
  user-select: none;
}

th:hover {
  background-color: #E5E7EB;
}

td {
  padding: 16px;
  border-bottom: 1px solid #E5E7EB;
  font-size: 14px;
}

tr:nth-child(even) {
  background-color: var(--background);
}

tr:hover {
  background-color: #F3F4F6;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Tags and Badges */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--border-radius);
  font-size: 12px;
  font-weight: 600;
  background-color: var(--background);
  color: var(--text-secondary);
  border-left: 3px solid var(--accent);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--border-radius);
  font-size: 12px;
  background-color: var(--background);
  color: var(--text-secondary);
}

/* Timeline View Specific */
.timeline-container {
  background-color: var(--surface);
  border: 1px solid #E5E7EB;
  border-radius: var(--border-radius);
  padding: 24px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.timeline-entry {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #E5E7EB;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.timeline-entry:hover {
  background-color: var(--background);
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
}

.timeline-time {
  min-width: 80px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.timeline-content {
  flex: 1;
}

.timeline-app {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.timeline-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Filter Panel */
.filter-panel {
  position: fixed;
  right: 0;
  top: 0;
  width: 320px;
  height: 100vh;
  background-color: var(--surface);
  border-left: 1px solid #E5E7EB;
  padding: 24px;
  overflow-y: auto;
  z-index: 200;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.filter-header h2 {
  font-size: 20px;
}

.filter-section {
  margin-bottom: 24px;
}

.filter-section h3 {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--primary);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

.checkbox-label input {
  margin-right: 8px;
}

/* Chart Placeholder */
.chart {
  height: 200px;
  background: linear-gradient(to top, var(--accent), #F87171);
  border-radius: var(--border-radius);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  color: white;
  font-size: 12px;
  position: relative;
}

.stacked-bar-chart {
  display: flex;
  height: 40px;
  background-color: #E5E7EB;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin: 16px 0;
}

.bar-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 600;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.bar-segment:hover {
  opacity: 0.85;
}

/* Legend */
.legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 1px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px;
  border-top: 1px solid #E5E7EB;
}

.page-number {
  padding: 6px 12px;
  border: 1px solid #E5E7EB;
  border-radius: var(--border-radius);
  background-color: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}

.page-number:hover {
  background-color: var(--background);
}

.page-number.active {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

.modal {
  background-color: var(--surface);
  border-radius: var(--border-radius);
  width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid #E5E7EB;
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 20px;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 24px;
  border-top: 1px solid #E5E7EB;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Settings Layout */
.settings-layout {
  display: flex;
  gap: 0;
}

.settings-sidebar {
  width: 220px;
  background-color: var(--surface);
  border: 1px solid #E5E7EB;
  border-radius: var(--border-radius);
  padding: 0;
  height: fit-content;
}

.settings-nav-list {
  list-style: none;
}

.settings-nav-item {
  border-bottom: 1px solid #E5E7EB;
}

.settings-nav-item:last-child {
  border-bottom: none;
}

.settings-nav-link {
  display: block;
  padding: 16px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.settings-nav-link:hover {
  background-color: var(--background);
}

.settings-nav-link.active {
  background-color: var(--background);
  font-weight: 600;
  color: var(--primary);
}

.settings-content {
  flex: 1;
  background-color: var(--surface);
  border: 1px solid #E5E7EB;
  border-radius: var(--border-radius);
  padding: 32px;
  margin-left: 24px;
}

.settings-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #E5E7EB;
}

.settings-section:last-child {
  border-bottom: none;
}

.settings-section h3 {
  font-size: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 14px;
}

.form-help {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #D1D5DB;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--accent);
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.toggle-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Floating Button */
.floating-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  padding: 12px 24px;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  transition: transform 0.2s ease;
}

.floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

/* User Profile Icon */
.user-profile {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
}

/* Utility Classes */
.text-secondary {
  color: var(--text-secondary);
}

.text-accent {
  color: var(--accent);
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mt-16 {
  margin-top: 16px;
}

.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

/* Productivity Score */
.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0% 75%, #E5E7EB 75% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
}

.score-inner {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.score-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Libre Baskerville', serif;
}

.score-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.breakdown-bar {
  display: flex;
  height: 24px;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 12px;
}

.breakdown-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.breakdown-segment:hover {
  opacity: 0.85;
}

.breakdown-legend {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
}

/* Storage Usage */
.storage-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0% 24%, #E5E7EB 24% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.storage-inner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.storage-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.storage-total {
  font-size: 11px;
  color: var(--text-secondary);
}

.storage-breakdown {
  list-style: none;
  margin-top: 16px;
}

.storage-breakdown li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #E5E7EB;
  font-size: 14px;
}

.storage-breakdown li:last-child {
  border-bottom: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .two-column-grid {
    grid-template-columns: 1fr;
  }
  
  .insights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 60px;
  }
  
  .main-content {
    margin-left: 60px;
  }
  
  .nav-link span {
    display: none;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .search-input {
    width: 100%;
  }
}
