﻿@font-face {
    font-family: 'Rubik';
    src: url(../fonts/Rubik-VariableFont_wght.ttf) format('truetype');
}

:root {
    --icon-primary: #c1c1c4;
    --background: #1e1e1e;
    --button-background-primary: linear-gradient(to bottom, transparent, rgba(128, 0, 0, 0.3) 100%), linear-gradient(135deg,rgba(255, 166, 0, 1) 0%, rgba(219, 80, 0, 1) 100%);
    --button-background-neutral: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3) 100%), linear-gradient(135deg,rgba(180, 180, 180, 1) 0%, rgba(120, 120, 120, 1) 100%);
}

html, body {
    font-family: 'Rubik';
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.2) 100%);
    background-color: #1e1e1e;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: #c1c1c4;
    user-select: none;
}

    body::before {
        content: "";
        position: fixed;
        top: 50%;
        left: 50%;
        width: 500px;
        height: 500px;
        background-image: url("../../Images/Icons/modforge.png"); /* Pfad zum Bild */
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.08;
        transform: translate(-50%, -50%);
        z-index: 0;
        pointer-events: none;
    }

.align-input-center input {
    text-align: center;
}

.entry-dialog {
    backdrop-filter: blur(10px);
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

/*#endif*/
h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.status-bar-safe-area {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: #f7f7f7;
        width: 100%;
        z-index: 1;
    }

    .flex-column, .navbar-brand {
        padding-left: env(safe-area-inset-left);
    }
}

.header-primary {
    background-image: var(--button-background-primary);
    color: transparent;
    background-clip: text;
}

.header-inactive {
    color: #7a7a7d;
}

.selected {
    background-color: var(--mud-palette-primary) !important;
}

    .selected > td {
        color: var(--background) !important;
    }

        .selected > td .mud-input {
            color: var(--background) !important;
        }

.button-widget {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    opacity: 0.8;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: all ease-in-out 0.1s;
}

.dialog-background {
    backdrop-filter: blur(10px);
    transition: all ease 0.3s;
}

.button-widget:hover {
    opacity: 1;
}

.button-widget:active {
    opacity: 0.6;
}

.mod-item-card {
    width: 100%;
    border-radius: 8px;
    transition: all ease-in-out 0.1s;
    background: rgba(255, 255, 255, 0.23);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5.3px);
    -webkit-backdrop-filter: blur(5.3px);
    border: 1px solid rgba(255, 255, 255, 0.11);
}

.selected-mod-item-card {
    border-width: 2px;
    border-color: var(--button-background-primary);
    transition: all ease-in-out 0.1s;
}

.dialog-card {
    height: auto;
    width: 100%;
    border-radius: 8px;
    transition: all ease-in-out 0.1s;
    background: rgba(255, 255, 255, 0.23);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5.3px);
    -webkit-backdrop-filter: blur(5.3px);
    border: 1px solid rgba(255, 255, 255, 0.11);
}

.drawer-item-card {
    height: auto;
    width: 100%;
    border-radius: 8px;
    transition: all ease-in-out 0.1s;
}

.mod-item-card:hover {
    opacity: 0.8;
    cursor: pointer;
}

.mod-item-card:active {
    opacity: 0.6;
}

.mod-item-hidden {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s ease;
}

.mod-item-card:hover
.mod-item-hidden {
    opacity: 0.8;
    visibility: visible;
}

.drawer-item-card:hover
.mod-item-hidden {
    opacity: 0.8;
    visibility: visible;
}

.loadout-buff-param {
    opacity: 0.8;
    visibility: hidden;
}

.loadout-mod-item:hover
.loadout-buff-param {
    opacity: 0.8;
    visibility: visible;
}

.modlist-no-display {
    display: none;
}

/*Old Stuff*/
.mudcard {
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    border-radius: 12px;
}

    .mudcard:hover {
        transform: scale(1.0);
        opacity: 0.8;
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    }

    .mudcard:active {
        transform: scale(0.99);
        opacity: 0.6;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

.no-select {
    user-select: none;
    -webkit-user-select: none; /* für Safari */
    -ms-user-select: none; /* für IE/Edge */
}

.card-hover-effect {
    transition: transform 0.2s ease, filter 0.2s ease;
}

    .card-hover-effect:hover .card-image {
        animation: spin 10s linear infinite;
        filter: drop-shadow(0 0 4px gold);
    }

.card-image {
    transition: filter 0.5s ease;
    display: block;
    margin: auto;
}


.delete-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.custom-textfield input {
    text-align: center;
    border: none;
    outline: none;
    font-size: 1.2rem;
    background-color: transparent;
    padding: 0.5rem;
    border-bottom: 2px solid #3f51b5; /* Primärfarbe als untere Linie */
    box-shadow: 0 2px 5px rgba(63, 81, 181, 0.3); /* Optional: sanfter Schatten unten */
}

    .custom-textfield input:focus {
        border-bottom: 2px solid #303f9f;
        box-shadow: 0 4px 6px rgba(63, 81, 181, 0.4);
    }

.attribute-card {
    background: rgba(39, 18, 0, 0.3) !important; /* halbtransparent, warm */
    border: 1px solid rgba(255, 153, 102, 0.3) !important; /* TextPrimary, weich gemacht */
    border-radius: 12px !important;
    padding: 0.5rem !important;
    position: relative !important;
    color: #c1c1c4 !important;
    transition: all 0.2s ease !important;
}

.grow-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    background: rgba(39, 18, 0, 0.3) !important; /* halbtransparent, warm */
    border: 1px solid rgba(193, 193, 196, 0.2) !important; /* TextPrimary, weich gemacht */
    border-radius: 12px !important;
    padding: 0.5rem !important;
    position: relative !important;
    color: #c1c1c4 !important;
    box-shadow: inset 0 0 2px rgba(255, 153, 102, 0.05), /* warmes Innenleuchten */
    0 0 6px rgba(0, 0, 0, 0.4) !important; /* dunkle Tiefe */
    transition: all 0.2s ease;
}

    .card:hover {
        border-color: #a14b00 !important; /* warmes, dominantes Hover */
        box-shadow: 0 0 12px rgba(161, 75, 0, 0.35) !important; /* glüht leicht */
        transform: scale(1.015) !important;
    }

    .card::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 4px !important;
        height: 100% !important;
        background: linear-gradient(180deg, #a14b00, transparent) !important;
        border-radius: 4px 0 0 4px !important;
        opacity: 0.8 !important;
    }

.button-prominent {
    background: linear-gradient(180deg, rgba(161, 75, 0, 0.4), rgba(161, 75, 0, 0.25)) !important;
    border: 1px solid #a14b00 !important;
    color: #ffd9b0 !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    box-shadow: 0 0 6px rgba(161, 75, 0, 0.2), inset 0 0 4px rgba(255, 255, 255, 0.05) !important;
    transition: all 0.2s ease !important;
    backdrop-filter: blur(2px) !important;
}

    .button-prominent:hover {
        background: linear-gradient(180deg, rgba(161, 75, 0, 0.5), rgba(161, 75, 0, 0.35)) !important;
        color: #ffffff !important;
        box-shadow: 0 0 12px rgba(255, 145, 80, 0.25), 0 0 2px rgba(255, 255, 255, 0.1) !important;
        transform: scale(1.02) !important;
    }

.button-neutral {
    background: linear-gradient(180deg, rgba(193, 193, 196, 0.15), rgba(193, 193, 196, 0.1)) !important;
    border: 1px solid rgba(193, 193, 196, 0.3) !important;
    color: #c1c1c4 !important; /* TextPrimary */
    padding: 0.75rem 1.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    backdrop-filter: blur(1.5px) !important;
}

    .button-neutral:hover {
        background: linear-gradient(180deg, rgba(193, 193, 196, 0.25), rgba(193, 193, 196, 0.15)) !important;
        color: #e0e0e3 !important;
    }

.button-cancel {
    background: linear-gradient(180deg, rgba(139, 0, 0, 0.3), rgba(139, 0, 0, 0.2)) !important; /* Dunkelrot Transparent */
    border: 1px solid #8b0000 !important;
    color: #f5c6cb !important; /* zartes, helles Rosa-Rot */
    padding: 0.75rem 1.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background 0.2s ease, color 0.2s ease !important;
    backdrop-filter: blur(1.5px) !important;
}

    .button-cancel:hover {
        background: linear-gradient(180deg, rgba(178, 34, 34, 0.5), rgba(178, 34, 34, 0.35)) !important; /* stärkeres Rot */
        color: #fff0f1 !important;
    }


/* Keyframes für die Drehung */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-container {
    padding: 2rem;
    border-radius: 1rem;
    background-color: white;
    text-align: center;
    min-width: 450px;
    max-width: 550px;
    width: 100%;
    box-sizing: border-box;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}


/* z. B. in site.css oder style block */

.status-text-container {
    height: 2rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%, black 60%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 40%, black 60%, transparent 100%);
}

.slide-in {
    animation: slideInRight 0.5s ease forwards;
}

.slide-out {
    animation: slideOutLeft 0.5s ease forwards;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-100%);
    }
}

#initial-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ccc;
    border-top-color: #1976d2; /* MudBlazor Primary */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loader-text {
    font-size: 1.2rem;
    color: #555;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fade-overlay {
    transition: opacity 0.8s ease;
    opacity: 1;
}

    .fade-overlay.fade-out {
        opacity: 0;
        pointer-events: none;
    }

.fade-card {
    transition: transform 0.8s ease, opacity 0.8s ease;
    transform: scale(1);
    opacity: 1;
}

    .fade-card.fade-out {
        transform: scale(0.8);
        opacity: 0;
    }

.loading-text {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

    .loading-text.fade-out {
        opacity: 0;
        transform: scale(0.7) translateY(10px);
    }

.mudtext-warm {
    background: linear-gradient(180deg, rgba(39, 18, 0, 0.25), rgba(39, 18, 0, 0.15));
    border: 1px solid #a14b00;
    color: #ffd9b0;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 6px rgba(161, 75, 0, 0.08);
}

    .mudtext-warm:focus-within,
    .mudtext-warm:focus {
        border-color: #ff9150;
        box-shadow: 0 0 8px 1px rgba(255, 145, 80, 0.18);
        outline: none;
        color: #fff;
        background: linear-gradient(180deg, rgba(161, 75, 0, 0.18), rgba(39, 18, 0, 0.18));
    }

    .mudtext-warm::placeholder {
        color: #c1c1c4;
        opacity: 0.7;
    }

@keyframes fadeBack {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.7) translateY(20px);
    }
}

.loading-text {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

    .loading-text.fade-out {
        animation: fadeBack 0.8s forwards;
    }


.tabs-header {
    position: sticky;
    top: 0; /* oder top: 64px, wenn du eine AppBar hast */
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Optional: falls du Tabs-Inhalte in fester Höhe scrollen willst */
.tabs-content {
    overflow-y: hidden;
    max-height: calc(100vh - 136px); /* AppBar + Tab-Höhe abziehen */
}

.thick-outline {
    border: 2px solid var(--mud-palette-outline, rgba(0,0,0,0.12)); /* Default-Farbe verwenden */
    box-shadow: none; /* optional: MudBlazor verwendet normalerweise box-shadow für Outlines */
}

.custom-tabs {
    background: linear-gradient(to top, rgba(161, 75, 0, 0.15), rgba(255, 255, 255, 0)) !important; /* Unten leicht weißlich, oben transparent */
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border-bottom: 1px solid rgba(161, 75, 0, 0.1) !important;
}

    /* Die Tab-Schaltflächen */
    .custom-tabs .mud-tab {
        background-color: transparent !important;
        color: white !important; /* Immer gleichbleibende Textfarbe */
        transition: background-color 0.3s ease, filter 0.3s ease !important;
    }

        /* Aktiver Tab: leicht heller Hintergrund */
        .custom-tabs .mud-tab.mud-tab-active {
            background: linear-gradient(to top, rgba(161, 75, 0, 0.35), rgba(255, 255, 255, 0)) !important;
        }

        /* Hovereffekt: ebenfalls leicht heller */
        .custom-tabs .mud-tab:hover {
            background: linear-gradient(to top, rgba(161, 75, 0, 0.15), rgba(255, 255, 255, 0)) !important;
        }

.mud-tabs-tabbar {
    background-color: transparent !important;
}

.my-rounded-menu {
    padding: 0; /* Wichtig, damit MenuItems direkt anliegen */
    overflow: hidden; /* Sorgt dafür, dass Radius sauber greift */
    border-radius: 4px;
    background: linear-gradient(180deg, #2c1d13, #1f1a17) !important;
    color: #c1c1c4;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.custom-menu-item {
    border-radius: 0;
}


    .custom-menu-item.first {
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
        border-top-right-radius: 4px;
    }

    .custom-menu-item.last {
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
        color: #d34848;
    }

    .custom-menu-item.first:hover {
    }

/*#splash-screen {
    position: fixed;
    background: white;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}*/

.fade-out {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}
/*End old Stuff*/
