:root {
    --apps-primary-color: #007bff;
    --apps-secondary-color: #0056b3;
    --apps-success-color: #28a745;
    --apps-danger-color: #dc3545;
    --apps-warning-color: #ffc107;
    --apps-dark-color: #343a40;
    --apps-card-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --apps-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.admin-container {
    padding: 20px;
    flex: auto;
    margin: 20px;
    background-color: rgba(248, 249, 250, 0.8);
    /* Hintergrundfarbe mit 80% Opazität */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

* Überschreibungen für die Apps-Entdecken Seite */ .admin-container:has(.page-header) {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    padding: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.admin-table-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    padding: 15px;
    width: 100%;
}



.table {
    width: 100%;
    border-collapse: collapse;
}

/* Responsive Design */
@media (max-width: 1600px) {

    table td:nth-child(8),
    table th:nth-child(8),
    table td:nth-child(9),
    table th:nth-child(9) {
        display: none;
    }
}

@media (max-width: 1520px) {

    table td:nth-child(7),
    table th:nth-child(7) {
        display: none;
    }
}

@media (max-width: 1200px) {

    table td:nth-child(10),
    table th:nth-child(10),
    table td:nth-child(11),
    table th:nth-child(11) {
        display: none;
    }
}

@media (max-width: 1020px) {

    table td:nth-child(4),
    table th:nth-child(4),
    table td:nth-child(5),
    table th:nth-child(5) {
        display: none;
    }
}

.admin-table-container h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: left;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background-color: #007bff;
    color: #ffffff;
    text-align: left;
    border-radius: 5px;
}

.admin-table td {
    color: #333;
}

/* Responsive Design für kleinere Bildschirme */
@media (max-width:1460px) {
    .admin-table-responsive-sm {
        overflow-x: auto;
    }

    .admin-container {
        margin: 20px;
        max-width: 100%;
    }
}

/* Dieser Teil ist für die Erstellung als Admin eines neuen Benutzers */
.create_user-container {
    margin-top: 50px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.create_user-form {
    background-color: #ffffff;
    padding: 30px;
}

.create_user-form h2 {
    color: #333;
    margin-bottom: 20px;
}

.create_user-form .form-control {
    margin-bottom: 20px;
}

.main-settings {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

.main-message-and-content {
    width: 100%;
}

table .admin-expand-menu th {
    margin-top: 10px;
    padding-top: 10px;
    background-color: green;
}

/* Das hier ist neu und nur für die Benutzerverwaltung */
.admin-table-new {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.admin-table-new .table-container {
    width: 100%;
    max-height: 500px;
    /* Feste Höhe für den Container */
    background-color: #fff5;
    backdrop-filter: blur(10px);
    box-shadow: 0 .4rem .8rem #0005;
    border-radius: .8rem;
    overflow-y: auto;
    /* Vertikales Scrollen aktivieren */
    overflow-x: auto;
    /* Horizontales Scrollen aktivieren */
}

.admin-table-new table {
    width: 100%;
    overflow-y: scroll;
    display: block;
    /* Ensures borders don't double up */
}

.admin-table-new tbody {
    display: table;
    overflow-x: scroll;
    width: 100%;
}

.admin-table-new thead {
    background-color: #419353;
    color: #ffff;
    text-align: left;
    overflow: hidden;
    overflow-y: scroll;

}

.admin-table-new th, .admin-table-new td {
    padding: 10px;
    white-space: nowrap;
    /* Prevents line break */
    text-overflow: ellipsis;
    /* Adds ellipsis (...) for overflowed text */
    overflow: hidden;
    /* Hides overflowed text */
}

.admin-table-new th:first-child {
    border-radius: 20px 0 0 0;
}

.admin-table-new th:last-child {
    border-radius: 0 20px 0 0;
}

.admin-table-new tr:nth-child(even) {
    background-color: aqua;
}

/* Zusätzliche CSS-Anpassungen, um den Abstand zu verringern */
.admin-users-tool {
    margin-bottom: 10px;
    /* Beibehaltung dieses Margins, falls notwendig */
}

.form-control {
    margin-bottom: 10px;
    /* Kleinerer Abstand zwischen Suchleiste und Tabelle */
}

@media (max-width: 1600px) {
    table td:nth-child(8), table th:nth-child(8) {
        display: none;
    }

    table td:nth-child(9), table th:nth-child(9) {
        display: none;
    }
}

@media (max-width: 1520px) {
    table td:nth-child(7), table th:nth-child(7) {
        display: none;
    }
}

@media (max-width: 1200px) {
    table td:nth-child(10), table th:nth-child(10) {
        display: none;
    }

    table td:nth-child(11), table th:nth-child(11) {
        display: none;
    }
}

@media (max-width: 1020px) {
    table td:nth-child(4), table th:nth-child(4) {
        display: none;
    }

    table td:nth-child(5), table th:nth-child(5) {
        display: none;
    }
}

/* Backup layouts */
.modal-body {
    font-family: Arial, sans-serif;
}

.status-ok {
    color: green;
    display: flex;
    align-items: center;
}

.status-ok::before {
    content: '✔';
    margin-right: 5px;
    color: green;
}

.status-fail {
    color: red;
    display: flex;
    align-items: center;
}

.status-fail::before {
    content: '✖';
    margin-right: 5px;
    color: red;
}

.backupjobs-container, .warnings-container, .errors-container, .backupjob-status-container {
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
}

.backupjobs-container h6, .warnings-container h6, .errors-container h6, .backupjob-status-container h6 {
    margin-bottom: 10px;
    text-align: left;
}

.backupjobs-container ul, .warnings-container ul, .errors-container ul, .backupjob-status-container ul {
    list-style: none;
    padding: 0;
}

.backupjobs-container li, .warnings-container li, .errors-container li, .backupjob-status-container li {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 5px 0;
}

.backupjobs-container li:first-child, .warnings-container li:first-child, .errors-container li:first-child, .backupjob-status-container li:first-child {
    border-top: none;
}

.backupjobs-container li:last-child, .warnings-container li:last-child, .errors-container li:last-child, .backupjob-status-container li:last-child {
    border-bottom: none;
}

.status-ok {
    color: green;
}

.status-container {
    display: flex;
    justify-content: space-between;
}

/* Icons überschriften */
.settings-elements {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.settings-elements-link {
    text-decoration: none;
    /* Entfernt die Unterlinie */
    flex: 1 1 calc(33.333% - 20px);
}

.settings-elements-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: #00a2e8;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.3s;
    height: 200px;
    /* Stellt sicher, dass alle Elemente gleich hoch sind */
    box-sizing: border-box;
}

.settings-elements-box:hover {
    background-color: #007bb5;
}

.settings-elements-box i {
    font-size: 60px;
    /* Vergrößern der Icons */
    margin-bottom: 10px;
}

.settings-elements-box h2 {
    margin: 0;
    font-size: 24px;
}

/* Hier kommen die Server Log Anzeige */
.input-group {
    display: flex;
    align-items: center;
}

.input-group .form-control {
    flex: 1;
    border-radius: 0;
}

.input-group .btn {
    border-radius: 0;
    margin-left: -1px;
    /* Verhindert Spalten zwischen Buttons */
}

/* Stil für den Container, um wie ein Eingabefeld auszusehen */
#active-filters-container {
    border: solid 1px #ccc;
    border-radius: .25rem;
    padding: .375rem .75rem;
    background-color: #f8f9fa;
    min-height: 38px;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.filter-button {
    display: flex;
    align-items: center;
    padding: .25rem .75rem;
    position: relative;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: .25rem;
}

.filter-button .btn-close {
    margin-left: .5rem;
    font-size: 1.2rem;
    /* Größer für bessere Sichtbarkeit */
    color: red;
    /* Rote Farbe */
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    /* Rundes Symbol */
    background-color: #fff;
    /* Weißer Hintergrund */
}

.filter-button .btn-close:hover {
    opacity: .75;
}

/* App Detail */
.app-detail-main-wrapper {
    width: 75%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    /* Zentriert den Container horizontal */
    box-sizing: border-box;
    /* Berücksichtigt Padding und Border in der Gesamtbreite */
}

.app-top-bar {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
}

.app-top-bar h4 {
    margin-left: 10px;
    font-weight: bold;
}

.app-card-wrapper {
    display: flex;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
    column-gap: 20px;
    border-radius: 10px;
    padding: 5px;
}

.app-card-wrapper img {
    width: 250px;
    height: 250px;
    border-radius: 10px;
}

.reverse {
    justify-content: space-between;
}

.info-table {
    border-collapse: collapse;
    width: 100%;
    /* Die Tabelle nimmt die volle Breite des Containers ein */
    margin-bottom: 20px;
    /* Abstand zwischen Tabelle und Bild */
    background-color: rgba(255, 255, 255, 0.9);
    /* Transparenter Hintergrund für die Tabelle */
    border-radius: 8px;
    /* Abrundung der Ecken */
}

.info-table th, .info-table td {
    padding: 12px;
    /* Etwas mehr Abstand in den Zellen */
    text-align: left;
}

.info-table td {
    border-bottom: 1px solid #ddd;
    /* Nur horizontale Trennlinien */
}

.info-table th {
    background-color: rgba(0, 0, 0, 0.1);
    /* Hintergrundfarbe für Header */
    color: #333;
    border-bottom: 2px solid #333;
    /* Deutlichere horizontale Linie unter dem Header */
}

.info-table tr:last-child td {
    border-bottom: none;
    /* Keine untere Linie für die letzte Zeile */
}

.headers-container {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f5f5f5;
}

.headers-container pre {
    margin: 0;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.headers-container:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Page Header Styling */
.page-header {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white;
    padding: 25px 30px;
    margin: 0;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: white !important;
}

.cleanup-section {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-cleanup {
    background: rgba(220, 53, 69, 0.9) !important;
    border: 2px solid rgba(220, 53, 69, 1) !important;
    color: white !important;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cleanup:hover {
    background: rgba(220, 53, 69, 1) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
    border-color: rgba(220, 53, 69, 1) !important;
}

.show-apps-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.app-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
}

.app-wrapper:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.app-card-content {
    padding: 20px;
}

.app-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.app-icon {
    position: relative;
    margin-right: 15px;
}

.app-icon img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.new-icon {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
}

.new-icon::after {
    content: '!';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.app-title-section {
    flex: 1;
}

.app-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.status-icons {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.status-icons i {
    font-size: 1.1rem;
    padding: 6px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.status-icons i:hover {
    transform: scale(1.1);
}

.app-description-text {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-extra-details {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 15px 20px;
    margin: 0 -20px -20px -20px;
    border-radius: 0 0 14px 14px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.app-wrapper.expanded .app-extra-details {
    opacity: 1;
    max-height: 200px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.modal-loading-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--hover-shadow);
}

.stats-bar {
    display: flex;
    gap: 20px;
    margin: 30px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.stat-item {
    text-align: center;
    flex: 1;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-top: 8px;
}

/* Apps Grid Area */
.show-apps-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px;
    margin-top: 10px;
}

/* App Wrapper - Verbesserte Kontraste */
.app-wrapper {
    background: white !important;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(0, 0, 0, 0.08);
}

.app-wrapper:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2) !important;
    border-color: #007bff;
}

.app-card-content {
    padding: 20px;
}

.app-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.app-icon {
    position: relative;
    margin-right: 15px;
}

.app-icon img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(0, 0, 0, 0.05);
}

/* New Icon Animation */
.new-icon {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: linear-gradient(45deg, #dc3545, #c82333);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    animation: pulse 2s infinite;
    border: 2px solid white;
}

.new-icon::after {
    content: '!';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 16px rgba(220, 53, 69, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    }
}

.app-title-section {
    flex: 1;
}

.app-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 8px;
}

/* Status Icons - Verbesserte Sichtbarkeit */
.status-icons {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.status-icons i {
    font-size: 1.1rem;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.status-icons i:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.12);
}

/* App Description */
.app-description-text {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Expanded Details Section */
.app-extra-details {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 15px 20px;
    margin: 0 -20px -20px -20px;
    border-radius: 0 0 14px 14px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.app-wrapper.expanded .app-extra-details {
    opacity: 1;
    max-height: 200px;
}

/* Primary Button Override für Apps Seite */
.show-apps-area .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    border: none !important;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.show-apps-area .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4) !important;
    background: linear-gradient(135deg, #0056b3, #007bff) !important;
    color: white !important;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-container:has(.page-header) {
        margin: 10px;
        padding: 0 !important;
    }

    .page-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }

    .show-apps-area {
        grid-template-columns: 1fr;
        margin: 20px;
    }

    .stats-bar {
        flex-direction: column;
        gap: 15px;
        margin: 20px;
    }

    .stat-item {
        margin-bottom: 10px;
    }
}

/* =========================================
   CSS-Verbesserungen für App Detail Seite
   Diese Regeln in deine app_detail_style.css einfügen
   ========================================= */

/* Installieren Button - Deutlich sichtbarer machen */
.app-info .btn-primary {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border: none !important;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    transition: all 0.3s ease;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
    justify-content: center;
}

.app-info .btn-primary:hover {
    background: linear-gradient(135deg, #218838, #1e7e34) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.6);
    color: white !important;
}

.app-info .btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.4);
}

/* Icon zum Button hinzufügen */
.app-info .btn-primary::before {
    content: '💾';
    font-size: 1.2em;
}

/* Alternative mit Bootstrap Icon */
.app-info .btn-primary.with-icon::before {
    content: '';
    font-family: 'bootstrap-icons';
    font-size: 1.1em;
}

/* App Info Bereich verbessern */
.app-info {
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-left: 20px;
    flex: 1;
}

.app-info h5 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.app-info small {
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
}

.app-info p {
    color: #495057;
    line-height: 1.6;
    margin: 15px 0 20px 0;
    text-align: justify;
}

/* Zusätzliche Button-Varianten */
.app-info .btn-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
    border: none !important;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529 !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    transition: all 0.3s ease;
}

.app-info .btn-warning::before {
    content: '🔄';
    margin-right: 8px;
}

.app-info .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    border: none !important;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    transition: all 0.3s ease;
}

.app-info .btn-danger::before {
    content: '🗑️';
    margin-right: 8px;
}

/* Zurück-Button verbessern */
.app-top-bar .btn-light {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #e9ecef !important;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: #495057 !important;
}

.app-top-bar .btn-light:hover {
    background: white !important;
    border-color: #007bff !important;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
    color: #007bff !important;
}

/* App Top Bar verbessern */
.app-top-bar {
    display: flex;
    align-items: center;
    padding-bottom: 25px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.app-top-bar h4 {
    margin-left: 20px;
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 0;
}

/* App Card Wrapper verbessern */
.app-card-wrapper {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Info-Tabelle verbessern */
.info-table {
    margin-bottom: 0;
    background: transparent;
}

.info-table th {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 15px 12px;
    border: none !important;
}

.info-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    vertical-align: middle;
}

.info-table tr:first-child th {
    border-radius: 8px 8px 0 0;
}

.info-table tr:last-child td {
    border-bottom: none !important;
}

/* Links in Tabellen verbessern */
.info-table a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.info-table a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-info .btn-primary {
        width: 100%;
        margin-top: 15px;
        padding: 18px 20px;
    }

    .app-card-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .app-info {
        margin-left: 0;
        margin-top: 20px;
    }
}

/* =======================================================
   CLEANUP BUTTONS - Zusätzliche CSS Styles
   Diese Styles erweitern dein bestehendes admin.css
   ======================================================= */

/* Cleanup Section Layout */
.cleanup-section {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Erweiterte Button-Varianten für verschiedene Aktionen */
.btn-cleanup.danger {
    background: rgba(220, 53, 69, 0.9) !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.btn-cleanup.danger:hover {
    background: #dc3545 !important;
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

.btn-cleanup.warning {
    background: rgba(255, 193, 7, 0.9) !important;
    border-color: #ffc107 !important;
    color: #212529 !important;
}

.btn-cleanup.warning:hover {
    background: #ffc107 !important;
    color: #212529 !important;
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.4);
}

.btn-cleanup.info {
    background: rgba(13, 202, 240, 0.9) !important;
    border-color: #0dcaf0 !important;
    color: white !important;
}

.btn-cleanup.info:hover {
    background: #0dcaf0 !important;
    color: white !important;
    box-shadow: 0 6px 16px rgba(13, 202, 240, 0.4);
}

.btn-cleanup.success {
    background: rgba(25, 135, 84, 0.9) !important;
    border-color: #198754 !important;
    color: white !important;
}

.btn-cleanup.success:hover {
    background: #198754 !important;
    color: white !important;
    box-shadow: 0 6px 16px rgba(25, 135, 84, 0.4);
}

/* Basis Button-Styling erweitern */
.btn-cleanup {
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
    min-width: 160px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid;
}

.btn-cleanup:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-cleanup:active {
    transform: translateY(0);
}

/* Loading State für Buttons */
.btn-cleanup.loading {
    pointer-events: none;
    opacity: 0.8;
    cursor: not-allowed;
}

.btn-cleanup .loading-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: cleanup-spin 1s linear infinite;
}

.btn-cleanup.loading .loading-spinner {
    display: inline-block;
}

.btn-cleanup.loading .btn-icon {
    display: none;
}

@keyframes cleanup-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Bestätigungs-Modal */
.confirmation-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    backdrop-filter: blur(3px);
}

.confirmation-backdrop.show {
    display: flex;
}

.confirmation-modal {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.confirmation-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #dc3545;
}

.confirmation-header i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.confirmation-header h5 {
    margin: 0;
    font-weight: 700;
}

.confirmation-body {
    margin-bottom: 25px;
    color: #495057;
    line-height: 1.6;
}

.confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-cancel, .btn-confirm {
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background: #5a6268;
    color: white;
}

.btn-confirm {
    background: #dc3545;
    color: white;
}

.btn-confirm:hover {
    background: #c82333;
    color: white;
}

/* Custom Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1060;
}

.custom-toast {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
    min-width: 300px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.custom-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.custom-toast .toast-header {
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    padding: 12px 16px;
}

.custom-toast .toast-body {
    padding: 12px 16px;
    color: #495057;
}

.toast-header.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.toast-header.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.btn-close-white {
    background: none;
    border: none;
    color: white;
    opacity: 0.8;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.btn-close-white:hover {
    opacity: 1;
}

.btn-close-white::before {
    content: '×';
    font-size: 18px;
    font-weight: bold;
}

/* Responsive Design für Cleanup-Buttons */
@media (max-width: 768px) {
    .cleanup-section {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .btn-cleanup {
        min-width: 100%;
        justify-content: center;
        font-size: 13px;
        padding: 12px 16px;
    }

    .page-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .confirmation-modal {
        padding: 20px;
        margin: 20px;
    }

    .confirmation-actions {
        flex-direction: column;
    }

    .btn-cancel, .btn-confirm {
        width: 100%;
        justify-content: center;
    }

    .toast-container {
        right: 10px;
        left: 10px;
        bottom: 10px;
    }

    .custom-toast {
        min-width: auto;
        width: 100%;
    }
}

/* Tooltip Verbesserungen */
.btn-cleanup[data-bs-toggle="tooltip"] {
    position: relative;
}

/* Zusätzliche Icon-Animationen */
.btn-cleanup .btn-icon {
    transition: transform 0.3s ease;
}

.btn-cleanup:hover .btn-icon {
    transform: scale(1.1);
}

/* Fokus-Styles für Accessibility */
.btn-cleanup:focus,
.btn-cancel:focus,
.btn-confirm:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .confirmation-modal {
        background: #2d3748;
        color: #e2e8f0;
    }

    .confirmation-body {
        color: #cbd5e0;
    }

    .custom-toast {
        background: #2d3748;
        color: #e2e8f0;
    }

    .custom-toast .toast-body {
        color: #cbd5e0;
    }
}

/* ========================================
   CSS für das Ordner-Auswahl Modal
   Ergänzung zu deiner cleanup-buttons.css
   ======================================== */

/* Modal Backdrop */
.folder-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1060;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal Container */
.folder-modal {
    background: white;
    border-radius: 16px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.folder-modal-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
}

.folder-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Modal Body */
.folder-modal-body {
    padding: 25px 30px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Folder Statistics */
.folder-statistics {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.stat-box {
    text-align: center;
    flex: 1;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-box .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-box .stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Folder Actions */
.folder-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.folder-actions .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.folder-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Folder Sections */
.folder-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.folder-section {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.section-title {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

/* Folder List */
.folder-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
}

.no-folders {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
}

/* Folder Item */
.folder-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.folder-item:hover {
    border-color: #007bff;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.folder-item.installed {
    background: #d4edda;
    border-color: #c3e6cb;
}

.folder-item.uninstalled {
    background: #f8d7da;
    border-color: #f5c6cb;
}

/* Folder Checkbox */
.folder-checkbox {
    margin-right: 15px;
    margin-top: 2px;
}

.folder-checkbox input[type="checkbox"] {
    display: none;
}

.folder-checkbox label {
    width: 24px;
    height: 24px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    display: block;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.folder-checkbox input[type="checkbox"]:checked+label {
    background: #007bff;
    border-color: #007bff;
}

.folder-checkbox input[type="checkbox"]:checked+label::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 14px;
}

.folder-checkbox input[type="checkbox"]:disabled+label {
    background: #e9ecef;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Folder Info */
.folder-info {
    flex: 1;
    min-width: 0;
}

.folder-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.folder-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
}

.folder-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.folder-badges .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
}

.folder-details {
    margin-bottom: 8px;
}

.folder-details small {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.folder-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #856404;
    margin-top: 8px;
}

/* Modal Footer */
.folder-modal-footer {
    background: #f8f9fa;
    padding: 20px 30px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 16px 16px;
}

.folder-modal-footer .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.folder-modal-footer .btn:hover {
    transform: translateY(-2px);
}

.folder-modal-footer .btn-danger:hover {
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

.folder-modal-footer .btn-secondary:hover {
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4);
}

/* Scrollbar Styling */
.folder-list::-webkit-scrollbar,
.folder-modal-body::-webkit-scrollbar {
    width: 8px;
}

.folder-list::-webkit-scrollbar-track,
.folder-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.folder-list::-webkit-scrollbar-thumb,
.folder-modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.folder-list::-webkit-scrollbar-thumb:hover,
.folder-modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .folder-modal {
        width: 98%;
        max-height: 95vh;
        margin: 10px;
    }

    .folder-modal-header,
    .folder-modal-body,
    .folder-modal-footer {
        padding: 15px 20px;
    }

    .folder-statistics {
        flex-direction: column;
        gap: 10px;
    }

    .folder-actions {
        justify-content: center;
    }

    .folder-actions .btn {
        flex: 1;
        min-width: 0;
    }

    .folder-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .folder-badges {
        margin-top: 5px;
    }

    .folder-details small {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .folder-modal-footer {
        flex-direction: column;
    }

    .folder-modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .folder-modal-header h3 {
        font-size: 1.2rem;
    }

    .stat-box .stat-number {
        font-size: 1.5rem;
    }

    .folder-item {
        padding: 12px;
    }

    .folder-name {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.1rem;
        padding: 12px 15px;
    }
}

/* Loading Spinner für Delete Button */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Animationen für bessere UX */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.folder-item:hover .folder-checkbox label {
    animation: pulse 0.3s ease;
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .folder-modal {
        background: #2d3748;
        color: #e2e8f0;
    }

    .folder-statistics {
        background: linear-gradient(135deg, #374151, #4b5563);
    }

    .stat-box {
        background: #374151;
        color: #e2e8f0;
    }

    .folder-item {
        background: #374151;
        border-color: #4b5563;
    }

    .folder-item:hover {
        background: #4b5563;
    }

    .folder-section {
        border-color: #4b5563;
    }

    .folder-modal-footer {
        background: #374151;
        border-color: #4b5563;
    }
}