@import 'theme';

@color_1: rgba(255, 255, 255, 1);
@color_2: rgba(255, 255, 255, 0.7);

@fill_hover_color: rgba(255, 255, 255, 0.06);
@icon_active_color: rgba(255, 255, 255, 0.7);
@icon_disabled_color: rgba(149, 149, 149, 0.9);

@background_color: rgba(39, 41, 44, 1);
@background_color_close: rgba(196, 43, 28, 1);
@border-color: rgba(117, 117, 117, 0.4);

#title-bar {
  display: flex;
  position: fixed;
  background: @background_color;
  top: 0;
  left: 0;
  width: 100%;
  height: 32px;
  padding-left: 0;
  justify-content: center;
  align-items: center;
  -webkit-app-region: drag;
  -webkit-user-select: none;
  box-sizing: content-box;
  z-index: 1000;
}

.hamburger-menu-button {
  color: @color_1;
  text-align: center;
  width: 45px;
  height: 32px;
  background: none;
  border: none;
  border-image: initial;
  display: inline-grid;
  border-radius: 0;
  padding: 10px 15px;
  cursor: default;
  align-content: center;

  &:focus {
    outline: none;
  }
  &:hover:enabled {
    background-color: @fill_hover_color;
  }
}

.title-container {
  height: 32px;
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
}

.symphony-messaging-logo {
  width: 20px;
  height: 20px;
}

#title-bar-title {
  font-family: @font-family;
  color: @color_2;
  margin: 0;
  padding-left: 10px;
  font-size: 13px;
}

.title-bar-button-container {
  justify-content: center;
  align-items: center;
  right: 0;
  color: @color_1;
  -webkit-app-region: no-drag;
  text-align: center;
  width: 45px;
  height: 32px;
  background: @background_color;
  margin: 0;
  box-sizing: border-box !important;
  cursor: default;

  &:hover:enabled {
    background-color: @fill_hover_color;
  }
}

.title-bar-button {
  color: @color_1;
  text-align: center;
  width: 45px;
  height: 32px;
  background: none;
  border: none;
  border-image: initial;
  display: inline-grid;
  border-radius: 0;
  padding: 10px 15px;
  cursor: default;
  align-content: center;

  &:disabled {
    cursor: not-allowed;
    color: @icon_disabled_color;
  }

  &:hover:active {
    color: @icon_active_color;
  }

  &:hover:enabled {
    color: @color_1;
    background-color: @fill_hover_color;
  }

  &:focus {
    outline: none;
  }
}

.close {
  &:hover:enabled {
    background-color: @background_color_close;
  }
}

.window-border {
  border-left: 1px solid @border-color;
  border-right: 1px solid @border-color;
  border-radius: 7px;
}

.bottom-window-border {
  position: fixed;
  border-bottom: 1px solid @background_color;
  width: 100%;
  z-index: 3000;
  bottom: 0;
}

.sda-title-bar {
  display: flex;
  flex-direction: row;
}
