/* Branding kit baseline. Replace colors, logos, and layout as needed. */

:root {
  --brand-primary: #0e6e7c;
  --brand-accent: #f4b13d;
}

/* Example: login logo override using a custom SVG */
.login-ui .login-dialog .logo {
  background-image: url('/guacamole/app/ext/branding-kit/images/huawei-cloud-ai.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
}

/* Example: accent buttons */
button, .button {
  border-radius: 6px;
}

.button, button {
  background-color: var(--brand-primary);
}

.button:hover, button:hover {
  background-color: #0b5a66;
}
/*
 * 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.
 */

/* Label/tag denoting the user that shared a connection */
.jdbc-share-tag {

    background: #0095ff;
    padding: 0.25em;

    -moz-border-radius:    0.25em;
    -webkit-border-radius: 0.25em;
    -khtml-border-radius:  0.25em;
    border-radius:         0.25em;

    color: white;
    font-size: 0.75em;
    font-weight: bold;

}
.all-connections .home-connection-row .ecs-power-badge {
  margin-left: 0;
  padding: 0.12em 0.55em;
  border-radius: 999px;
  font-size: 0.75em;
  line-height: 1.4;
  letter-spacing: 0.02em;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.78);
  background: rgba(0, 0, 0, 0.04);
}

.all-connections .home-connection-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.all-connections .home-connection-row a.home-connection {
  flex: 0 1 auto;
  min-width: 0;
}

.all-connections .home-connection-power {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}

.all-connections .home-connection-row .ecs-power-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-left: 0.4em;
  vertical-align: middle;
  position: relative;
  z-index: 2;
}

.all-connections .home-connection-row .ecs-power-btn {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.all-connections .home-connection-row .ecs-power-btn:hover {
  opacity: 1;
}

.all-connections .home-connection-row .ecs-power-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.all-connections .home-connection-row .ecs-power-btn::before {
  content: "";
  width: 1em;
  height: 1em;
  display: block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 100%;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 100%;
}

.all-connections .home-connection-row .ecs-power-btn.start {
  color: #2e7d32;
}

.all-connections .home-connection-row .ecs-power-btn.stop {
  color: #c62828;
}

.all-connections .home-connection-row .ecs-power-btn.reboot {
  color: #1565c0;
}

/* Icons (SVG via mask) */
.all-connections .home-connection-row .ecs-power-btn.start::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
}

.all-connections .home-connection-row .ecs-power-btn.stop::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6h12v12H6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6h12v12H6z'/%3E%3C/svg%3E");
}

.all-connections .home-connection-row .ecs-power-btn.reboot::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z'/%3E%3C/svg%3E");
}

.all-connections .home-connection-row .ecs-power-badge.loading {
  opacity: 0.7;
}

.all-connections .home-connection-row .ecs-power-badge.unknown {
  opacity: 0.85;
}

.all-connections .home-connection-row .ecs-power-badge.status {
  border-style: dashed;
}
