daily-summary {
  @extend %centered-component;

  textarea {
    background: #ffffff !important;
    border: 1px solid #cccccc;
    border-top-width: 1px !important;
    border-left-width: 1px !important;
    border-right-width: 1px !important;

    @include dark-theme {
      background: $dark-theme-bg-lighter !important;
      color: #ffffff;
    }
  }
}

md-input-container {
  text-align: left;
}

.finish-day-opts {
  margin-top: 10px;
}

.daily-summary-summary {
  margin-bottom: 30px;
  p {
    margin: 5px;
  }
}

.daily-summary-collapsible {
  margin-bottom: 15px;
  margin-top: 20px;

  .collapsible-title {
    font-size: 19px;
  }
}

.task-summary-table {
  width: 100%;
  background: #ffffff;
  margin: auto;
  border-collapse: collapse;
  @include dark-theme {
    background: $dark-theme-bg-lighter;
    color: #ffffff;
  }
  tr {
    &.is-done {
      text-decoration: line-through;
    }

    &:first-child {
      td,
      th {
        border-top: 0;
      }
    }
    &:last-child {
      td,
      th {
        border-bottom: 0;
      }
    }
  }

  th,
  td {
    border: 1px solid #dddddd;
    padding: 4px 8px;

    &:first-child {
      border-left: 0;
    }
    &:last-child {
      border-right: 0;
    }
  }

  td:nth-child(2),
  td:nth-child(3),
  td:nth-child(4),
  td:nth-child(5) {
    text-align: right;
  }
}

.daily-summary-actions {
  margin-top: 30px;

  button {
    ng-md-icon + ng-md-icon {
      margin-left: -7px;
    }
  }
}

.success-animation-wrapper {
  $this-ani-style: 1s linear infinite;
  $this-ico-size: 128px;
  clear: both;
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  backface-visibility: hidden;

  ng-md-icon {
    width: $this-ico-size;
    height: $this-ico-size;
    display: block;
    font-size: 30px;
    fill: $yellow;
    transform-origin: center center;
    animation: success-animation-sun #{$this-ani-style};
    backface-visibility: hidden;

    svg {
      width: $this-ico-size;
      height: $this-ico-size;
    }
  }
  .unicorn-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .unicorn {
    transform-origin: center center;
    animation: success-animation-unicorn #{$this-ani-style};
  }
}

@keyframes success-animation-sun {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 1;
  }
  50% {
    opacity: 1;
    transform: scale(5) rotate(0deg);
  }
  75% {
    transform: scale(10) rotate(90deg);
    opacity: 0.4;
  }
  100% {
    transform: scale(12) rotate(180deg);
    opacity: 0;
  }
}

@keyframes success-animation-unicorn {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  25% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  55% {
    transform: scale(2);
  }
  75% {
    transform: scale(3);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

