/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

#menu-container {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  width: 100%;
}

#logo {
  display: inline-block;
  vertical-align: top;
}

.disabled-menu-item {
  pointer-events: none;
  opacity: 0.5;
}

#menu-content {
  display: inline-block;
  width: 100%;
}

.workflow-name {
  min-width: 100px;
  max-width: 800px;
  font-size: 18px;
  padding: 2px 8px;
  border: none;
  box-sizing: content-box;

  &:hover {
    box-shadow: 0 0 0 1px rgb(202, 202, 202);
  }

  &:focus {
    box-shadow: 0 0 0 2px #007bff;
  }
}

#menu-user {
  height: 36px;
  margin: 1px;
  border-bottom: 1px solid #cacaca;
  display: flex;
}

#metadata {
  width: 100%;
}

#user-icon {
  width: 120px;
}

#button-groups {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 16px;
  margin: 3px 5px;
}

#user-buttons,
#execution-buttons,
nz-button-group,
nz-upload,
texera-computing-unit-selection {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

#user-buttons,
#execution-buttons,
nz-button-group {
  flex-wrap: nowrap;
}

#share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  font-weight: 400;
}

i {
  display: inline-flex;
  align-content: center;
  justify-content: center;
}

[nz-button] {
  width: 32px;
  padding: 0;
}

#save-state {
  font-size: 10px;
  color: royalblue;
  font-style: italic;
}

#run-button {
  width: 140px;
  padding-left: 10px;
  text-align: left;

  &[disabled].computing-unit-status {
    color: rgba(0, 0, 0, 0.5);
    border-color: #d9d9d9;
    background-color: #f5f5f5;
    text-shadow: none;
    box-shadow: none;
  }

  .anticon-loading {
    animation: loading 1.4s infinite linear;
  }

  // Special icon styles
  .anticon-cloud-server {
    color: #1890ff;
  }

  .anticon-disconnect {
    color: #ff4d4f;
  }

  .anticon-exclamation-circle {
    color: #faad14;
  }
}

@keyframes loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#expanded-utilities {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  overflow: hidden;

  @media screen and (max-width: 1250px) {
    display: none;
  }
}

#utilities-dropdown-button {
  flex: 0 0 auto;

  @media screen and (min-width: 1251px) {
    display: none;
  }
}

texera-user-icon {
  margin-left: 10px;
}

texera-coeditor-user-icon {
  margin-left: -10px;
}

::ng-deep .layers-dropdown {
  user-select: none;
}
