/**********************************************************************\
*                                Odatix                                *
************************************************************************
*
* Copyright (C) 2022 Jonathan Saussereau
*
* This file is part of Odatix.
* Odatix is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* 
* Odatix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* 
* You should have received a copy of the GNU General Public License
* along with Odatix. If not, see <https://www.gnu.org/licenses/>.
*
*/

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: inherit;
  color: black;
}

.navbar {
  color: white;
  padding-right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0px; 
}

.navbar .nav-links {
  display: flex;
  margin-right: 20px;
}

.navbar .nav-links a {
  margin: 0 10px;
  text-decoration: none;
  font-size: 16px;
}

.navbar .nav-links a:hover {
  text-decoration: underline;
}

.navbar .title {
  position: relative;
  top: 0px;
  font-weight: bold;
  font-size: 24px;
  z-index: 2;
  text-decoration: none;
  overflow: hidden; 
  transition: transform 0.4s ease;
}

@media screen and (max-width: 933px) {
  .nav-links {
    display: none !important;
  }
}

#theme-dropdown {
  width: 140px;
  margin-right: 20px;
}

@media screen and (max-width: 450px) {
  .theme-dropdown {
    display: none !important;
  }
}

.link {
  height: 30px;
  align-items: center;
  color: #000;
  text-decoration: none;
  display: flex;
}

.mask {
  position: relative;
  padding: 0;
  height: 20px;
  overflow: hidden;
}

.link-container {
  transition: transform 0.4s ease;
}

.title {
  color: var(--main-text-color);
  display: block;
  font-size: 20px;
  line-height: 20px;
  transition: transform 0.4s ease;
}

.link-title1 {
  transform-origin: right center;
}

.link-title2 {
  transform-origin: left center;
  transform: rotate(20deg);
}

.link:hover .link-container {
  transform: translateY(-20px);
}

.link:hover .link-title1 {
  transform: rotate(20deg);
}

.link:hover .link-title2 {
  transform: rotate(0);
}

.sidebar {
  position: relative;
  color: white;
  position: fixed;
  top: 0;
  height: 100%;
  padding-top: 10px;
  overflow-x: hidden;
  transition: left 0.25s;
}

.sidebar-content {
  margin-top: 50px;
  position: relative;
  color: white;
  position: fixed;
  top: 0;
  height: 100%;
  overflow-x: hidden;
  transition: left 0.25s;
}

.sidebar-content-holder {
  padding-bottom: 150px;
}

.sidebar-top{
  position: fixed;
  top: 0px;
  left: 0px;
  transition: left 0.25s;
}

.sidebar .title {
  display: flex;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.sidebar h2 {
  margin-left: 20px;
  margin-top: 30px;
  margin-bottom: 15px;
}

.sidebar-button {
  filter: var(--sidebar-button-bg-filter);
  transition: all .2s cubic-bezier(0.175, 0.885, 0, 1);
}
.sidebar-button:hover {
  box-shadow: 0px 30px 18px -8px rgba(0, 0, 0, 0.1);
  transform: scale(1.05, 1.05);
}

button {
  background: var(--button-bg-color);
  border: 1px solid var(--main-border-color);
  border-radius: var(--main-border-radius);
  color: var(--main-text-color);
  padding: 10px 15px;
  margin-right: 5px;
  font-size: 14px;
  font-weight: 515;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 0 rgba(27, 31, 35, 0.04);
}

button:hover {
  background: var(--button-bg-color-hover);
  border-color: var(--main-border-color-hover);
}

h1, h2, h3, h4, h5, h6, label, .dropdown-label, .legend-item, .nav-link{
  color: var(--main-text-color);
}

.title-dropdown{
  display: flex;
  vertical-align: middle;
  align-items: center;
  margin-left: 75px;
  margin-right: 75px;
}

.sidebar .title-dropdown{
  display: flex;
  vertical-align: middle;
  align-items: center;
  margin-left: 20px;
  margin-right: 20px;
}

.dropdown-label{
  width:100px;
  font-weight: 525;
}

.dash-dropdown{
  margin-bottom: 5px;
  width: 250px;
  font-size: 14px; 
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; 
  box-shadow: 0 1px 0 rgba(27, 31, 35, 0.04); 
  appearance: none;   
}

.dash-dropdown, .Select, .Select-control{
  border: none;
  border-radius: var(--main-border-radius);
  background-color: #00000000 !important;
}

.Select-value {
  background-color: var(--dropdown-bg-color);
  border: 1px solid var(--main-border-color);
  border-radius: var(--main-border-radius);
  color: var(--main-text-color);
}

.Select-value-label {
  color: var(--main-text-color) !important;
}

.Select-menu-outer {
  background-color: var(--dropdown-menu-bg-color);
  backdrop-filter: var(--main-backdrop-filter);
  border: 1px solid var(--main-border-color);
  border-radius: var(--main-border-radius);
  color: var(--main-text-color);
}

.Select-value:hover {
  background-color: var(--dropdown-bg-color-hover);
  border-color: var(--main-border-color-hover);
}

.error {
  background-color: #f6f8fa;
  color: #ef553b;
  border: 1px solid #d1d5da;
  border-radius: 6px; 
  font-weight: 600;
  margin: 10px;
  margin-left: 20px;
  margin-right: 20px;
  padding: 10px;
  box-shadow: 0 1px 0 rgba(27, 31, 35, 0.04); 
}

.error pre {
  font-family: monospace, monospace;
  font-size: 14px; 
  font-weight: 500;
}

.error details {
  background-color: #fff;
  color: #24292e;
  border: 1px solid #d1d5da;
  border-radius: 6px; 
  font-weight: 600;
  margin: 10px;
  margin-left: 0px;
  margin-right: 0px;
  padding: 10px;
  box-shadow: 0 1px 0 rgba(27, 31, 35, 0.04); 
}

.content {
  transition: margin-left 0.25s
}

.toggle-container {
  margin-left: 15px;
}

#p404 {
  margin: 25px;
  max-width: fit-content; 
  margin-inline: auto;
  border-radius: 20px;
  color: #24292e;
  border: 2px solid #d1d5da;
  background-color: rgba(209, 213, 218, 0.199);
  font-weight: bold;
  justify-content: center;
  align-items: center;
  text-align: center;
}
#p404-h1 {
  font-size: 100px; 
  margin: 10px;
}
#p404-h2 {
  font-size: 40px; 
  margin: 20px;
}

.home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card {
  background: var(--card-bg-color);
  color: var(--card-text-color);
  backdrop-filter: var(--main-backdrop-filter);
  min-width: 0;
  max-width: 100%;
  width: 450px;
  height: 390px;
  box-shadow: 0px 13px 10px -7px rgba(0, 0, 0, 0.1);
  border: var(--card-border);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: all .2s cubic-bezier(0.175, 0.885, 0, 1);
}

.card-img {
  margin: auto;
  object-fit: cover;
}

.card-title  {
  text-align: center;
  font-size: 1.25em;
  font-weight: bold;
}

.card-description {
  text-align: center;
  margin: 25px;
}

.card:hover {
  box-shadow: 0px 30px 18px -8px rgba(0, 0, 0, 0.1);
  border: var(--card-border-hover);
  transform: scale(1.05, 1.05);
}

.home-content {
  background: var(--home-bg-color);
}
