/**
 * 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; /* Disable interactions */
  opacity: 0.5; /* Visual cue for disabled state */
}

#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 {
  text-align: center;
  margin: 3px 5px;
}

#user-buttons {
  float: left;
}

#execution-buttons {
  float: right;
}

#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 {
  padding-left: 10px;
  width: 140px;
  text-align: left;

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

  // Animation for loading states
  .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: inline-block;
  @media screen and (max-width: 1250px) {
    display: none;
  }
}

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

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

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