/*
 * 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.
 */

$background_console_darker: #207e33;
$syncope_default_green: #28a745;
$background_console_dark: #00a65a;
$background_console_white: #eee;


/* SCSS Methods
============================================================================= */

@mixin shadow($args...) {
  -moz-box-shadow: $args;
  -webkit-box-shadow: $args;
  -o-box-shadow: $args;
  box-shadow: $args;
}


/* General
============================================================================= */

body {
}

.table {
  > tbody {
    > tr {
      > td {
        &.list_view_panel_labels {
          vertical-align: middle;
        }
      }
    }
  }
}


/* Login
============================================================================= */

.form-signin {
  .form-control:focus {
    border-color: $background_console_darker;
    @include shadow(inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px $background_console_darker);
  }
}

.btn {
  &.btn-signin {
    background-color: $syncope_default_green!important;
    &:hover, &:active, &:focus {
      background-color: $background_console_darker!important;
    }
  }

  &.btn-sso {
    &:hover, &:active, &:focus {
      background-color: $background_console_darker!important;
    }
  }
}

/* Must Change Password
============================================================================= */

#mcp_wrapper {

  .form-control {
    margin-bottom: 10px
  }

  .card {
    height: 100%;
  }

  .custom_content_wrapper {
    padding: 2% 2% 0 2%;
  }
}

/* JSON diff
============================================================================= */

.json-diff-header {
  text-align: center;

  display: table;
  width: 100%;
  table-layout: fixed;
  border-spacing: 10px;
}

.json-diff-item {
  display: table-cell;
  vertical-align: middle;
}

.running-col {
  width: 65px;
}

/* Sidebar Treeview
============================================================================= */
.app-sidebar {
  .sidebar-menu {
    .nav-treeview {
      margin-left: 1rem;
      padding-left: 0.5rem;
      border-left: 1px solid rgba(0, 0, 0, 0.2);

      > .nav-item {
        > .nav-link {
          position: relative;
          padding-left: 0.5rem;
        }
      }
    }
  }
}

/* BreadCrumb - MUI Style
============================================================================= */

.syncope-breadcrumb {
  padding: 0;
  margin: 0;

  &-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    gap: 8px;
  }

  &-item {
    display: flex;
    align-items: center;
    list-style: none;

    &:not(:last-child)::after {
      content: '>';
      margin-left: 8px;
      color: #9ca3af;
    }
  }

  &-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 4px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;

    &:hover {
      background-color: rgba(59, 130, 246, 0.08);
      text-decoration: none;
    }

    &:active {
      background-color: rgba(59, 130, 246, 0.12);
    }

    &:disabled {
      color: #6b7280;
      cursor: not-allowed;
      pointer-events: none;

      &:hover {
        background-color: transparent;
        text-decoration: none;
      }
    }
  }
}