:root {
  --bg-color: #f9f9f9;
  --text-color: #333;
  --card-bg: #fff;
  --accent: #007acc;
  --project-color: #d9534f;
  --highlight-bg: #eaffea;
  --highlight-border: #28a745;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 20px;
  transition: background 0.3s ease, color 0.3s ease;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
}

#print-btn{
  display: block;
  margin: 0 auto 20px;
  padding: 10px 20px;
  font-size: 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
#theme-toggle {
  display: block;
  margin: 0 auto 20px;
  padding: 10px 20px;
  font-size: 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.week {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.week:hover {
  transform: scale(1.02);
}

.week h2 {
  margin-top: 0;
  color: var(--accent);
  font-size: 20px;
}

.week ul {
  list-style: none;
  padding: 0;
}

.week li {
  margin: 10px 0;
  font-size: 16px;
  display: flex;
  align-items: center;
}

input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.2);
}

.project {
  font-weight: bold;
  color: var(--project-color);
  cursor: pointer;
}

.highlight {
  background-color: var(--highlight-bg);
  border: 2px solid var(--highlight-border);
}

/* Progress Bar */
.progress-bar {
  height: 10px;
  background: #eee;
  border-radius: 5px;
  margin-top: 15px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #28a745;
  width: 0%;
  transition: width 0.3s ease;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: var(--card-bg);
  color: var(--text-color);
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.modal-content h3 {
  margin-top: 0;
}

.modal-content .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.hidden {
  display: none;
}

/* Dark Mode */
body.dark {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --card-bg: #1e1e1e;
  --accent: #90caf9;
  --project-color: #ff8a65;
  --highlight-bg: #1b5e20;
  --highlight-border: #66bb6a;
}

/* Print Styles */
@media print {
  #theme-toggle,
  .modal,
  button {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .week {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}