.window-app {
  background: $c-navy;

  a,
  &.filepicker .file-directory > li {
    &:hover,
    &:focus {
      color: $c-navy-up;
      text-shadow: 0 0 5px rgba($c-navy-up, 0.25);
    }
  }

  .tabs {
    .item.active {
      color: $c-navy-up;
      text-shadow: 0 0 5px rgba($c-navy-up, 0.25);
    }
  }

  input,
  button,
  select,
  textarea {
    background: $c-white;

    &:not(.fa-classic, .fa-light, .fa-regular, .fa-solid, .fa-thin, .fal, .far, .fas, .fat) {
      font-family: $font-stack-base;
    }

    &:not([type="range"], [type="color"])  {
      border: 1px solid rgba(0,0,0,0.25);

      &:hover:not(:disabled),
      &:focus:not(:disabled) {
        box-shadow: 0 0 5px #38366378;
        outline: 0;
      }
    }


    &:disabled {
      background: #99999940;
    }

  }

  input[type="radio"],
  input[type="checkbox"] {
    width: 18px;
    height: 18px;

    &:hover,
    &:focus {
      box-shadow: none;
      cursor: pointer;
    }
  }

  input[type="radio"] {
    margin: 0 5px;
  }

  input[type="checkbox"] {
    flex: 0 0 18px;
  }

  input,
  textarea {
    // border: 0;
    // margin: 5px 0;

    &::placeholder {
      color: $c-gray-silver;
    }

    &.disabled {
      opacity: 0.5;
    }
  }

  &.sidebar-popout,
  &.journal-sheet {
    button,
    .button {
      color: $c-white;
    }

    .editor.prosemirror menu {
      button {
        color: inherit;
      }
    }
  }

  button,
  .button {

    background: rgba(0, 0, 0, 0.1);
    border: 1px solid $c-navy-up;
    border-radius: 3px;
    box-shadow: 0 0 2px $c-white inset;
    cursor: pointer;

    &:not(.fa-classic, .fa-light, .fa-regular, .fa-solid, .fa-thin, .fal, .far, .fas, .fat) {
      font-family: $font-stack-base;
    }

    &:hover,
    &:focus {
      box-shadow: 0 0 5px rgba($c-navy-up, 0.25);
    }

    &:hover {
      background-color: $c-navy-top;
    }
  }

  .window-header {
    .window-title {
      max-width: 100%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-size: var(--font-size-18);
      // text-transform: uppercase;
    }
  }

  .dialog-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
  }

  .dialog-buttons .dialog-button,
  .dialog-button {
    flex: 1;
    background: $c-navy;
    color: $c-white;
    border: 0;

    &:hover {
      background: $c-navy-up;
    }
  }
}

.window-header {
  color: $c-white;
  font-family: $font-stack-secondary;

  a {
    &:hover,
    &:focus {
      color: $c-navy-top;
    }
  }
}

:not(.application, .image-popout, .journal-sheet, .sidebar-popout .journal-entry-page) .window-content {
  background: $c-white url('#{$asset-path}/concrete-seamless.webp');
}

.window-content {
  .editor {
    &.tinymce {
      .tox-tinymce {
        height: 100%;

        .tox-toolbar-overlord,
        .tox-toolbar__primary {
          background: transparent;
          border-bottom: 1px solid $c-black;
        }

        button {
          padding: 0;
          border: 0;
          background: transparent;
          margin: 0;
          width: auto;
          height: auto;
        }
      }
    }

    &.prosemirror {
      menu {
        background: transparent;
        border-bottom: 1px solid $c-black;
        border-radius: 0;
        padding: 0 2px 2px;

        li {
          flex: 1;

          button {
            background: transparent;
          }
        }
      }
    }
  }
}

// TODO: Tagify
.tags-look .tagify__dropdown__item{
  display: inline-block;
  border-radius: 3px;
  padding: .3em .5em;
  border: 1px solid #CCC;
  background: #F3F3F3;
  margin: .2em;
  font-size: .85em;
  color: black;
  transition: 0s;
}

.tags-look .tagify__dropdown__item--active{
  color: black;
}

.tags-look .tagify__dropdown__item:hover{
  background: lightyellow;
  border-color: gold;
}

.sidebar-tab {
  .directory-header {
    .header-search {
      input {
        background-color: $c-light;
        color: $c-navy;

        &::placeholder {
          color: $c-navy-up;
        }
      }
    }
  }
}