body {
    margin: 0;
    font-family: 'Arial Narrow', Arial, sans-serif;
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-template-rows: 80px 1fr;
    background-color: #e1e8f0;
    min-height: 100vh;
}

h3 {
    margin: 5px;
    text-align: center;
}

a {
    text-decoration: none;
}

.header button, dialog button, .todos button {
    background-color: #1892d3;
    border: 0px;
    color: white;
    font-size: medium;
    font-weight: bold;
    border-radius: 8px;
    padding: 8px 16px;
}

.header button:hover, dialog button:hover, .todos button:hover, .collapsible:hover{
    cursor: pointer;
    background-color: #4ca9c9;
}

/************Header*******************/
.header {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    background-color: #e1e8f0;
    color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
}

.header button {
    background-color: #1892d3;
    color: white;
}
.avatar {
    display: grid;
    grid-template-columns: 60px 100px;
    grid-template-rows: 20px 20px;
    align-items: center;
}

.name {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
}

.handle {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
}

.avatar span {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.avatar span{
    background-color: white;
    color: black;
    height: 50px;
    width: 50px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

/***************Sidebar*******************/
.sidebar {
    background-color: white;
    color: black;
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    padding: 8px;
}

.notification {
    height: 10px;
    width: 10px;
    font-size: small;
    background-color: #e1e8f0;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #000;
    padding: 5px;
}

#overdue > span.notification, #today > span.notification {
    background-color: red;
}

#done > span.notification {
    background-color: green;
}

#week > span.notification {
    background-color: orange;
}

.links p:hover {
    cursor: pointer;
    font-weight: bold;
}

/***************Contents******************/
.contents {
    grid-column: 2 / 3;
    padding: 8px;
}
    
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: minmax(100px, auto);
    gap: 16px
}

.cards p{
    font-size: large;
    margin: 3px;
}

.contents > p {
    margin: 3px;
    font-weight: bold;
    font-size: larger;
}

.card, dialog {
    border-left: 1px solid #1892d3;
    border-right: 1px solid #1892d3;
    border-bottom: 1px solid #1892d3;
}

.card {
    background-color: white;
    height: fit-content;
    box-sizing: border-box;
}

.todos {
    margin: 8px;
    display: none;
}

.todo p{
    width: 90%;
    box-sizing: border-box;
    display: inline;
    border-bottom: 2px solid #eee;
    background-color: #e1e8f0;
    padding: 8px;
    margin: 0;
}

.todo {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.todo p:hover {
    background-color: #eee;
    cursor: pointer;
}

.material-icons{
    font-size: 40px;
    color: red;
}

.add-todo {
    margin-top: 8px;
}

.collapsible {
  background-color: #1892d3;
  color: #ffffff;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: medium;
}

.collapsible:after {
  content: '+';
  font-size: large;
  float: right;
  margin-left: 5px;
  color: #ffffff;
}

.active:after {
  content: "-";
}

/************Forms & Dialogs*****************/
dialog {
    padding: 0;
    border-top: 0;
    width: 300px;
    overflow: hidden;
}

.form-controls div{
    margin: 8px;
    display: flex;
    flex-direction: column;
    justify-content: start;
}
.form-controls p {
    margin: 8px;
}

.form-controls .form-btns {
    display: flex;
    gap: 8px;
}

input, textarea {
    padding: 10px;
    font-family: inherit;
    font-size: inherit;
}

input:focus, textarea:focus {
    border: 1px solid #1892d3;
    outline: none;
}

.dia-header, .dia-header-todo {
    background-color: #1892d3;
    width: 100%;
    padding: 8px;
    color: white;
    text-align: center;
    box-sizing: border-box;
}

#todo-details .dia-header-todo{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dia-details, h4, p {
    margin: 8px;
}

input[type='checkbox'] {
    height: 15px;
    width: 15px;
    margin-bottom: 0;
}

.material-icons:hover {
    cursor: pointer;
}

/**************Form Validation******************/
input:invalid, textarea:invalid {
  border: 1px solid #990000;
  background-color:white;
}

input:valid, textarea:valid {
  border: 1px solid green;
}

input:focus:invalid, input:focus:valid, textarea:focus:invalid, textarea:focus:valid {
  outline: none;
}

.error {
  padding: 0;
  width: fit-content;
  font-size: 80%;
  color: white;
  background-color: #990000;
  border-radius: 0 0 5px 5px;
  box-sizing: border-box;
  display: block;
}