/********************************************************
* Plugin Manager - Backend Standarddarstellung
* Version: 1.1 | Datum: 17.07.2026
*********************************************************/

.pluginmanager-wrapper {
    font-family: Arial,sans-serif;
    border: 1px solid #ccc;
    background: #fff;
    color: #222;
}

.pm-header {
    background: #f4f4f4;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.pm-container {
    display: flex;
    min-height: 500px;
}

.pm-sidebar {
    width: 180px;
    min-width: 180px;
    flex: 0 0 180px;
    background: #eaeaea;
    border-right: 1px solid #ccc;
    padding: 10px;
    box-sizing: border-box;
}

.pm-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pm-sidebar li {
    margin-bottom: 5px;
}

.pm-nav-link {
    display: block;
    width: 90%;
    padding: 7px;
    text-align: center;
    background: #2e7fc0;
    color: #fff;
    text-decoration: none;
    box-sizing: border-box;
}

.pm-nav-link:hover,
.pm-nav-link.is-active {
    background: #1b5c90;
}

.pm-nav-development {
    background: #6f42c1;
}

.pm-nav-development:hover,
.pm-nav-development.is-active {
    background: #56329a;
}

.pm-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 20px;
    box-sizing: border-box;
}

.pm-footer {
    background: #f4f4f4;
    padding: 10px;
    text-align: center;
    font-size: .9em;
    color: #666;
}

.plugin-window {
    width: 100%;
    max-width: 950px;
    box-sizing: border-box;
    border: 2px solid #d5e1f0;
    padding: 10px;
    margin-bottom: 20px;
    background: #fff;
}

.plugin-window h3 {
    margin: 0 0 3px;
}

.plugin-window-development {
    border-color: #cbb7ff;
    background: #fbf9ff;
}

.pm-hint,
.pm-muted {
    font-size: 11px;
    color: #666;
}

.plugin-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
    margin-top: 10px;
}

.plugin-item {
    width: 96px;
    text-align: center;
    font-size: 12px;
    margin: 5px;
}

.plugin-item a {
    color: #2e7fc1;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 82px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.plugin-item a:hover {
    text-decoration: underline;
}

.plugin-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 4px;
}

.plugin-name {
    display: block;
    width: 100%;
    max-width: 96px;
}

.plugin-list-group {
    margin: 0 0 12px;
    border: 1px solid #cbd5df;
    background: #fff;
}

.plugin-list-group summary {
    padding: 11px 13px;
    background: #eef4f9;
    color: #24445f;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.plugin-list-group summary:hover {
    background: #e3edf5;
}

.plugin-list-group-content {
    padding: 10px;
    overflow-x: auto;
}

.plugin-list-table,
.pm-table {
    width: 100%;
    border-collapse: collapse;
}

.plugin-list-table th,
.plugin-list-table td,
.pm-table th,
.pm-table td {
    padding: 8px;
    border: 1px solid #ccc;
    text-align: left;
    font-size: 14px;
}

.plugin-list-table th,
.pm-table th {
    background: #f0f0f0;
}

.plugin-list-table th:last-child,
.plugin-list-table td:last-child {
    min-width: 180px;
}

.pm-list-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin: 5px;
}

.plugin-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.plugin-actions form {
    margin: 0;
}

.plugin-action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.plugin-action-button:hover {
    filter: brightness(.94);
}

.plugin-action-update {
    background: #f2c94c;
    border-color: #d2aa32;
    color: #3f3300;
}

.plugin-action-install {
    background: #2f9e5b;
    border-color: #237a45;
    color: #fff;
}

.plugin-action-uninstall {
    background: #7952b3;
    border-color: #5f3e91;
    color: #fff;
}

.plugin-action-delete {
    background: #c83c3c;
    border-color: #a92d2d;
    color: #fff;
}

.pm-message {
    margin: 0 0 12px;
    padding: 10px;
    border-radius: 5px;
}

.pm-message-success {
    background: #eef8ee;
    border: 1px solid #8cc48c;
    color: #275827;
}

.pm-message-error {
    background: #fff0f0;
    border: 1px solid #cc8c8c;
    color: #7a2020;
}

.pm-top-link {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.pm-top-link a {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 5px;
    background: #2e7fc0;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.pm-check-column {
    width: 40px;
    text-align: center!important;
}

.pm-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
    gap: 12px;
    margin-top: 15px;
}

.pm-help-grid section {
    border: 1px solid #d6e0ec;
    padding: 12px;
    background: #fff;
}

.pm-help-grid h4,
.pm-help-grid p {
    margin-top: 0;
}

.pm-help-table th {
    width: 170px;
}

.pm-note {
    margin-top: 15px;
    padding: 10px;
    background: #eef5fb;
    border: 1px solid #b8d0e6;
}