
/* ### PUBLIC/HOME ### */

.inv_col {
    animation: colorLoop 5s linear infinite reverse;
    color: var(--dynamic-color);
}

/* ### ADMIN-Timer für Dashboard (Header) ### */

.admin-timer-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;               /* Abstand zwischen Icon und Text leicht verringert */
    padding: 3px 10px;      /* Schlankeres Padding für kleinere Schrift */
    border: 1px solid var(--dynamic-color);
    border-radius: 15px;    /* Etwas kleinerer Radius für kompaktere Optik */
    background: rgba(0, 0, 0, 0.3);
    font-family: var(--font-main);
    font-size: 0.75rem;     /* Deine neue Schriftgröße */
    color: var(--dynamic-color);
    box-shadow: 0 0 8px color-mix(in srgb, var(--dynamic-color), transparent 80%);
    transition: all 0.3s ease;
    white-space: nowrap;    /* Verhindert Zeilenumbruch */
}

.admin-timer-box i {
    font-size: 0.85rem;     /* Icon minimal größer als der Text, damit es wirkt */
}

.admin-timer-box span {
    font-weight: bold;
    min-width: 35px;        /* Breite des Timers verkleinert (vorher 45px) */
    display: inline-block;
    text-align: center;     /* Zentriert sieht bei kleiner Schrift oft besser aus */
}

/* Warnzustand: Wenn die Klasse .timer-low (aus der app.js) aktiv ist */
.header_ctr.timer-low .admin-timer-box {
    border-color: #ff4d4d;
    color: #ff4d4d;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.4);
    animation: shake 0.5s ease-in-out infinite; /* Nutzt deine vorhandene Shake-Animation */
}

@keyframes timer-icon-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}


/* ### Dashboard Log-Card & Tabs Styling ### */


/* Haupt-Container */

#log-tabs {
    border: none !important;
    background: rgba(255, 255, 255, 0.03) !important;
    /* Glaseffekt beibehalten */
    border-radius: 12px;
    padding: 5px !important;
}


/* Content-Bereich */

#log-tabs .ui-tabs-panel {
    background: transparent;
    color: #eee;
    padding: 10px 5px;
    /* animation: fadeInContent 0.4s ease-out; */
}


/* Navigationsleiste (Reiter-Liste) */

#log-tabs .ui-tabs-nav {
    display: flex;
    max-width: 250px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 15px;
}


/* Einzelne Reiter */

#log-tabs .ui-tabs-nav li {
    list-style: none;
    flex: 1;
    text-align: center;
    border: none !important;
    background: transparent !important;
    margin: 0 2px !important;
    transition: all 0.3s ease;
}


/* Links in den Reitern */

#log-tabs .ui-tabs-nav li a {
    display: block;
    padding: 10px 10px !important;
    color: var(--dynamic-color) !important;
    text-decoration: none;
    outline: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    border: 1px solid var(--dynamic-color);
    border-radius: 8px;
}


/* Aktiver Tab Status */

#log-tabs .ui-tabs-nav li.ui-tabs-active {
    background: var(--dynamic-color) !important;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#log-tabs .ui-tabs-nav li.ui-tabs-active a {
    color: #000 !important;
    font-weight: bold !important;
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased;
}


/* Hover für inaktive Tabs */

#log-tabs .ui-tabs-nav li:not(.ui-tabs-active):hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* #log-tabs .ui-tabs-nav li:not(.ui-tabs-active) a:hover {
    color: #fff !important;
} */


/* --- Tabellen Styling --- */

.log-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
    font-size: 0.9em;
}

.log-table th {
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid var(--dynamic-color);
    color: var(--dynamic-color);
    font-weight: 600;
}

.log-table td {
    padding: 10px;
    border-bottom: 1px solid #333;
    color: #ccc;
    font-size: 0.85rem;
}

.log-table tr:last-child td {
    border-bottom: none;
}


/* Hilfsklassen & Badges */

.log-table code {
    background: #222;
    padding: 2px 4px;
    border-radius: 3px;
    color: #eee;
}

.status-error {
    color: #d9534f;
    font-weight: bold;
    margin-right: 5px;
}

.status-ok {
    color: #28a745;
    font-weight: bold;
}

.badge,
.badge-attempt {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    color: #fff;
    display: inline-block;
}

.bg-red {
    background-color: #d9534f;
}

.bg-blue {
    background-color: #3498db;
}

.bg-green {
    background-color: #2ecc71;
}

.bg-grey, .badge-attempt {
    background-color: #7f8c8d;
}

.badge-outline {
    display: inline-block;
    padding: 1px 8px;
    font-size: 1.0em;
    font-weight: 500;
    color: #ad8b8f;
    border: 1px solid #ad8b8f;
    border-radius: 4px;
    text-transform: lowercase;
    font-family: 'Monaco', 'Consolas', monospace;
}


/* Action Buttons */

.btn-action {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.btn-action:hover {
    color: #ff4d4d;
}


/* Animationen */

@keyframes timerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px); /* Leichtes Einfliegen von oben */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ### Admin-Login Styling ### */

#admin-pin-container {
    /* 1. Größe reduzieren: min-height entfernen und padding anpassen */
    padding: 11px 30px;
    min-height: auto; 
    
    /* 2. Die fehlende Linie des ausgeblendeten <a>-Tags simulieren */
    border-bottom: 1px solid color-mix(in srgb, var(--dynamic-color), transparent 50%);
    
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible !important;
        position: relative; /* Wichtig für z-index */
        z-index: 99999 !important; 
        isolation: isolate; /* Erzeugt einen völlig neuen Stacking Context */
        pointer-events: all !important; /* Erzwingt, dass Events hier stoppen */
}

#admin-pin-input {
    width: 100px;
    height: 30px;
    background: #222 !important;
    color: var(--dynamic-color);
    text-align: center;
    font-size: 16px;
    font-family: monospace;
    /* border: none !important; */
    outline: none !important;
    padding: 5px 5px 4px 15px;
    letter-spacing: 10px;
    background-image: linear-gradient(to right, var(--dynamic-color) 70%, rgba(255, 255, 255, 0) 0%);
    background-position: bottom 6px left 10px;
    background-size: 22px 2px;
    background-repeat: repeat-x;
    transition: all 0.3s ease;
        -webkit-user-select: text; /* Stellt sicher, dass das Feld selektierbar bleibt */
        user-select: text;
}

#admin-pin-input:focus {
    /* filter: drop-shadow(0 0 1px var(--dynamic-color)); */
    outline: none;
    border-color: var(--dynamic-color);
    /* box-shadow: 0 0 4px color-mix(in srgb, var(--dynamic-color), transparent 50%); */
    background-color: #fff; /* Verhindert Transparenzprobleme */
}

#admin-pin-input::placeholder {
    color: #555;
    letter-spacing: 12px;
}

.pin-success {
    border: 2px solid #2ecc71 !important;
    background-image: none !important; /* Optional: Entfernt die Unterstriche bei Erfolg */
}

.shake-error {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    border: 2px solid #ff4d4d !important;
}

@keyframes shake {
    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }
    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* ### USER_MANGEMENT ###" */
.user-table-container {
    /* padding: 20px; */
    background: rgba(0, 0, 0, 0.3);
    /* backdrop-filter: blur(10px);
    border: 1px solid var(--dynamic-color);
    border-radius: 12px; */
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
}

.user-table th {
    text-align: left;
    border-bottom: 2px solid var(--dynamic-color);
    padding: 12px;
    color: var(--dynamic-color);
    text-transform: uppercase;
    font-size: 0.8rem;
}

.user-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.status-active { background: rgba(46, 204, 113, 0.2); color: #2ecc71; border: 1px solid #2ecc71; }
.status-inactive { background: rgba(231, 76, 60, 0.2); color: #e74c3c; border: 1px solid #e74c3c; }

.btn-action {
    background: none;
    border: 1px solid var(--dynamic-color);
    color: var(--dynamic-color);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 5px;
}

.btn-action:hover {
    background: var(--dynamic-color);
    color: #000;
}

#tab-user code {
    letter-spacing: 1px;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.1);
    display: inline-block;
    min-width: 140px;
}


/* ### 2FA SETUP STYLING ### */
.setup-container {
    text-align: center;
    max-width: 450px;
    margin: 10px auto;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid var(--dynamic-color);
    border-radius: 15px;
    box-shadow: 0 0 20px color-mix(in srgb, var(--dynamic-color), transparent 70%);
    color: #fff;
}

.setup-container h2 {
    color: var(--dynamic-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.qr-box {
    margin: 20px 0;
    display: inline-block;
    padding: 15px;
    background: #fff; /* Wichtig für Scanbarkeit */
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255,255,255,0.1);
}

.qr-box img {
    display: block;
    width: 200px;
}

.secret-box {
    padding: 12px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    /* border: 1px dashed var(--dynamic-color); */
    margin-bottom: 15px;
    color: var(--dynamic-color);
    font-size: 1.1rem;
}

/* Input Feld angelehnt an deine .otp-input Klasse */
.setup-input {
    width: 60%;
    font-size: 2rem;
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--dynamic-color);
    border-bottom: 2px solid var(--dynamic-color);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.setup-input:focus {
    box-shadow: 0 0 15px var(--dynamic-color);
    background: rgba(0, 0, 0, 0.5);
}

/* Button */
.btn-setup {
    width: 60%;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: transparent;
    color: var(--dynamic-color);
    border: 2px solid var(--dynamic-color);
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-setup:hover {
    background: var(--dynamic-color);
    color: #000;
    box-shadow: 0 0 20px var(--dynamic-color);
}

/* ### Clock ### */

.clock {
    float: left;
    margin: 20px 40px 20px 20px;
}


