/* 🔥 GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 🌙 BODY */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
}

/* ✨ GLASS CARD */
.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* 🔘 BUTTONS */
.btn {
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
  font-weight: 500;
}

/* Primary */
.btn-primary {
  background: #3b82f6;
}
.btn-primary:hover {
  background: #2563eb;
}

/* Success */
.btn-success {
  background: #22c55e;
}
.btn-success:hover {
  background: #16a34a;
}

/* Danger */
.btn-danger {
  background: #ef4444;
}
.btn-danger:hover {
  background: #dc2626;
}

/* Warning */
.btn-warning {
  background: #eab308;
  color: black;
}
.btn-warning:hover {
  background: #ca8a04;
}

/* 🧾 INPUT FIELDS */
.input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: #1e293b;
  color: white;
}

.input::placeholder {
  color: #94a3b8;
}

/* 📅 CALENDAR GRID */
#calendar {
  margin-top: 20px;
}

/* 📅 DAY CELL */
.day {
  padding: 14px;
  text-align: center;
  border-radius: 10px;
  transition: 0.2s;
  cursor: pointer;
  font-size: 14px;
}

/* 🎨 STATUS COLORS */
.present {
  background: #22c55e;
}

.absent {
  background: #ef4444;
}

.holiday {
  background: #eab308;
  color: black;
}

.sunday {
  background: #1e293b;
  opacity: 0.5;
  cursor: not-allowed;
}

/* 🔥 HOVER EFFECT */
.day:hover {
  transform: scale(1.05);
}

/* 📦 CENTER CONTAINER */
.container {
  max-width: 400px;
  margin: auto;
}

/* 🧠 TEXT */
.title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.subtitle {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 20px;
  text-align: center;
}

/* ⚡ FADE ANIMATION */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 📷 QR CANVAS */
#qr {
  margin: 10px auto;
  display: block;
}

/* 🔄 LOADING TEXT */
.loading {
  color: #94a3b8;
  text-align: center;
  margin-top: 10px;
}