@import "src/assets/styles/responsive-base.scss";

:host {
  flex: 1 1 auto;
  display: flex;
  position: relative;

  #drop-area {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 2.5em;
    line-height: 2.5em;
    box-sizing: border-box;
    display: none;
  }
  #drop-zone {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
  }
}

.show-drop-area {
  display: flex !important;
}

#drive-cont {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

#path-root {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

#path-root-cont {
  font-size: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-left: 6px;
  padding: 8px;
}

#full-path {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#drive-path ul {
  margin: 0;
  padding: 8px 0;
  list-style-type: none;
  display: inline-flex;
  align-items: center;
  position: absolute;
  left: 0;

  overflow-x: hidden;
  justify-content: flex-end;
}

#drive-path #path-list-container {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  padding-right: 8px;
  width: fit-content;
  max-width: 100%;
  height: 100%;
}

#drive-path ul li {
  display: flex;
  align-items: center;
  cursor: pointer;
}

#drive-path ul li span {
  margin-right: 4px;

  white-space: nowrap;
}

#drive-path ul li mat-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
}

#drive-path {
  border-top-width: 1px;
  border-top-style: solid;
  display: flex;
  justify-content: space-between;
}

#menu-space {
  flex: 1 1 auto;
}

#drive-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 5px;
  flex-basis: 175px;

  .mat-icon-button {
    height: 20px;
    width: unset;
    margin: 4px;
  }
}

#drive-menu span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  margin-right: 8px;
}

#drive-menu mat-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.opaque {
  opacity: 0.5;
}

.drive-loading-spinner{
  margin: 4px;
}

#file-browser-container {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

#all-files {
  margin: 0;
  flex: 1 1 auto;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow-y: scroll;
}

#all-files > div {
  position: absolute;
  width: 100%;
}

#file-tile-table {
  padding-top: 8px;
}

#file-list-table {
  padding-top: 4px;
  padding-bottom: 12px;
}

#file-list-view-header {
  display: flex;
  padding: 0px 4px;

  mat-icon {
    font-size: 20px;
  }
}

#file-list-view-header > span {
  padding: 4px 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

#file-list-view-header-name {
  flex: 1 1 auto;
}

#file-list-view-header-ext {
  flex-basis: 42px;
  text-align: left;
}

#file-list-view-header-size {
  flex-basis: 46px;
  text-align: right;
}

#file-list-view-header-date {
  flex-basis: 120px;
}

#back-in-folder{ /* just like the file-list-view */
    display: flex;
    padding-left: 6px;
    padding-right: 4px;
    user-select: none;

    span{
        display: flex;
        align-items: center;
        margin: 2px 4px;
    }

    .mdi{
        font-size: 20px;
        width: 20px;
        height: 20px;
        -webkit-user-select: none; /* Safari */
        -ms-user-select: none; /* IE 10 and IE 11 */
        user-select: none; /* Standard syntax */
        cursor: pointer;
    }
    
    .file-name{
        flex: 1 1 auto;
    }
}

.drive-load-error{
  display: flex;
  align-items: center;
  margin: 2px 20px;

  @include screen('phone'){
    text-align: justify;
  }

  .mdi {
    font-size: 20px;
    width: 20px;
    height: 20px;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    cursor: pointer;
  }

  .file-name {
    text-align: left;
    flex: 1 1 auto;
  }
}

.drive-load-error {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  flex-direction: column;
}

#hidden-clipboard {
  position: fixed;
  top: -100px;
  opacity: 0;
}

.hidden-input{
  display: none;
}

#context-menu{
  display: none;

  ul{
    margin: 0;
    padding: 0;
    padding: 8px 0;

    li{
      padding: 10px 8px;
      display: flex;
      flex-direction: row;
      align-items: center;
      cursor: pointer;

      mat-icon{
        font-size: 20px;
        width: 20px;
        height: 20px;
        margin-right: 8px;
      }
    }
  }
}
