.db-manager-body {
    min-height: 100vh;
    background: #f3f3f3;
    color: #343a40;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

.db-manager-wrap {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 18px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.db-manager-header {
    text-align: center;
    margin-bottom: 18px;
    width: 100%;
}

.db-manager-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 115px;
    margin-bottom: 12px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
}

.db-manager-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.db-manager-title {
    font-size: 20px;
    font-weight: 700;
    margin-top: 2px;
}

.db-manager-subtitle {
    color: #6c757d;
    font-size: 14px;
    margin-top: 4px;
}

.db-manager-master-status {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
}

.db-manager-master-status.ok {
    color: #155724;
}

.db-manager-master-status.warn {
    color: #856404;
}

.db-manager-alert {
    width: 100%;
    max-width: 760px;
    border-radius: 4px;
    padding: 14px 16px;
    margin: 12px 0 0;
    border: 1px solid transparent;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.db-manager-alert.success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.db-manager-alert.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.db-manager-list {
    width: 100%;
    max-width: 760px;
    margin-top: 16px;
}

.db-manager-row {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.db-manager-db-name {
    color: #007bff;
    font-size: 15px;
    font-weight: 500;
    word-break: break-word;
}

.db-manager-actions {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.db-action-btn {
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 18px;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
}

.db-action-btn svg {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    fill: currentColor;
}

.db-action-btn.backup {
    background: #007bff;
    border-radius: 4px 0 0 4px;
}

.db-action-btn.backup:hover {
    background: #0069d9;
}

.db-action-btn.duplicate {
    background: #6c757d;
    border-radius: 0;
}

.db-action-btn.duplicate:hover {
    background: #5a6268;
}

.db-action-btn.delete {
    background: #dc3545;
    border-radius: 0 4px 4px 0;
}

.db-action-btn.delete:hover {
    background: #c82333;
}

.db-manager-empty {
    width: 100%;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 18px;
    color: #6c757d;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    text-align: center;
}

.db-manager-bottom-actions {
    width: 100%;
    max-width: 760px;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 14px;
}

.db-manager-bottom-btn {
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 15px;
    cursor: pointer;
    transition: .2s ease;
    min-width: 190px;
    font-weight: 500;
}

.db-manager-bottom-btn.restore {
    background: #007bff;
    color: #fff;
}

.db-manager-bottom-btn.restore:hover {
    background: #0069d9;
}

.db-manager-bottom-btn.master {
    background: #ffc107;
    color: #4b3a00;
    font-weight: 700;
}

.db-manager-bottom-btn.master:hover {
    filter: brightness(.95);
}

.db-manager-footer-links {
    width: 100%;
    max-width: 760px;
    margin-top: 16px;
    text-align: left;
}

.db-manager-footer-links a {
    color: #2f5bea;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.db-manager-footer-links a:hover {
    text-decoration: underline;
}

.db-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
}

.db-modal-backdrop.show {
    display: flex;
}

.db-modal {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.db-modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.db-modal-title {
    font-size: 17px;
    font-weight: 700;
}

.db-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #888;
}

.db-modal-body {
    padding: 18px 20px;
}

.db-modal-footer {
    padding: 18px 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.db-form-group {
    margin-bottom: 16px;
}

.db-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.db-form-note {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.45;
}

.db-modal-btn {
    border: none;
    border-radius: 4px;
    padding: 10px 16px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.db-modal-btn.primary {
    background: #007bff;
}

.db-modal-btn.secondary {
    background: #6c757d;
}

.db-modal-btn.danger {
    background: #dc3545;
}

.db-modal-btn.warning {
    background: #ffc107;
    color: #4b3a00;
    font-weight: 700;
}

.db-modal-btn.light {
    background: #e9ecef;
    color: #212529;
}

@media (max-width: 720px) {
    .db-manager-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .db-manager-actions {
        width: 100%;
    }

    .db-manager-actions .db-action-btn {
        flex: 1;
    }

    .db-manager-bottom-actions {
        flex-direction: column;
    }

    .db-manager-bottom-btn {
        width: 100%;
        min-width: 0;
    }

    .db-manager-footer-links {
        text-align: center;
    }
}