@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Animations */
@keyframes bounceIn {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  80% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

/* Base Styles */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8fafc;
  margin: 0;
  padding: 0;
}
#animatronicsGrid {
  gap: 1rem; /* Jarak yang lebih longgar */
}
#nonAnimList {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem; /* Sesuaikan jarak vertikal */
  align-content: start; /* Pastikan card mulai dari atas */
}
#nonAnimList .project-card {
  height: auto; /* Hapus fixed height */
  min-height: 65px; /* Beri min-height bukan fixed height */
  margin-bottom: 0; /* Hapus margin bottom */
  transition: all 0.2s ease;
}

/* Project Cards */
.project-card {
  /* max-width: 20rem;   sesuaikan: misal 20rem ≈ 320px */
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e5e7eb;       /* tipis, light gray */
  border-radius: 0.375rem;         /* 6px */
  box-shadow: none;                /* hapus shadow */
  padding: 1rem;
  transition: background .2s ease, border-color .2s ease;
}
.project-card:hover {
  background: #f9fafb;             /* very light gray on hover */
  border-color: #d1d5db;
  cursor: pointer;
}
/* buat judul card lebih besar & bold */
.project-card h2 {
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  margin-bottom: 0.25rem;
}
/* deskripsi sedikit lebih kecil & line-clamp */
.project-card p {
  font-size: 0.875rem; /* 14px */
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.project-card:active {
  cursor: grabbing;
}
/* beri petunjuk bahwa elemen bisa di-drag */
#projectList li, .task-card {
  cursor: grab;
}
#projectList li:active, .task-card:active {
  cursor: grabbing;
}

/* Task Cards */
.task-card {
  background: #fff;
  border-left: 4px solid;
  border-right: 4px solid;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: relative;
  transition: all 0.2s ease;
  cursor: pointer;
  
  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
}
.btn-new {
  background: #374151;             /* dark gray */
  color: #ffffff;
  border: none;
  border-radius: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  transition: background .2s ease;
}
.btn-new:hover {
  background: #4b5563;
}
/* Notes Panel Styles */
#notesDisplay {
  min-height: 100px;
  white-space: pre-wrap;
  word-break: break-word;
}

#notesDisplay:empty::before {
  content: "No notes available - Click to edit";
  color: #6b7280;
  font-style: italic;
}

#notesEditor {
  min-height: 150px;
  border-color: #e5e7eb;
}

#notesEditor:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 1px #6366f1;
}

#attendancePanel,
#notesPanel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;          /* 12px agak lebih bulat */
  padding: 1rem;
  transition: box-shadow .2s ease, transform .2s ease;
}
/* Attendance Styles */
/* Attendance Styles */
.attendance-item {
  transition: all 0.2s;
}

.attendance-item.editing {
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 0.375rem;
  padding: 0.5rem;
}

.name-input {
  flex: 1;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.25rem 0;
  margin-right: 0.5rem;
  background: transparent;
}

.name-input:focus {
  outline: none;
  border-color: #6366f1;
}

.status-select {
  width: 85px;
  transition: all 0.2s;
  border-radius: 9999px;
  padding: 0.25rem 0.5rem;
}

.status-select.editing {
  background: white;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.delete-member-btn {
  color: #ef4444;
  opacity: 0;
  transition: opacity 0.2s;
  margin-left: 0.5rem;
}

/* Hilangkan tanda panah default pada select */
.status-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none; /* Hapus ikon panah */
  padding-right: 0.5rem; /* Sesuaikan padding */
}

/* Style untuk select saat mode edit */
.status-select.editing {
  background-color: white;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  cursor: pointer;
}

/* Tambahkan ikon custom jika perlu (opsional) */
.status-select:after {
  content: "▼";
  font-size: 0.8em;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.attendance-item:hover .delete-member-btn {
  opacity: 1;
}
#attendancePanel:hover,
#notesPanel:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* Status Indicators */
.status-todo { border-left-color: #f59e0b; }
.status-inprogress { border-left-color: #3b82f6; }
.status-done { border-left-color: #10b981; }

/* Priority Markers */
.priority-high { border-right-color: #ef4444; }
.priority-medium { border-right-color: #f59e0b; }
.priority-low { border-right-color: #10b981; }

/* Modal Styles */
.modal-content {
  animation: bounceIn 0.4s ease-out both;
  border-radius: 0.75rem;
}

/* Scrollbar */
.custom-scrollbar {
  &::-webkit-scrollbar {
    width: 6px;
  }
  
  &::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }
  
  &::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
    
    &:hover {
      background: #a0aec0;
    }
  }
}

/* Utility Classes */
.animate-fade-in {
  animation: bounceIn 0.4s ease-out both;
}