:root {
  --bg-app: #fdf6f0; /* Soft Cream */
  --bg-card: #ffffff;
  --text-main: #5d534a; /* Warm Coffee Brown */
  --text-muted: #a0938a;
  --border: #f1e4d9;
  --status-reading: #a3c9f1; /* Pastel Blue */
  --status-finished: #a8dadc; /* Pastel Mint */
  --status-wishlist: #faedcd; /* Soft Butter */
  --accent: #ffadaa; /* Pastel Rose */
}

* {
  box-sizing: border-box;
  font-family: "Quicksand", "Segoe UI", sans-serif;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  margin: 0;
  padding: 80px 20px 20px;
  min-height: 100vh;
}

/* Header & Sidebar - Matching the Home Dashboard */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  border-bottom: 2px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.menu-trigger {
  font-size: 24px;
  cursor: pointer;
  margin-right: 15px;
  background: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#view-title {
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Sidebar Styling */
#sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: #fffcf9;
  z-index: 2000;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 10px 0 30px rgba(93, 83, 74, 0.1);
  padding: 30px 20px;
}
#sidebar.open {
  left: 0;
}
#sidebar ul {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}
#sidebar li a {
  display: block;
  padding: 15px;
  text-decoration: none;
  font-weight: 600;
  color: var(--text-main);
  border-radius: 12px;
  margin-bottom: 5px;
}
#sidebar li a:hover {
  background: var(--status-wishlist);
}

/* Main Content Area */
#app-content {
  max-width: 800px;
  margin: 0 auto;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.add-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 0px #e59a97;
  transition: 0.1s;
}
.add-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0px #e59a97;
}

/* Book Cards */
.item-list-card {
  background: white;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 4px 15px rgba(93, 83, 74, 0.03);
}
.item-list-card:hover {
  transform: scale(1.02);
}

.proj-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

.status-text-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: capitalize;
  font-size: 12px;
  font-weight: 700;
  background: #f8f8f8;
  padding: 6px 12px;
  border-radius: 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-reading {
  background: var(--status-reading);
}
.dot-finished {
  background: var(--status-finished);
}
.dot-wishlist {
  background: var(--status-wishlist);
  border: 1px solid #e3d5b5;
}

/* Suggestion Pills */
.suggestions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.skill-pill {
  background: white;
  border: 2px solid var(--border);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.skill-pill:hover {
  background: var(--status-wishlist);
  transform: translateY(-2px);
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(93, 83, 74, 0.3);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 450px;
  margin: 50px auto;
  padding: 30px;
  border-radius: 30px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-muted);
}

.field-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin: 15px 0 5px 5px;
  color: var(--text-muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border);
  border-radius: 15px;
  font-family: inherit;
  background: #fffcf9;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--status-reading);
}

.btn-full {
  flex: 1;
  background: var(--status-reading);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 0 #7ca9d9;
}
.btn-full:active {
  transform: translateY(3px);
  box-shadow: 0 0px 0 #7ca9d9;
}

.btn-delete-modal {
  background: #fff;
  border: 2px solid #fee2e2;
  border-radius: 15px;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#book-list {
  animation: fadeIn 0.5s ease;
}
