*, *:before, *:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 20px;
  background: var(--bg-primary, #ffffff);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-primary, #333);
}

#timeline-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

ul.main { 
  list-style: none;
  max-width: 75%;
  margin: 20px auto;
  padding: 0;
}

h3 {
  padding: 0; 
  margin: 0;
}

.date {
  width: 17%;
  padding: 15% 1% 0 0;
  float: left;
}

.date h3 {
  font-size: 1.5em;
  color: var(--text-primary, #333);
}

.date p {
  font-size: .8em;
  color: var(--text-secondary, #666);
}

.events {
  float: left;
  width: 80%;
  border-left: 1px solid var(--border-primary, #ccc);
  margin-top: 10%;
  padding-top: 3%;
}

.events-detail {
  max-width: 550px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.events-detail li {
  padding: 10px;
  border-bottom: 1px dashed var(--border-primary, #ccc);
  line-height: 22px;
  transition: ease .4s all;
  cursor: pointer;
}

.events-detail li:hover {
  background: var(--bg-hover, #e9e9e9);
}

.event-time {
  font-weight: 900;
  color: var(--text-primary, #444);
}

.events-detail li a {
  text-decoration: none;
  color: var(--text-primary, #444);
  width: 100%;
  height: 100%;
  display: block;
}

.event-location {
  font-size: .8em;
  margin-left: 70px;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-secondary, #f5f5f5);
}

.event-status {
  font-size: .7em;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.event-status.status-planned {
  background: #e3f2fd;
  color: #1976d2;
}

.event-status.status-in_progress {
  background: #fff3e0;
  color: #f57c00;
}

.event-status.status-done {
  background: #e8f5e9;
  color: #388e3c;
}

.event-status.status-dropped {
  background: #ffebee;
  color: #d32f2f;
}

.event-priority {
  font-size: .7em;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 5px;
  font-weight: 600;
}

.event-priority.priority-high {
  background: #ffcdd2;
  color: #c62828;
}

.event-priority.priority-medium {
  background: #fff9c4;
  color: #f57f17;
}

.event-priority.priority-low {
  background: #e0e0e0;
  color: #616161;
}

.no-tasks {
  padding: 20px;
  text-align: center;
  color: var(--text-secondary, #999);
  font-style: italic;
}

@media all and (max-width: 641px) {
  .date {
    width: 100%;
    border-bottom: 1px solid var(--border-primary, #ccc);
    margin-bottom: 10px;
    padding: 10px 0;
  }
  
  .events {
    border: none;
    width: 100%;
    margin-top: 0;
    padding-top: 10px;
  }
  
  .events-detail {
    padding: 0;
  }
  
  li.date p {
    margin: 0;
  }
  
  .event-location {
    margin-left: 0;
    display: block;
    margin-top: 5px;
  }
  
  ul.main {
    max-width: 100%;
    margin: 10px;
  }
}


