* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #root { height: 100%; width: 100%; }
body { font-family: 'Nunito', 'Segoe UI', sans-serif; overflow: hidden; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadeIn 0.5s ease-out forwards; }
.slide-in { animation: slideIn 0.4s ease-out forwards; }

.btn {
  padding: 10px 20px; border: none; border-radius: 10px; cursor: pointer;
  font-family: 'Nunito', sans-serif; font-weight: 600; font-size: 14px;
  transition: all 0.25s ease; display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74,126,194,0.25); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, #4a7ec2, #6b9fe0); color: white; }
.btn-secondary { background: white; color: #4a7ec2; border: 2px solid #c8daf8; }
.btn-danger { background: linear-gradient(135deg, #e07474, #d45b5b); color: white; }
.btn-success { background: linear-gradient(135deg, #5bb88a, #4aad7a); color: white; }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 8px; }

.card {
  background: rgba(255,255,255,0.88); backdrop-filter: blur(12px);
  border-radius: 16px; padding: 24px;
  box-shadow: 0 4px 24px rgba(74,126,194,0.1), 0 1px 4px rgba(74,126,194,0.05);
  border: 1px solid rgba(200,218,248,0.5);
  transition: all 0.3s ease;
}
.card:hover { box-shadow: 0 8px 32px rgba(74,126,194,0.15); }

.input {
  padding: 10px 14px; border: 2px solid #c8daf8; border-radius: 10px;
  font-family: 'Nunito', sans-serif; font-size: 14px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; background: white;
}
.input:focus { border-color: #4a7ec2; box-shadow: 0 0 0 3px rgba(74,126,194,0.15); }

.sidebar-item {
  padding: 10px 16px; border-radius: 10px; cursor: pointer;
  transition: all 0.2s; display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: #5a7ba5;
}
.sidebar-item:hover { background: rgba(74,126,194,0.08); color: #3a6bb5; }
.sidebar-item.active { background: rgba(74,126,194,0.12); color: #2a5ba5; font-weight: 700; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-tt { background: #ffeeba; color: #856404; }
.badge-normal { background: #d4edda; color: #155724; }

.output-card {
  background: rgba(255,255,255,0.7); border-radius: 14px; padding: 18px;
  border: 1px solid rgba(200,218,248,0.4); cursor: pointer;
  transition: all 0.3s ease; display: flex; align-items: center; gap: 16px;
}
.output-card:hover {
  background: rgba(255,255,255,0.95); transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(74,126,194,0.15);
}
.output-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.tag { display: inline-block; padding: 4px 10px; background: #e8f0fe; border-radius: 6px; font-size: 12px; color: #3a6bb5; margin: 2px; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c8daf8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a0bce8; }
