/* Theme Variables - Light Mode Default */
:root {
  /* Base Colors */
  --primary: #4285f4;
  --primary-dark: #3367d6;
  --primary-light: #5e97f6;
  --secondary: #34a853;
  --secondary-dark: #2d8e48;
  --secondary-light: #4cbb6a;
  --accent: #ea4335;
  --accent-dark: #d33426;
  --accent-light: #ee5c50;

  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  
  /* Text */
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-light: #ffffff;
  
  /* Borders */
  --border-color: #dadce0;
  
  /* Shadows */
  --card-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
  
  /* Spacing */
  --spacer: 1rem;
  --spacer-sm: 0.5rem;
  --spacer-lg: 1.5rem;
  
  /* Layout */
  --header-height: 64px;
  --sidebar-width: 240px;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --bg-primary: #202124;
  --bg-secondary: #2d2e30;
  --text-primary: #f8f9fa;
  --text-secondary: #bdc1c6;
  --border-color: #3c4043;
  --card-shadow: 0 1px 2px 0 rgba(0,0,0,0.6), 0 1px 3px 1px rgba(0,0,0,0.4);
}

/* Compact Mode Overrides */
.compact-mode {
  --header-height: 48px;
  --sidebar-width: 200px;
  --spacer: 0.75rem;
  --spacer-sm: 0.375rem;
  --spacer-lg: 1.25rem;
}

/* Rest of your existing CSS... */
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
}

/* Update all color references to use variables */
.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
}

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

/* Continue updating all color references... */


/* Home Page Styles */
.page-home {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.search-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 50px;
  overflow: hidden;
}

.search-input {
  flex-grow: 1;
  padding: 1rem 1.5rem;
  border: none;
  font-size: 1rem;
}

.search-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.search-button:hover {
  background: var(--primary-hover);
}

.search-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.shortcut-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s;
}

.shortcut-card:hover {
  transform: translateY(-5px);
}

.shortcut-icon, .shortcut-fallback {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  background: var(--surface);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.shortcut-fallback {
  background: var(--primary);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.shortcut-name {
  text-align: center;
  font-size: 0.9rem;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
}

.empty-icon {
  width: 48px;
  height: 48px;
  fill: currentColor;
  margin-bottom: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.2s;
}

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

.activity-list {
  background: var(--surface);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.activity-item {
  display: flex;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

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

.activity-icon {
  margin-right: 1rem;
}

.activity-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.activity-details {
  flex-grow: 1;
}

.activity-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.activity-url {
  color: var(--primary);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  word-break: break-all;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .shortcut-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
  }

  .shortcut-icon, .shortcut-fallback {
    width: 48px;
    height: 48px;
  }
}