* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: #005500;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #338833 0%, #005500 100%);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

a {
  color: #00cccc;
  text-decoration: none;
}

a:hover {
  color: #ff55ff;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
}

header {
  text-align: center;
  color: white;
  margin-bottom: 30px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
  font-size: 1.1rem;
  height: 40px;
}

.announcement {
  font-size: 1.8rem;
  color: #ffff33;
  height: 60px;
  font-weight: 700;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.card {
  background: #333333;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border-radius: 8px;
  border-right: 4px solid #111111;
  border-bottom: 4px solid #111111;
}

.card h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #88ff88;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card h3 {
  font-size: 1.1rem;
  margin-top: 15px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card h4 {
  font-size: 1.0rem;
  margin-top: 15px;
  color: #aaaaaa;
  display: flex;
  align-items: center;
  gap: 5px;
}

.full-width {
  grid-column: 1 / -1;
}

.visualization {
  width: 100%;
  height: 600px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: #999;
  font-style: italic;
}

/* ================================= buttons ================================= */

.button-row {
  height: 40px;
}

.button-link {
  background: #f7f;
  color: #000;
  padding: 2px 6px;
  border-radius: 8px;
  border-right: 4px solid #808;
  border-bottom: 4px solid #808;
  font-size: 1.00rem;
  font-weight: 900;
}

.button-link:hover {
  background: #faf;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.button-dashboard {
  background: #ff7;
  color: #000;
  padding: 2px 6px;
  border-radius: 8px;
  border-right: 4px solid #880;
  border-bottom: 4px solid #880;
  font-size: 1.00rem;
  font-weight: 900;
}

.button-dashboard:hover {
  background: #ffa;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.button-project {
  background: #f8f;
  color: #000;
  padding: 2px 6px;
  border-radius: 8px;
  border-right: 3px solid #505;
  border-bottom: 3px solid #505;
  font-size: 0.75rem;
  font-weight: 700;
}

.button-tag {
  background: #0ff;
  color: #000;
  padding: 2px 6px;
  border-radius: 8px;
  border-right: 3px solid #055;
  border-bottom: 3px solid #055;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ================================= Project Progress Bars ================================= */

.prog {
  background: #444444;
  padding: 5px;
  margin-bottom: 20px;
  border-radius: 8px;
  border-right: 4px solid #111111;
  border-bottom: 4px solid #111111;
  transition: transform 0.2s, box-shadow 0.2s;
}

.prog:hover {
  background: #555555;
}

.prog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.prog-item-name {
  font-weight: 600;
  color: #0ff;
}

.prog-item-stats {
  font-size: 0.85rem;
  color: #bbb;
}

.prog-bar {
  width: 100%;
  height: 25px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #404, #b0b);
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: left;
  color: white;
  font-weight: bold;
  font-size: 0.85rem;
}

/* ================================= Task Lists ================================= */

.task-list {
  list-style: none;
  max-height: 500px;
  overflow-y: auto;
}

.task-item {
  margin-bottom: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.task-item a {
  display: block;
  padding: 15px;
  background: #337777;
  border-radius: 8px;
  border-right: 4px solid #115555;
  border-bottom: 4px solid #115555;
  text-decoration: none;
  color: inherit;
}

.task-item a:hover {
  background: #448888;
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 8px;
}

.task-title {
  font-weight: 600;
  color: #fff;
  flex: 1;
}

.task-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #fff;
}

.date-info {
  color: #ff0;
  font-size: 0.85rem;
}

/* ================================= Gantt Chart ================================= */

.visualization {
  width: 100%;
  height: 600px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  pointer-events: auto;
  touch-action: pan-x pan-y;
}

.visualization canvas {
  touch-action: pan-x pan-y !important;
}

.vis-item {
  color: black;
  font-size: 16px;
  font-weight: 600;
}

.vis-item.completed-task {
  color: white;
  background-color: #005500;
}

.vis-item.pending-task {
  color: black;
  background-color: #00cccc;
}

/* ================================= task details page ================================= */

.task-details {
  margin-bottom: 25px;
}

.task-properties-table {
  width: 100%;
  border-collapse: collapse;
}

.task-properties-table td {
  padding: 8px 12px;
  /* border-bottom: 1px solid #f0f0f0; */
}

.task-properties-table td:first-child {
  font-weight: 600;
  color: #afa;
  width: 20%;
  text-align: right;
}

.task-properties-table td:last-child {
  font-weight: 400;
  color: #faf;
}
