/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* BACKGROUND */
body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  direction: rtl;
  background: #0b0e14;
  color: #e5e7eb;
  min-height: 100vh;
}

.app-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top right, #1f2937, transparent 40%),
    radial-gradient(circle at bottom left, #111827, transparent 40%);
  z-index: -1;
}

/* AUTH */
.auth-card {
  max-width: 420px;
  margin: 120px auto;
  background: #111827;
  padding: 40px;
  border-radius: 18px;
  border: 1px solid #1f2937;
  box-shadow: 0 30px 60px rgba(0,0,0,.6);
  text-align: center;
}

.auth-card h1 {
  margin-bottom: 8px;
}

.subtitle {
  color: #9ca3af;
  margin-bottom: 30px;
}

/* APP */
.app {
  max-width: 1200px;
  margin: auto;
}

/* TOPBAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #1f2937;
}

.logo {
  font-size: 18px;
  font-weight: 600;
}

/* CONTENT */
.content {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 30px;
  padding: 30px;
}

/* PANELS */
.panel {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}

.panel h2 {
  margin-bottom: 15px;
}

/* INPUTS */
input, textarea {
  width: 100%;
  background: #0b1220;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  color: #e5e7eb;
  font-size: 14px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

/* BUTTONS */
.btn {
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.btn.success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
}

.btn.danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: white;
}

.btn.small {
  padding: 8px 14px;
}

.btn:hover {
  transform: translateY(-2px);
}

/* NOTES */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.note-card {
  background: #0b1220;
  border: 1px solid #1f2937;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,.4);
}

.note-card b {
  color: #93c5fd;
}

/* STATUS */
.status {
  margin-top: 8px;
  color: #60a5fa;
  text-align: center;
}

.error {
  color: #ef4444;
  margin-top: 10px;
}

/* =====================
   Easter Egg
===================== */
.easter-egg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #020617, #000);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.easter-egg.hidden {
  display: none;
}

#fireworksCanvas {
  position: absolute;
  inset: 0;
}

.easter-text {
  position: relative;
  font-size: 72px;
  font-weight: 900;
  color: #fff;
  text-shadow:
    0 0 10px #38bdf8,
    0 0 30px #6366f1,
    0 0 60px #a855f7;
  animation: pop 1s ease-out infinite alternate;
}

@keyframes pop {
  from {
    transform: scale(1) rotate(-2deg);
  }
  to {
    transform: scale(1.1) rotate(2deg);
  }
}

.hint {
  position: absolute;
  bottom: 30px;
  color: #9ca3af;
  font-size: 14px;
}

