:root {
  --bg-primary: #1c1c24;
  --bg-card: #2b2b36;
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0b0;
  --accent: #ff4f66;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 20px;
  min-height: 100vh;
}

header { text-align: center; margin-bottom: 30px; }

h1 { 
  margin: 0; 
  font-size: 1.8rem; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 12px;
}

.header-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

header p { color: var(--text-secondary); margin-top: 5px; }

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.widget-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.widget-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  border-color: var(--accent);
}

.card-icon { font-size: 2rem; margin-bottom: 10px; }
.widget-card h2 { margin: 0 0 10px 0; font-size: 1.2rem; color: var(--text-primary); border: none; padding: 0; }
.widget-card p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; flex-grow: 1; }

.saved-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.action-btn {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
}

.load-btn { background: var(--accent); color: white; }
.delete-btn { background: #444; color: #ff6b6b; }
.load-btn:hover { opacity: 0.9; }
.delete-btn:hover { background: #555; }

.floating-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 64px;
  height: 64px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 1000;
}