#homeView {
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

#shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 4px;
}

@media (max-width: 576px) {
  #shelf { 
    grid-template-columns: 1fr; 
  }
}

.notebook-cover {
  position: relative;
  height: 200px;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
}

.notebook-cover:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.12);
}

.notebook-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.notebook-color-blue::after { background: linear-gradient(135deg, #6366f1, #10b981); }
.notebook-color-green::after { background: linear-gradient(135deg, #10b981, #22c55e); }
.notebook-color-purple::after { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.notebook-color-orange::after { background: linear-gradient(135deg, #f97316, #fb923c); }
.notebook-color-red::after { background: linear-gradient(135deg, #ef4444, #f87171); }

.notebook-inner {
  z-index: 2;
  text-align: center;
}

.notebook-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: #333;
  word-wrap: break-word;
}

.notebook-color-blue .notebook-title { color: #4f46e5; }
.notebook-color-green .notebook-title { color: #059669; }
.notebook-color-purple .notebook-title { color: #7c3aed; }
.notebook-color-orange .notebook-title { color: #ea580c; }
.notebook-color-red .notebook-title { color: #dc2626; }

.card-menu {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 10;
}

.card-menu .btn {
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-menu .btn:hover { 
  background: #fff; 
}
