:root {
  --bg-app: #fdf6f0; /* Soft Cream */
  --bg-card: #ffffff;
  --text-main: #5d534a; /* Warm Coffee Brown */
  --text-muted: #a0938a;
  --border: #f1e4d9;

  /* Status Colors */
  --status-red: #ffadaa; /* Pastel Rose */
  --status-blue: #a3c9f1; /* Pastel Sky */
  --status-green: #a8dadc; /* Pastel Mint */

  --accent: #ffadaa;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family:
    "Quicksand",
    -apple-system,
    sans-serif;
  margin: 0;
  padding: 20px;
  padding-top: 90px;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border);
  padding: 15px 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.menu-trigger {
  font-size: 24px;
  cursor: pointer;
  margin-right: 15px;
  color: var(--text-main);
}

#view-title {
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* Sidebar */
#sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: white;
  z-index: 3000;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 30px 20px;
  box-shadow: 10px 0 30px rgba(93, 83, 74, 0.05);
}

#sidebar.open {
  left: 0;
}

#sidebar ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

#sidebar li a {
  display: block;
  padding: 15px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  border-radius: 12px;
  transition: 0.2s;
}

#sidebar li a:hover {
  background: var(--bg-app);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  color: var(--text-muted);
  font-size: 12px;
}

/* Main Content */
.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.add-btn {
  background: var(--text-main);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 0px #3d352f;
  transition: 0.1s;
}

.add-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0px #3d352f;
}

/* Project Cards */
.item-list-card {
  background: white;
  padding: 18px 22px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 15px rgba(93, 83, 74, 0.02);
}

.item-list-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(93, 83, 74, 0.06);
}

.proj-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

/* Status Labels */
.status-text-mini {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  background: var(--bg-app);
  padding: 6px 12px;
  border-radius: 20px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.dot-not-started {
  background: var(--status-red);
}
.dot-ongoing {
  background: var(--status-blue);
}
.dot-completed {
  background: var(--status-green);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(93, 83, 74, 0.3);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 440px;
  border-radius: 30px;
  padding: 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 6px 5px;
  color: var(--text-muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 15px;
  margin-bottom: 20px;
  font-family: inherit;
  background: #fffcf9;
  font-size: 15px;
  color: var(--text-main);
}

input:focus,
textarea:focus {
  border-color: var(--status-blue);
}

.btn-full {
  flex: 1;
  background: var(--status-blue);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 18px;
  font-weight: 700;
  box-shadow: 0 4px 0px #7ca9d9;
  cursor: pointer;
}

.btn-full:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0px #7ca9d9;
}

.btn-delete-modal {
  background: #fff;
  border: 2px solid #fee2e2;
  padding: 14px;
  border-radius: 18px;
  cursor: pointer;
}

.close-modal {
  float: right;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}
