/* Conimo Realtime — Glassmorphic Dark Theme */

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #0f172a;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.10), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.08), transparent 40%);
  color: #f1f5f9;
  min-height: 100vh;
  padding: 24px;
}

.app {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.header h1 {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #a78bfa, #6366f1, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.live-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.content {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.item-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  transition: all 0.15s;
}

.item:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(30, 41, 59, 0.8);
}

.item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.item-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-edit {
  background: transparent;
  border: 1px solid transparent;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  width: 100%;
  border-radius: 4px;
  padding: 2px 4px;
  transition: all 0.2s;
}

.title-edit:focus, .title-edit:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

.item.done .title-edit { 
  text-decoration: line-through; 
  opacity: 0.5; 
}

.btn-delete {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.2);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0 4px;
}

.item:hover .btn-delete {
  color: #f87171;
}

.btn-delete:hover {
  color: #ef4444 !important;
}

.add-task-container {
  display: flex;
  gap: 12px;
}

.add-task-input {
  flex: 1;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: all 0.2s;
}

.add-task-input:focus {
  border-color: #6366f1;
  background: rgba(30, 41, 59, 0.8);
}

.priority-select {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
}

.priority-select:focus,
.priority-select:hover {
  border-color: #6366f1;
  background: rgba(30, 41, 59, 0.8);
}

.priority-select option {
  background: #1e293b;
  color: #f1f5f9;
}

.btn-add {
  background: linear-gradient(135deg, #6366f1, #34d399);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0 20px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s;
}

.btn-add:active {
  transform: scale(0.96);
}

.priority {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
}

.priority-high   { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.priority-medium { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.priority-low    { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

@media (max-width: 768px) {
  body { padding: 12px; }
}
