:root{
    --progress:0;
    --progressText:'';
}
.load{
    visibility: hidden !important;
}

#adminNav ul{
    list-style: none;
    margin: 0;
    padding: 0;
}

#adminNav ul li{
    position: relative;
}

#adminNav > ul > li {
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

#adminNav ul li > ul{
    display: none;
}

#adminNav ul li > ul.active{
    display: block;
}

#adminNav ul li.open > ul{
    display: flex;
}


#adminNav ul > li > a > div{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
}

#adminNav ul > li > ul > li > a > div{
    padding-left: 20px;
}

#adminNav ul li:not(:has(> ul)) > a.active > div,
#adminNav ul li > a > div:hover{
    background-color: var(--color_02);
}

#adminNav .extIcon .icon{
    position: relative;
    width: var(--appCubeSize);
    height: var(--appCubeSize);
    transform-style: preserve-3d;
    margin: 0 auto;
}

#adminNav .extIcon .icon > div{
    position: absolute;
    width: var(--appCubeSize);
    height: var(--appCubeSize);
    opacity: 1;
    /*background: linear-gradient(to right, #09adc8, #001f4e);*/
    /*background: linear-gradient(to right, var(--color_01), var(--color_02));*/
    background-color: var(--color_01);
    /*border-radius: 3px;*/
    overflow: hidden;
    padding: 3px;
    /*border: 1px solid #FFF;*/
    /*filter: drop-shadow(0px 4px 0px gray);*/
    /*-webkit-filter: drop-shadow(0px 4px 0px gray);*/
}

#adminNav ul li:not(:has(> ul)) > a.active >  div .extIcon .icon,
#adminNav ul li > a >  div:hover .extIcon .icon{
    z-index: 10;
    animation: rotate 6s linear infinite
}

#adminNav ul li a{
    color: #FFF;
    text-decoration: none;
}

#adminNav ul li > a >  div:hover .extIcon .icon > div{
    box-shadow: 0 0 5px #FFFFFF;
    border-radius: 0;
    overflow: unset;
    border: 1px solid #FFF;
}

#adminNav .extIcon .scale{
    transition: all 0.2s ease-in-out;
}

#adminNav ul li > a > div:hover .extIcon .scale,
#adminNav ul li:not(:has(ul.active)) > a.active > div .extIcon .scale{
    transform: scale(0.7);
}

/*#adminNav .extIcon .icon > div{*/
/*    overflow: hidden;*/
/*}*/


#adminNav .extIcon .icon > div img{
    aspect-ratio: 1/1;
    width: 100%;
    object-fit: cover;
}


#adminNav ul > li:has(ul) > a > div:after{
    font-family: FontAwesome, serif;
    content: '\f054';
    right: 15px;
    position: absolute;
    aspect-ratio: 1/1;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#adminNav ul > li:has(ul.active) > a > div:after{
    transform: rotate(90deg);
}



#adminNav .extIcon .icon > div.s1 { transform: translateZ(calc(var(--appCubeSize) / 2));}
#adminNav .extIcon .icon > div.s2 { transform: rotateY(90deg) translateZ(calc(var(--appCubeSize) / 2));}
#adminNav .extIcon .icon > div.s3 { transform: rotateY(180deg) translateZ(calc(var(--appCubeSize) / 2));}
#adminNav .extIcon .icon > div.s4 { transform: rotateX(90deg) translateZ(calc(var(--appCubeSize) / 2));}
#adminNav .extIcon .icon > div.s5 { transform: rotateY(-90deg) translateZ(calc(var(--appCubeSize) / 2));}
#adminNav .extIcon .icon > div.s6 { transform: rotateX(-90deg) translateZ(calc(var(--appCubeSize) / 2)) rotate(180deg);}
@keyframes rotate {
    100% {
        transform: rotateX(0deg) rotateY(360deg) rotateZ(360deg);
    }
}

.warning,
.error,
.debug {
    position: relative;
    width: fit-content;
    background-color: #000000;
    color: orange;
    text-align: left;
    padding: 30px;
    margin: 30px;
    border: 2px solid orange;
    z-index: 10000;
}

.error,
.warning{
    text-align: center;
    color: yellow;
    border: 2px solid yellow;
}

.error{
    color: red;
    border: 2px solid red;
}

#dialog{
    position: absolute;
    z-index: 1001;
    width: 100%;
    max-width: var(--width_Dialog);
    min-height: 50px;
    background-color: var(--background_Dialog);
    top: 60px;
    left: calc(50% - (var(--width_Dialog) / 2));
    border: 1px solid #FFFFFF;
    box-shadow: 0 0 5px #FFFFFF;
}

#dialog .topline{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 10px 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #FFFFFF;
    box-shadow: 0 1px 5px #FFFFFF;
    background-color: var(--background_Content);
}

#dialog .topline div.close::before{
    font-family: FontAwesome, serif;
    content: '\f00d';
    aspect-ratio: 1/1;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
}

div.dt-container .dt-search input {
    width: auto;
    border:1px solid var(--button_bgColor);
    box-shadow: inset 0 30px 30px -15px rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,255,255,.3), inset 0 1px 20px rgba(0,0,0,0), 0 3px 0 var(--button_bgColor), 0 3px 2px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.1), 0 10px 20px rgba(0,0,0,.1);
    background-color: var(--input_bgColor);
    color: var(--button_textColor);
    outline: none;
    border-radius: 0;
    margin-left: 3px;
}
div.dt-container .dt-input {
    border: 1px solid #aaa;
    border-radius: 0;
    padding: 5px;
    background-color: var(--input_bgColor);
    color: var(--button_textColor);
}
div.dt-container select.dt-input {
    padding: 4px;
}

div.dt-container select.dt-input{
    cursor: pointer;
    width: auto;
    background-color: var(--button_bgColor);
}

div.dt-container.dt-empty-footer tbody > tr:last-child > *,
table.dataTable > thead > tr > th, table.dataTable > thead > tr > td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.left{
    text-align: left;
}

.right{
    text-align: right;
}

.tabs{
    width: 100%;
}

.tabs > div{
    display: none;
}

.tabs > div.active{
    display: block;
}

.tabs > ul{
    list-style: none;
    display: flex;
    /*gap: 5px;*/
    margin: 0 0 10px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid #FFFFFF;
}

.tabs > ul > li > a{
    text-decoration: none;
    font-family: var(--global_Font);
    font-weight: bold;
    font-size: 10px;
    border: 1px solid var(--button_borderColor);
    letter-spacing: 1px;
    padding: 10px;
    display: block;
    /*text-transform: uppercase;*/
    outline: none;
    user-select: none;
    cursor: pointer;
    top: -3px;
    transform: translateY(0px);
    position: relative;
    box-shadow: inset 0 30px 30px -15px rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,255,255,.3), inset 0 1px 20px rgba(0,0,0,0), 0 3px 0 var(--button_bgColor), 0 3px 2px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.1), 0 10px 20px rgba(0,0,0,.1);
    background: var(--button_bgColor_hover);
    color: rgba(230,252,255,0.50);
    text-shadow: 0 1px 0 rgba(0,0,0,.3);
    transition: 150ms all;
}

.tabs > ul > li > a:hover {
    background-color: var(--button_bgColor);
    color: var(--button_textColor);
}

.tabs > ul > li.active > a,
.tabs > ul > li > a:active {
    transform: translateY(+20%);
    background-color: var(--button_bgColor);
    color: var(--button_textColor);
    /*transform: translateY(3px);*/
    /*box-shadow: inset 0 16px 2px -15px rgba(0,0,0,0), inset 0 0 0 1px rgba(255,255,255,.15), inset 0 1px 20px rgba(0,0,0,.1), 0 0 0 var(--button_bgColor), 0 0 0 2px rgba(255,255,255,.5), 0 0 0 rgba(0,0,0,0), 0 0 0 rgba(0,0,0,0);*/
}

#dialog .tabs > div.active{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
}

.left{
    margin-right: auto;
}

#header .home{
    margin-right: auto;
}

#header .headerTitle {
    font-size: clamp(12px, 3.5vw, 25px);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px black;
}

.text-center{
    text-align: center;
}

table.dataTable > tbody > tr:nth-child(odd){
    background: var(--color_01);
}

.main_controls {
    padding: 10px;
    background-color: var(--button_bgColor);
    display: flex;
    justify-content: end;
    align-items: center;
}

.main_controls > div.title{
    margin-right: auto;
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 5px black;
}

.main_content {
    padding: 25px;
}

.main_content .widgets{
    /*margin: 20px;*/
    /*width: calc(100% - 40px);*/
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /*grid-template-columns: repeat(4, 1fr);*/
    /*gap: 20px;*/
}

.main_content .widgets .widget{
    min-height: 50px;
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.5);
    border-radius: 5px;
}

.main_content .box{
    padding: 10px;
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}

.premium {
    position: relative;
    overflow: hidden;
}

.premium:after{
    content: 'Premium';
    position: absolute;
    right: -29px;
    top: 12px;
    transform: rotate(45deg);
    background-color: var(--premColor);
    color: black;
    font-size: 16px;
    padding: 8px;
    width: 100px;
    text-align: center;
}

.tip {
    position: relative; /* Wichtig für die Positionierung des Tooltips */
    cursor: pointer; /* Zeigt an, dass man das Element anklicken/hovern kann */
}

.tip:hover::after {
    content: attr(title); /* Holt den Wert des title-Attributs */
    position: absolute;
    left: 50%;
    bottom: 125%; /* Positioniert leicht über dem Element */
    transform: translateX(-50%);
    background-color: #333; /* Dunkler Hintergrund für den Tooltip */
    color: #fff; /* Weißer Text für den Tooltip */
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap; /* Verhindert Zeilenumbrüche */
    font-size: 12px;
    z-index: 1; /* Tooltip wird über dem Element angezeigt */
    opacity: 0; /* Unsichtbar ohne Hover */
    transition: opacity 0.2s ease-in-out; /* Sanftes Einblenden */
    pointer-events: none; /* Der Tooltip stört nicht die Hover-Interaktion */
}

.tip:hover::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 115%; /* Positioniert direkt unterhalb des Tooltips */
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent; /* Kleiner Pfeil */
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}

.tip.left::after {
    right: calc(100% + 10px);
    transform: translateX(0);
    left: auto;
    bottom: 1%;
}

.tip.left::before {
    left: auto;
    transform: translateX(0) rotate(-90deg);
    bottom: 30%;
    right: 100%;
}

.tip:hover::after,
.tip:hover::before {
    opacity: 1; /* Sichtbar beim Hover */
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: var(--color_01);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--color_01) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Container */
.prog-bar {
    /*width: 200px;*/
    /*height: 30px;*/
    /*font-size: 12px;*/
    position: relative;
    background-color: var(--color_02); /* Hintergrund der Progress Bar */
    /*border-radius: 20px; !* Abgerundete Kanten *!*/
    overflow: hidden; /* Für saubere Grenzen */
}


/* Fortschritt (mit after Element) */
.prog-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: var(--progress); /* Fortschritt in Prozent */
    height: 100%;
    background-color: var(--color_01); /* Fortschrittsfarbe */
    transition: width 0.1s ease; /* Animation für glatte Übergänge */
    z-index: 1;
}

.prog-bar::before {
    content: attr(data-label);
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 2;
}

.progress .progress-container,
.progress-btn .progress-container {
    display: none;
    position: absolute;
    top: 0;
    left:0;
    width: 100%; /* Breite des Containers */
    height: 100%; /* Höhe des Ladebalkens */
    /*border: 1px solid #ccc; !* Grauer Rand um den Ladebalken *!*/
    background: linear-gradient(to right, red, yellow, green);
    z-index: 1000;
}





.progress-container .progress-bar {
    position: absolute;
    right: 0;
    height: 100%;
    width: 100%; /* Anfangsbreite von 0% */
    background-color: var(--button_bgColor);
    z-index: 1;
}

.progress-container .progress-text{
    font-size: 12px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: black;
    font-weight: bold;
    z-index: 2;
}

.progress{
    width: 100%;
}

.progress .progress-container{
    border: 1px solid #ccc;
    position: relative;

}
.progress .progress-container .progress-text{
    color: white;
    padding: 10px;
    mix-blend-mode: difference;
    text-align: center;
}

.right{
    margin-left: auto;
}